Trigger automation based on date from template


Is there any way to dynamically trigger automation based on date from template?

More specifically, I’m using Google Calendar integration. Calendar sensor has start_time attribute. I want my automation to trigger 10 minutes before the start time.

Ideally, I would want some automation to trigger whenever calendar sensor updates and schedule another automation for exactly 10 minutes before the start time. But I cannot find a good way to do this. At the moment I’m just updating the automation every 10 minutes and filtering it with condition template which is a bit wasteful.

Is there a better way to do this?

template trigger?

automation on your sensors’s state change

in action: get the start time, decrease it by 10 mins, set a timer (and don’t forget to create an automation that should run when the timer expires)

Timer actually looks like what I want. Thanks!

1 Like