Google Calendar - Future Events

Hey guys -

With my kids starting to go back to school, I’m starting to play around w/ some automations to for if it is a school day or not - and I’m also looking at how I can do some automations (such as notifications) or display info in lovelace for future events - things like “Tomorrow is a school day, so do xyz”, but I dont see anyway for the calendar component to fetch future events… Does anyone know a way around this?

Thanks

1 Like

Looking for something similar.

The closest I’ve found is that the attributes of the sensor indicate the next event start time. So, as long as you’re using the search feature for a specific “School Day” search, you could use those attributes to find it, I think.

I’ve personally gone the magicmirror way for this. I have a spare monitor that i’ve hooked up to a Pi that displays the family calendar, weather, news, commute times as well as feel from my front CCTV as background

I’ve also done a very basic integration with HA so that I can change the background CCTV feed using an input_select in HA and a profile in magicmirror.

I know it’s not exactly what you originally were after but it might give you some ideas.

In case you missed it, the workday binary sensor has a days_offset parameter, and takes account of local holidays.

It won’t of course, take account, of any school specific holidays.

Thanks; this is valuable, but for me, its about specific events in my calendar.

I’ve personally gone the magicmirror way for this. I have a spare monitor that i’ve hooked up to a Pi that displays the family calendar, weather, news, commute times as well as feel from my front CCTV as background

This is similar to what I want to do, but I want it HASS so I can do notifications :frowning: For dashboarding, I may just use a lovelave iframe card.

Thanks!

1 Like

a google calendar will only give you the next event in your calendar. You can create multiple versions with a search filter to search for specific events, it will then give the next time that event is due to occur. You can then create automations on the back of this info

I’ve done this a couple of ways, but not to get a notification for a whole day ahead, so your results may vary. Firstly, by naming the event with “!!-30”, HA will get a notification 30 minutes ahead. On the assumption your school calendar has all-day events and they start at midnight, you might only need notification 6 hours ahead, so you could try “!!-3600”.

Since I use Node Red, I have also used the Calendar node add-on there. This is now my preferred solution because you can choose to have the event fire ‘x’ seconds/minutes/hours/days before the calendar entry. There is also a node to query Google Calendar, so you could look up future events if it’s not the next event you’re after.

Ah, yea. That could work… I could fetch data using NR and actually send it to HASS. Didnt think of that. Thanks!