Brand new on on this forum and on node red... always a first time !
I am running node-red /w homeassistant and loving it.
I am trying to set up the long click action on a switch to toggle a group of 3 differents light. But as they can be activated by other switches I need to first synchronise their state (on or off) and then toggle them.
I start /w the device node then the call service one, but I am missing the in between action : "synchronising state"
maybe false route... let me know
Thank you for your help !!
What you want to do is to use the current state node - this will let you find out what the current state of each light is and then act accordingly.
I would also suggest watching this video (maybe at 1/2 speed)
Thanks @craigcurtin for your quick reply I watch the video at 1/4 speed, but it was on Motion Detection and Notifications... I found in his channel other very usefull video!
Yes it was more to show you which nodes you could use to do different things
If you look at the current state node from the home assistant webhooks palette you could then do something like
Start your flow - this would be done with
Events state - monitor for the switch press
then into the Current state node (3 of them) each of which would check the current state of the lights
Then into the Ultimate boolean node and onward from there.
If you look for posts from me from last week you will find a long thread where i was helping someone else do something similar in terms of finding the state of current lights etc
Thank you for your detail reply ! This is very helpfull and I will look to your other post.
I have installed the boolean ultimate and need to get the logoc out of it.
Events state = 1 clic press on my switch
Curent state node = if state is ON. ( one for each lights)
Ultimate boolean is not yet clear how to uniforme the state if 1 or 2 states are different.
I will read the flow page to try to understand how the node can convert arbitrary input values to true/false.
you put me on the good way
No worries - pretty sure i put up an example flow with the Boolean node that shows how it can act on the different states
This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.