I’m out of my depth and have no idea what I’m doing.
I’m looking to be able to have an automation where 1 hour before an event, it will populate a text helper with the summary of the event.
The use case is, I have different parking space allocations at work, and I want to be able to view this from Android Auto, which I believe should be straight forward by selecting the helper, and seeing the parking space number displayed.
I tried the following but I know I’m going very wrong, but don’t know where to go from here.
Thanks for your help. I’m having a little issue with this however. I’m getting an error when I test run the automation:
Error: Error rendering data template: UndefinedError: ‘dict object’ has no attribute ‘calendar_event’
It feels like I should be referencing my calendar somewhere, is that right?
(the automation also isn’t being triggered by the event an hour before. But i’ll cross that bridge later, I can work around that)
Ah okay, understood. I’ve not had it trigger for an event happening in an hours time, but I’ve created the event for 1hr2m ahead. I will create one further in the future and see if that works
The calendar event trigger listener only updates on the quarter-hour or when an automation with a calendar event trigger is reloaded. When testing by creating a new calendar event make sure to either:
Create the test calendar event so that it will trigger the automation after the next quarter hour. In your example that would mean scheduling the event for approximately 1 hour 15 minutes from the current time.
Create the calendar event then edit the automation so that it requires a new save. One easy option for this is to add a short delay at the end of the automation.
For this automation, with a negative 1 hour offset, you need to create the test event farther in the future (for the reasons described by Didgeridrew).