In HA, you can create auxiliary elements, such as a switch. I read the state of the switch through “current state”. And how to manage it?
Welcome to the forum @kvs
Few here use HA, so you might be better asking on an HA forum.
Copyright OpenJS Foundation and Node-RED contributors. All rights reserved. The OpenJS Foundation has registered trademarks and uses trademarks. For a list of trademarks of the OpenJS Foundation, please see our Trademark Policy and Trademark List. Trademarks and logos not indicated on the list of OpenJS Foundation trademarks are trademarks™ or registered® trademarks of their respective holders. Use of them does not imply any affiliation with or endorsement by them.