poudenes
(Poudenes)
February 3, 2023, 7:39am
1
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
pedolsky
(Pedolsky)
February 3, 2023, 8:44am
2
There’s a service call service: calendar.create_event
that you can add the YAML parameter ‘in’ to .
poudenes
(Poudenes)
February 3, 2023, 2:44pm
3
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.
pedolsky
(Pedolsky)
February 3, 2023, 5:12pm
4
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
poudenes
(Poudenes)
February 3, 2023, 5:53pm
5
and what file did you modify?
pedolsky
(Pedolsky)
February 3, 2023, 7:17pm
6
/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