Hi!
I have used a template binary sensor for precence tracking which has worked just fine for a long time. But suddenly, they just became unavailable. I have tested the template statement in the developer tools, and it works just as it should. But the binary sensors just does not seem to exist any more. It just says “Entity not found”…
binary_sensor:
- platform: template
sensors:
jonas_home_sensor:
friendly_name: Jonas Hemma
device_class: occupancy
value_template: '{{ True if is_state("input_boolean.jonas_hemma", "on") else False }}'
I’m on version 2024.1.5 and it has worked fine on that one up until today…
Also if you are only using this for display in a dashboard (so no one can change the state manually) you no longer need a template sensor for this. You can use the simple-entity option in an entities card:
I changed the declaration of the binary sensors to the new format. With just a YAML reload it did not help. After some fiddling, I tried full restart instead and just as suddenly as the binary sensors disappeared, the not reappeared. I’m not sure what was the reason, as I tried restart several times yesterday to no avail.