Question About Get and Set in Node Red

So I am trying to set some bool variables for a “Night Time Mode” I have for my system. So I want to turn on certain camera functionality if Night Time Mode is active or not. Can I do this in Node Red?

You’ll need to elaborate further. Setting variables differs depending on which node your in. Then there are different types depending on the availability scope. Is it limited to a node, to a flow, globally?

If you are just looking to set boolean helpers in ha, you would call the service to turn them on or off in a call service node.

If you are just looking to set boolean helpers in ha, you would call the service to turn them on or off in a call service node.

This seems like it would do what I need it to do. I wasn’t thinking about it from this angle. Thank you.

If you need it for a condition, is it on/off. You’d use a current state. What ever is set in the node, when true, will come out the top output. Everything else out the bottom.

image

Yep, thanks for the info.

could collect timestamp and base that on what the rest of the automation would allow using a switch node