Hello All,
I am trying to trigger an automation when my Kitchen Timer sensor changes to any end_time from any end_time except for “”. I have my event below and my automation below. I am not sure why the automation isn’t being triggered. Any help would be appreciated.
event_type: state_changed
data:
entity_id: sensor.kitchen_speakery_timer_1
old_state:
entity_id: sensor.kitchen_speakery_timer_1
state: ""
attributes:
duration: ""
end_time: ""
integration: google_home
icon: mdi:timer
friendly_name: Timer 1
last_changed: "2024-09-02T15:56:09.950066+00:00"
last_reported: "2024-09-02T15:56:09.950066+00:00"
last_updated: "2024-09-02T15:56:09.950066+00:00"
context:
id: 01J6SQ6SAVFY49R8S03JASZYF6
parent_id: null
user_id: null
new_state:
entity_id: sensor.kitchen_speakery_timer_1
state: active
attributes:
duration: "0:01:00"
end_time: "2024-09-02T12:04:22-04:00"
integration: google_home
icon: mdi:timer
friendly_name: Timer 1
last_changed: "2024-09-02T16:03:42.263285+00:00"
last_reported: "2024-09-02T16:03:42.263285+00:00"
last_updated: "2024-09-02T16:03:42.263285+00:00"
context:
id: 01J6SQMK1MRCP63DK9B6MX2DRS
parent_id: null
user_id: null
origin: LOCAL
time_fired: "2024-09-02T16:03:42.263285+00:00"
context:
id: 01J6SQMK1MRCP63DK9B6MX2DRS
parent_id: null
user_id: null
alias: "Alarm: Kitchen Alarm"
description: ""
trigger:
- platform: event
event_type: state_changed
event_data:
entity_id: sensor.kitchen_speakery_timer_1
variables:
end_time: "{{ trigger.event.data.old_state.attributes.end_time}}"
context: {}
condition:
- condition: template
value_template: "{{end_time != ''}}"
action:
- action: notify.google_assistant_sdk
data:
message: Kitchen Alarm is Ringing
target:
- playroom
mode: single