It would be great to be able to import an ICS file into local calendar. For instance, my local trash collecting service provides a ics file for download that would be great to add to the local calendar.
Of course, uploading an .ics file is the “non-connected” way of working,
alternatively, one should be able to add a link to an online .ics file.
Yeah agreed this would be good. Right now the local file storage is an .ics file so you can technically swap out the storage file when home assistant is off, but allowing an import from a URL would be ideal.
One question I have is how often to update or if this is a one time import in a config flow. I could also see supporting a service call to import in a schedule you desire…
I too would love this feature. I’m trying to move away from relying on Google and have all my calendars saved but with no way of importing them into HA.
This feature would be great. Meanwhile, where can I find the ics files of the internal calendar on a home assistant os system ? I cant find them anywhere… What is the path ?
Doesn’t have to be off. I simply added a dummy event to make HA write the ics file to disc initially, then opened it in the FileEditor addon and replaced the contents with the ones from my ics file. Then restarted HA and my events were all “imported”. A native option is nicer of course.
In which folder do you find the correct file? I’d like to do the same as the topic starter, since I’m planning to make some automations based on the trash collection. I’d like to do it local with the ical file.
Birthday calendar so every user in the house gets notifications
School calendar for important events for the children (changes by the day)
Is there a way to script a refresh every x hours so the /config/.storage/local_calendar.name_of_your_calendar.ics
gets live data from an ICS url? Can’t think of a way to push data into that location.
Hello all - trying to import my local ics calendar into HA. I’ve checked the above location “/config/.storage/” but there is no calendar there even though I have one configured. Can I just copy or upload a file for HA to automatically recognize?
Ok. Let’s go step by step, ok?
Go to UI and create manually empty calendar. Just create a new calendar. You may create a new item here as well.
A new calendar also you can see at the left menu at your HA dashboard.
At this step in HASS folder /config/.storage/ you can see a new .ics file with name entity what you create a 1 minutes ago.
Please do not move next while you a not pretty sure what you can see a new brand file in HASS folder.
The next step is very easy - just replace - override this file with own. Attention again please keep name as is! Do not need to rename etc file. Ok?
The last step is reloading calendar in HASS. Just GOTO to dev menu and make a some magic like you show before in the screenshot.
That’s all talks (c)
Thank you for the complete explanation. I guess I missed the fact that I needed to use the UI to create the calendar in the first place. Now everything is working!!
Hi guys, I followed @10der his instructions but somehow something goes wrong.
I had an empty calendar and put the ics in place with the same name: no result.
Then I created a new calendar and put the ics in place with the new name: no result either. (it seems I had to add an event so that the ics file in HA gets created)
Next, deleted all calendars and started over again: no result.
What happens also: after reloading the service the calendar is gone from the calendar application whereas it still shows up in the integration but the entity is unavailable.
I checked the linux file permissions and they are OK so it’s not that.