Local calendars

Hi All,

Is there a way to manual add a bulk events into a local calendar?
In ./storage there is a file and I see those sections:

BEGIN:VEVENT
DTSTAMP:20230203T073038
UID:a80764ce-a394-11ed-927e-dca632f0725c
DTSTART:20231005
DTEND:20231006
SUMMARY:Halloween
CREATED:20230203T073038
DESCRIPTION:
RRULE:FREQ=YEARLY
SEQUENCE:0
END:VEVENT

I tried to add some events and updated all UID so all are unique. But when I restart HA the whole calendar is gone.

Greets

There’s a service call service: calendar.create_event that you can add the YAML parameter ‘in’ to .

I only mis the repeat, full day option. Or give only start date and end date for full day?
Still repeat option isn’t there.

You are right. I mixed up the in parameter. But after I copied and adjusted the .storage data block I got a new calendar entry :woman_shrugging:

and what file did you modify?

/config/.storage/local_calendar.my_calendar.ics

Yes. As the doc says for those fields:

True, you can’t add repeat events this way.

Interesting. ics files are standard for calendars. I bet if you took an existing calendar, exported it as ics and replaced that file with it then it would work.

Disclaimer: I have not tried this.

1 Like