Am a month or so in with HA and it’s a revelation - all the developers have done an amazing job on this very cool, functional open source software. The thing I’m stuck on today though is how to set an input_boolean state when I toggle a light switch in Lovelace. Any thoughts on how to do this?
I’ve looked at the input_boolean docs and searched the forums but couldn’t find anything.
The precise use case is that I want to record that a light is turned on manually (the input_boolean) rather than by automation (by motion sensor). This will allow me to add a condition to not automatically turn a light off, if it had been turned on manually.
And then you can either just add that script as a button which will automatically fire when you press it, or use another kind of lovelace element and set it’s tap action to fire the script.
Thanks! As I’ve got a number of rooms (light groups) to configure like this, do you think this one script could be generalised to accept variables from the Lovelace card?