So I was wondering how I can retrieve google calendar events (time and name)
I want to make an automation inside node-red to check whenever my girlfriend has a night shift to set some action when shes in bed the next morning… at least prevent them shutters from going up when she’s in bed.
So If anyone has the template value laying around for retrieving those two values. please. when I try "
states.calendar.<calendar name>
It gives all values but I can’t seem to filter the values out.
Hi, very late to the party, but what of you want to display multiple events?
I have a TV shows calendar that I want to be able to list the upcoming shows from.
Likewise.
Just added the Google Calendar integration & wanted to make a days until template for a specific event. Not finding how to see events beyond the next one - like the HA Calendar displays.
You can make a template with a trigger for a specific event but there is not really an easy way to search. The rest API can scan over a range, if you are comfortable with JavaScript and frontend ui cards.
Hi, this thread did end somehow before getting to the solution
So, how could I achieve the following:
we have a Family calendar (google calendar), it is already integrated in Home Assistant.
There are multiple entries (all_day true and also all_day: false). I want be get a trigger if a specific full day event is three days ahead. I could not find a way to do that. If there are multiple full days events the routine only triggers if it’s the first event in the row. So sometimes I don’t get a trigger.
I know it sounds complicated, and maybe there is a easy solution? I would love to accomplish this within Node Red if possible.
(I know there would be a workaround for this: having a dedicated calendarf for these specific events, but this could cause our family to mix up entries and if unintentionally the specific event is added to thw wrong calendar, the family won’t see this in Home Assistant).
Within automations there is not an API for scanning events. The API the frontend uses is the rest API which can let you return events for a date range: REST API | Home Assistant Developer Docs – however, this is not typically how people get data from home assistant in an automation. I’ve been thinking about how to build this capability into home assistant more directly, but we don’t have a solution yet.
For Google, CalDav, and Baikal you can use the Hass Calendar Addon to create a sensor that makes the data from more calendar events available.
UPDATE:
With the addition of dedicated services like calendar.get_events and service response data, the Hass Calendar Add-on is no longer needed for most users.