I have integrated my Google Calendar into Home Assistant.
I have an entity called “calendar.important_dates”.
Using a function I can fetch the data as follows:
var states = global.get('homeassistant.homeAssistant.states');
var calendar = states["calendar.important_dates"];
return calendar
What I have noticed is that this only shows one event from the current day i.e. I don’t see the other events on the same day or from upcoming days.
What should the code look like to pull a series of days or at the very least all events from a particular day?