I made an add-on that gives you an other way of integrating caldav or google calendar data and working with that data in Home Assistant automations and cards: Hass calendar add-on on Github.
Unlike the standard calendar integration, this add-on will give you a sensor with your calendar data in stead of a binary sensor. Once set up you’ll see an entity like this for each calendar you add to the add-on configuration:
entity: sensor.my-calendar
state: 2
data:
- startDate: '2022-01-08T20:00:00.000Z'
endDate: '2022-01-08T23:30:00.000Z'
summary: Event example one
location: Some street, Some place
label: 🎉 party-time
year: '22'
start_month: jan
start_day: 8
start_time: '21:00'
end_month: jan
end_day: 9
end_time: '00:30'
- startDate: '2022-01-14T17:30:00.000Z'
endDate: '2022-01-14T20:30:00.000Z'
summary: Event example two
location: My house
year: '22'
start_month: jan
start_day: 14
start_time: '18:30'
end_month: jan
end_day: 14
end_time: '21:30'
recurring: true
With the raw data available like this you can then build automations on top of that.
Check out the readme and docs for more info.
Some calendar designs
My main personal usage is in the front-end. The standard calendar panel in Home Assistant is already very nice, but with the data from the add-on you can build your own calendar lay-outs or include calendar-data in other cards with HA’s templating syntax.
For instance, I have this summary of upcoming events on my main dashboard:
This is built with a custom button card (the one card to rule them all). Card code on github. Credit: design inspiration is from this codepen.
I’m interested to see what designs others come up with, feel free to showcase them in this thread.