Automation which triggers if any attribute of an entity will change

Hi!

I am trying to make an automation which triggers if any of the attributes of an entity, changes. But I want to make it small, there is any way to do this without adding 10 triggers with the same entity but different attribute?

Something like this would be great but it is not working

platform: state
entity_id:
  - sensor.rooms_occupancy_momentary
attribute:
  - Kitchen
  - Living
  - Bedroom
  - Balcony

Thanks

This trigger will trigger on all attribute and state changes.

platform: state
entity_id:
  - sensor.rooms_occupancy_momentary

To reject state changes and only perform the actions if an attribute changed add this condition:

condition: template
value_template: "{{ trigger.from_state.state == trigger.to_state.state }}"
1 Like