Update a variable that's used throughout HA?

I’d assume this is possible, but I can’t find a way to do it…

Essentially I want to find a way to update a variable that can be used throughout HA.

For instance, suppose I have a variable called lightsOnOutside and I set it to true. I then add a condition to my “Turn the backyard lights off” automation that will only turn those lights off if lightsOnOutside is false. I would then use a control in a Dashboard to toggle the lightsOnOutside variable.

look at input_boolean helpers.

called “toggle” in the ui:

1 Like

I use this:

Or use one of these:

Both work great. The second allows the ability to store a history of the prior state.