Local calendar option

Hi, I tried out Radicale in a container, and although it was very simple to setup and get running with HA, there is a long running request to implement the CalDAV standard for expanding recurring events- and as a result you will only see the first event in a recurring series in HA.

also maybe helpful list of caldav implementations with working expansion/other info: https://github.com/python-caldav/caldav/issues/157

DAViCal is in the main debian repo and seems like another good locally hostable choice, but at a glance has more management overhead(byo web server + db).

Yes please.

As I don’t want to use cloud/big tech solutions, I now use my NAS to host a calendar. But that means I have a open line to my NAS, which I don’t like (I normally only do backup/sync on demand) in relation with ransomeware.

Currently the simplest way is to run a local caldav server and use the caldav integration

I’ve started working on a local calendar integration:

Stay tuned

5 Likes

I’ve published the local calendar integration as custom component:

This does not yet include the frontend side of things, so you’ll have to use the service to create and delete events. If you are feeling brave, i’d love to hear folks feedback after trying it out even if the full UI isn’t there yet (it will display events, including recurring events, in the UI).

The storage is in an .ics in the .storage directory file if you want to poke at the innards.

7 Likes

That sounds great, any progress on a local sync option? I am using Google calendar and currently have issues with the calendar repeatedly becoming unavailable for some reason (see here: Google calendar repeatedly unavailable), a daily local sync would at least reduce the reliance on cloud services to always be available…

Hi, i also maintain the google calendar integration. I don’t think that issue is because of cloud vs local, but is really a configuration issue. I’ve left a reply on that thread with a suggestion, but either way even if its some other issue, just want to clarify that is not normal.

Not sure if this is how the service call should be created, but when I push the “call service” button, HA gives a “Unable to find service local_calendar.create_event” message.

Do I need to add something to configuration.yaml or am I missing something else?

Thanks,
Marco

1 Like

Local calendar has moved into core with add and delete via the UI in 2022.12 currently in beta

I’ll likely be turning down the custom component soon. Thanks everyone for trying it out.

6 Likes

This is such an awesome addition to HA! Thanks Allen :+1::tada:

Hi.
Very excited at the prospect of this, thank you for your work!

I am now on 2022.12.0, and I feel a bit silly but I can’t see where to add a personal calendar or an event?
I have ‘Calendar’ on the sidebar, and it has the Garbage Collection one I use, but not sure how to add my own etc?
Where do I find the documentation?

Thanks!

It’s called " local calendar *

1 Like

Thank you!!
:100:

Thank you!! The calendar in ha needed some love, it was long forgotten…
Is there any service available to set calendar entries?

Not yet, but will likely generalize the service for Google calendar to work for all calendars that support creation.

3 Likes

Is there a way to setup semi weekly or bi weekly events? And is there a way to display multi day events? like vacations, having everyday in the event marked?

Is it possible to import an .ics file into the local calendar?
Eg. for waste collection schedules?

1 Like

Am I stupid or something? What am I missing?

There is NO WAY to interact with the local calendar (?!?).

Super easy to create a new local calendar in the integration view, but then what? There is no service to add or remove events, and it is not possible to do so using the calendar pannel in the GUI, and it is also not possible to do anything but renaming / changing the ID when opening the entity (with the INFO/SETTINGS/RELATED-tabs).

The state will always be “off”, and the attributes with next event will never be populated, since there will never be any events. Why not replace it with a binary_sensor with hardcoded “off” value? They seem to be just as useful…

Or I am missing something obvious? :frowning:

It seems you’ve missed reading any of this or other threads on the topic and understanding that this is a work in progress.

As Allen pointed out three posts above yours, services are being worked on.

You can remove/delete events from the Calendar dashboard.

The state will be “off” unless the current date and time falls within an event. Unlike a hardcoded binary sensor, calendar events can be used to trigger automations and as conditions for scripts and automations.

I do understand it is a work in progress, but if you cannot do anything with it it is not even an MVP.

My key point was that there was (is?) no way to add events. I do understand that if there is an event, the state will change from off to on, and also attributes will populate. But that does not matter if you cannot add any events.

I also know someone pointed out that there was no services, and i didread that. There does not have to be services, but if there are no other ways either, then it is not possible to interact with the calendar in any way. Having no GUI is fine, if you have services, and having no services is also fine, if you have GUI. This does not have any of those (yet!), and that was my key point.

So I am obviously still missing something. All other things you can interact with, you click the entity. It does not matter if it is a light (then you have an on/off switch, possibly also color wheel), or a input text (then you have a text field) or a toggle (then you have a toggle) but if you click a calendar entity, then you get nothing.

Not sure what you mean with a calendar dashboard. When I add a calendar to a dashboard, using the calendar card, there is also no way to add events.