Hi all,
I’ve attempted to see if others have reported the same issue, and found one other request, where the answer was to add “/2” to the hours, however this gets stripped out when I save the automation I have created. So basically, I’m looking to trigger an automation every hour, to check a calendar entry, and have the following code:
alias: School Holidays - New
description: ""
trigger:
- platform: time_pattern
hours: /1
- platform: time
at: "00:30:00"
- platform: time
at: "12:00:00"
condition:
- condition: or
conditions:
- condition: state
entity_id: >-
calendar.webcal_www_pollingtonbalneprimary_com_diary_ical_okwqstgfveim_ics
attribute: all_day
state: Inset days
- condition: state
entity_id: >-
calendar.webcal_www_pollingtonbalneprimary_com_diary_ical_okwqstgfveim_ics
attribute: all_day
state: Summer Holidays
- condition: state
entity_id: >-
calendar.webcal_www_pollingtonbalneprimary_com_diary_ical_okwqstgfveim_ics
attribute: all_day
state: Bank Holidays
- condition: state
entity_id: >-
calendar.webcal_www_pollingtonbalneprimary_com_diary_ical_okwqstgfveim_ics
attribute: all_day
state: Bank Holiday
- condition: state
entity_id: >-
calendar.webcal_www_pollingtonbalneprimary_com_diary_ical_okwqstgfveim_ics
attribute: all_day
state: Holidays
- condition: state
entity_id: >-
calendar.webcal_www_pollingtonbalneprimary_com_diary_ical_okwqstgfveim_ics
attribute: all_day
state: Inset Day
- condition: state
entity_id: >-
calendar.webcal_www_pollingtonbalneprimary_com_diary_ical_okwqstgfveim_ics
attribute: all_day
state: inset day
- condition: state
entity_id: sensor.family_calendar
state: Holidays
attribute: All day
action:
- service: input_boolean.turn_on
data: {}
target:
entity_id: input_boolean.school_holidays
mode: single
I’ve added the extra times in case it needed to be triggered initially, for the timer to be active… however even that didn’t work.
Would anyone have any suggestions.
Currently we’re patched to :
- Core2024.7.4
- Supervisor2024.08.0
- Operating System12.4
- Frontend20240710.0
Running on a raspberry p4 using Hassos.
Thanks