I’ve been struggling to get my automations to work based upon the start/finish times of events in the HA calendar from Google Calendar. The events from Google Calendar are correctly appearing the calendar tab of HA but they’re not triggering the automation.
Bizarely if I manually add a new event within HA within the same calendar the automation triggers.
It’s not the fact that HA only updates at intervals- I can see the calendar event within the HA calendar so it’s certainly there.
I’ve managed a partial work-around by reviewing the state of the calendar which correctly shows on when an event is occurring and off when it ends. I’ve got state change triggers which work but ideally I’d be able to trigger the automation before the event begins.
I’ve read some threads suggesting the on/off state of the calendar is the work-around but has anyone yet got it to work as originally intended IE using the calendar trigger with an offset?
I’m really just curious whether this is a known issue. The fact that the triggers work when it’s calendar entry made within HA suggests its an integration issue. I’d read lots of posts about people struggling with calendar events but none mentioned triggering working correctly with locally added events- not sure if that helps narrow down the issue?
I don’t think I did anything wrong at the google dev API side of things otherwise I don’t believe the events added via Google Calendar would appear within the HA calendar.
Not sure it’s relevant (I’m fairly new to HA) but I’m running HAOS on a RPI4 on an SSD.
I can’t recreate this… No matter whether I add an event via Google or HA, the automation based on the calendar event will only trigger if I follow the rules of how/when the Calendar Event trigger listener updates.
It would be helpful if you would share your automation as well as information about the event times/offsets that are failing as well as when those events are being created.
So after further testing it appears my automations are now working. Though I’m not entirely sure what was going on I wonder if the issue is that the Calendar Event trigger listener update isn’t in sync with the Google Calendar sync- so an event could appear in the HA calendar but the event trigger listener wasn’t updated with it? I had read the quarter hour update and assumed that if it was appearing within HA calendar it should trigger the automation. Certainly the only thing I believe I changed today was setting the events in Google Calendar even further in the future. It almost feels like HA updates the calendar from Google calendar every quarter of an hour but then it takes another quarter hour for the event listener to pick up on the changes. That would kind of fit with what I was observing- that an event added directly to the HA calendar triggered (on the basis that it only had to wait for the listener to update) whereas events via Google calendar the same time in the future didn’t (because it had to accommodate the Google calendar delay plus also the listener delay).
Perhaps! Ultimately it’s working. In the real world I guess this issue won’t occur- if a last minute change occurs I’ll manually trigger the boolean input via the dashboard rather edit / add a calendar entry…