I have several binary_sensor.zone_XX, with bateria_baixa attribute.
I want to trigger an automation if any of them change the bateria_baixa attribute from 0 to 1.
trigger:
- platform: template
value_template: "{{ states.binary_sensor.zona_33.attributes.bateria_baixa | int == 1 }}"
How can I do this without declaring the sensors separately?
1 post - 1 participant