I’m reigniting this thread if possible…
I’m also having a template binary_sensor that seems to be not doing what I thought it would.
I’m using the legacy template binary_sensor and here is my code
binary_sensor:
makita_batteries_charging:
friendly_name: "Makita Batteries are Charging"
device_class: power
value_template: >-
"{{ states('sensor.makita_left_consumption')|float > 25
or states('sensor.makita_middle_consumption')|float > 25
or states('sensor.makita_right_consumption')|float > 25 }}"
If I paste that template into the editor, it shows true
when any single charger has a battery charging and false
when they are complete or no battery is charging. This is the behavior that I want, but the template binary_sensor never changes state.
This is possibly due to the change in template sensors, but I hadn’t made the switch because all my other sensors seemed to still be functioning and it would be a fair amount of work to change them all up.
Am I missing something, or do I just need to update all my template entities?
Thanks in advance.