I am trying to write a template helper to indicate whether a light has been on (or window been open) at all even if it’s closed or off now. The template is meant to turn on when the light comes on or windows opens, and stay on until I manually turn it off (which shows I have checked it’s been left in an ok state)
The result so far is the template switch helper turns on with the light, but also turns off with the light - and doesn’t allow itself to be manually turned off. Using the virtual switch manually results in an error “Failed to perform the action switch/turn_off. Not a valid value for dictionary value @ data[entity_id]”
Not sure if it wanted something in the Actions on turn on etc but the only thing I’d want it to turn on or off is itself and it’s not available to pick like other helpers are! And obviously I don’t want it turning off with the light either.
Currently I have my “been on” system working with an automation and input_booleans but I think it would be nice to encapsulate it into template helpers.
1 post - 1 participant