I have several automations that are triggered by a calendar event. These had run last year but recently have stopped working. Going into the automation and attempting rebuilding them revealed that process had changed from a “State” selection to a “template”. After getting to know the new methods, if have found that some of the re-written automations do not trigger. I am creating test events in the calendar to trigger thes automations and yes I refresh the calendar and make sure the test event is present. Here is an example of an automation that worked.
alias: 005-MLK Day
description: ""
triggers:
- trigger: calendar.event_started
target:
entity_id: calendar.holiday_lights
options:
offset:
days: 0
hours: 0
minutes: 0
seconds: 0
offset_type: before
conditions:
- condition: template
value_template: "{{ 'MLK Day' in trigger.calendar_event.summary }}"
actions:
- type: turn_on
device_id: 30452fa9920632e6321742a622e3ed96
entity_id: f07975f7976bd9b1320ef6643d35dd0a
domain: light
brightness_pct: 100
- device_id: 30452fa9920632e6321742a622e3ed96
domain: select
entity_id: 0611fc262ceb925443e2659acec6549d
type: select_option
option: 07-MLK
mode: single
Here is an example of an automation that does not work:
talias: 001-New Years Day
description: ""
triggers:
- trigger: calendar.event_started
target:
entity_id: calendar.holiday_lights
options:
offset:
days: 0
hours: 0
minutes: 0
seconds: 0
offset_type: before
conditions:
- condition: template
value_template: "{{ 'New Years Day' in trigger.calendar_event.summary }}"
actions:
- type: turn_on
device_id: 30452fa9920632e6321742a622e3ed96
entity_id: f07975f7976bd9b1320ef6643d35dd0a
domain: light
brightness_pct: 100
- device_id: 30452fa9920632e6321742a622e3ed96
domain: select
entity_id: 0611fc262ceb925443e2659acec6549d
type: select_option
option: 03-New Years
mode: single
I don’t see a difference.