I am trying to create an automation that will run a script based on a specific calendar event. When there is an all day event in my calendar called “SLOUGH” i would like it to wait to 07:45 then run the script. Below is the automation i have, the trigger with offset time works, but the condition doesnt seem to match so the action doesnt run. Any help would be appreciated.
alias: Car - Pre-condition Car
description: “”
trigger:
- platform: calendar
event: start
entity_id: calendar.calendar_simon_personal
id: Calendar Event
offset: “7:45:0”
condition:
action: - if:
- condition: and
conditions:- condition: trigger
id:- Calendar Event
- condition: template
value_template: “{{ trigger.calendar_event.summary == ‘SLOUGH’ }}”
then:
- condition: trigger
- service: script.1701087118794
data: {}
enabled: false - service: notify.mobile_app_rmx2144
data:
message: Climate toggled for journey to Slough
mode: single
- condition: and