Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 105702

Trigger for multiple sensors with attribute

$
0
0

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

Read full topic


Viewing all articles
Browse latest Browse all 105702

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>