Hi I am trying to automate so that my Sonos system turns on when I disarm the alarm, but not when anyone else does.
I can’t get it to work. What have I missed?
trigger:
platform: state
entity_id: alarm_control_panel.alarm_1
state: disarmed
condition:
condition: template
value_template: "{{ states.alarm_control_panel.alarm_1.attributes.changed_by = 'Nnnnn Nnnnn' }}"
action:
service: media_player.turn_on
entity_id: media_player.kok```