I am struggling with states on this binary sensor. Since im just listening to a event, this sensor ends up being in an “unknown” state once in a while. I want it to go open and closed based on the messages i receive, but if it goes “unknown” i want it to be closed.
Is it possible? Im not sure what i am missing here since “else” is “Closed”
Something like this? I Still struggle a little with the spacing and when and when not to use -
Question on the topic:
Wouldnt it be possible to run an automation that would reload all templates? I guess i would either have to add all the sensors in the automation, or make a group of the sensors?
Instead of adding this into all the sensors, could i add the restart and the reload on top of all the senors? I will probably have about 20 of them in a short time.
After a little thinking i went with having the adding two triggers to each Trigger-based Template Binary Sensor. More of a personal thing i guess, but i feel its less to follow up.
For me its just a few more lines in yaml, but cleaner and easier to track
Also i dont have to maintain the automation on the side when i add or remove sensors.