I have calendars set up in HomeAssistant which I’d like to use to display upcoming events on my AppDaemon dashboard. I read through the documentation but am feeling a bit overwhelmed by the sheer number of moving parts. I’m not really sure where to start.
Do I need to create a custom appdaemon app in addition to a custom HADashboard base widget? Or is there a way I can do it with just a custom widget?
I made a little progress with this, I created a template sensor helper (using the example in the documentation for the HA Calendar feature) and now I can pull that into AppDaemon. Right now the data just shows up as an array of objects, but I think I should be able to create a custom widget to handle the formatting.
For anyone who finds this later, the two things you need are a template sensor on the HA side that creates the list of events, and custom base widget on the AppDaemon side that displays it.
This is the template sensor, which goes in HA’s configuration.yaml
Then you need to create a custom_widgets folder in your AppDaemon config folder if it’s not already there, and create both a base widget (with a descriptive name like basecalendar) as well as a derived widget called something like calendar.yaml . To create the base widget I copied the basedisplay widget files from the github repo and then modified them to suit my formatting needs.