OK, sorry about this post, feels like such a simple thing but I’ve not been able to find a way of doing it…
All I want to do is trigger an automation on an entity state change, not an attribute change.
This is what I’ve got but it triggers on every attribute change, which i don’t want.
- alias: cycle nanoleaf on weather change
initial_state: true
trigger:
platform: state
entity_id: weather.met_office_moor_allerton
condition:
- condition: state
entity_id: light.nanoleaf_aurora_52_4b_ff_local
state: 'on'
The only way I can see is to add a condition a bit like;
condition:
- condition: template
value_template: "{{ trigger.to_state.state != trigger.from_state.state }}"
But that seems really clunky, is there a simple way to just trigger on state change, not attribute change???
Thank you