This is my first time posting so please be gentle…
I work an irregular schedule so every week is different, instead of manually setting my alarm every day like a peasant, I’d like to spend far too much time creating an automation that triggers a scene at 8am if there is an entry in my Google Calendar with a specific word.
Basically:
If there is a calendar event with ‘school’ or ‘kindergarten’, then run scene.wakethefup at 8am
I would really appreciate any help with this problem!
Cheers, a n00b
I am a heavy user of the Google Calendar Integration. However I have not found out yet how to use time-specific events, meaning having an automation that runs on a calendar entry at a specific time.
What I have done is to create several (sub) calendars in my Google calendar, including wake-up 6:00 am; wake-up 7:00 am etc.
On days that I need to wake up at any of these times, in the Google Calendar I set a whole-day event with that sub-calendar.
In HA I first created a Script that switches on lights, makes Alexa to “speak” (wake-up etc).
Then I created an automation for each of the various wake-up times:
Trigger: calendar wake-up 6:30 with time-offset 6:30
Action: Run script
This may look complicated but while the set-up takes a bit of time, it does exactly what I need. Between my Wife and I we have some 5 regular wake-up times and this runs really well.
I also have a sub-calendar named wake-up once which runs the same script, but I need to change the time-offset as needed each time.
I’ve been working on getting my HA to recognize a range of dates for my utility company peak hours from my calendar Entity. I found this page with details you may be able to use.
There, you should be able to use “trigger.calendar_event.summary” = “The title or summary of the calendar event.” or “trigger.calendar_event.description” == “A detailed description of the calendar event, if available.”
You can use the commands with a helper, a binary sensor or another helper.
@Rodrick has a good answer and also see Calendar - Home Assistant which has full examples of how to use it to match specific events using the same approach as described by Rodrick.
Many thanks for pointing this out.
I have numerous automations that run at specific times based on a Google Calendar event, using the calendar as Trigger with a time off-set Trigger: calendar XYZ Time off-set: 7:00 Action: turn on light ABC
To make this work, I create an all-day event in calendar XYZ
The way I understand it, your examples are similar, but what I would want to know is if I could use a time-specific event in my calendar, such as: Trigger: meeting KLM at 10:30 am in calendar XYZ
My impression is that the trigger data avail can be used as a condition so you can use that to match specific data in the calendar such as name or start time. I may be misunderstanding but I think that works for what I understand you are looking for.
The time-specific events of my Google Calendars do not show as entities in HA. However, all Google Calendar events show in HA in the Calendar Card Configuration.
The only Google calendar entities are the calendars themselves and the only way (that I have discovered) to make it work is through all-day events.
I’m not sure I’m following. Double check the link I sent about how to do automations matching specific events. The examples are not using entities, but calendar triggers for each event that occurs.
I stand corrected… It actually DOES work. I created a time-specific event in one of my calendar with an action of a light going on. It did work, but HA basically identifies that there is an event in the specific calendar and then executes the action. In other words it will activate the action on ANY event in that calendar. It is helpful and I just need to create a calendar for each type of event (wake-up, meetings, etc). Thanks for guiding me.
I’d like to correct your understanding a bit here – The point is you can add an action condition to match the specific type of event you want using the trigger data. Look at the example closer for the Calendar Event Light Schedule that I linked. I do not recommend creating separate calendars, just match the events you want to match in the automation as done in the example I linked.
I am not hero when it comes to using Yaml, but I will try to understand. This being said, the way I am set up (with already some 10 different calendars) I can make progress with your pointers, even without yet using Yaml.