HA sees my iCal iCloud calendars. I have a school year calendar which I would like to use to trigger events rather than work days since there are days/weeks/months where there is no work day. I’ve been reading all day and trying to get an event to fire when there is “work day” as an all day event in the calendar. The automation “trigger” only has a start/stop. How do I set “work days (or whatever) as the condition before firing actions? I tried the template condition {{ ‘workday’ in trigger.calendar_event.summary }} but that doesn’t work. I get an error “
In get this: UndefinedError: ‘trigger’ is undefined”
Here is the code:
alias: Work day
description: “”
trigger:
- platform: calendar
event: start
offset: “0:0:0”
entity_id: calendar.rhs_sy22_23
condition: - condition: template
value_template: “{{ ‘workday’ in trigger.calendar_event.summary }}”
action: []
mode: single
yaml
calendar:
- platform: caldav
url: https://caldav.icloud.com
username: !secret apple_user
password: !secret apple_specific
calendars:- Family
- RHS SY22-23