A simple switch state node #22
Replies: 3 comments 5 replies
-
I am mixing a conbee2 with my hue bridge (so I can use my IKEA remotes with my lights that are still on the HUE app), so my setup is a little more complicated (mix of DECONZ with yadomi package ) |
Beta Was this translation helpful? Give feedback.
-
You get the status of a light out of yadomis node. Filter the light out and the „on“ (there are examples) and connect it to a context variable. The you can write a function depending on state. This repository isn’t meant for supplying every little thing. It’s made for to help a system running with main functions. Everything else you can build as you like around it. Many ways to do so |
Beta Was this translation helpful? Give feedback.
-
is there an example or is someone willing to supply me with an example of how to toggle a light that would be great as I'm also struggeling with this. I can connect my buttons now and switch on/off lights, groups, scenes, colors and everything but "connect a context variable and write a function depending on state" is a little above my understanding of node-red now and I feel I'm not alone. Thanks for the wonderful flow btw <3 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi @andesse
I did not want to pollute the discussion so I create a new one here.
Did you create a switch command to use a single button to turn on and off the lights / groups?
I wonder how you did it. I am still trying to understand how to get status of the light to make a xor of the state, so I could do a toggle command, doing something like this:
"LAMP 0 ON" XOR "TRUE" = FALSE
"LAMP 0 OFF" XOR "TRUE" = TRUE
Beta Was this translation helpful? Give feedback.
All reactions