Update - sorry for disturbing and maybe not handling this correct.
The problem has been solved. It was a “bug” in a ZIP Code which belonged to a contact which wasn’t part of my contact-list inside iOS contacts which made the entire calendar not functioning. After changing / merging the ZIP Code to an exisiting contact - it was working again.
Hi there,
I set up the icloud calendar integration by using the configuration.yaml. This is working fine for me and I can see my calendar incl. entries.
It has been setup with the following code:
calendar:
- platform: caldav
url: https://caldav.icloud.com
username: appleID-mail-adress
password: apple-specific-app-password
I can see all of my calendars I have online. But, the one I want to show or use is listet in HA, but if I tick (klick) it to show or start using the calendar card (with its entity: calendar.calendarname) it is not working.
Any suggestions what I am doing wrong or what do I miss?
Setup is on a Raspi 4B:
- core-version: core-2022.2.9
- supervisor-version: supervisor-2022.01.1
- os-version: Home Assistant OS 7.4
The log shows:
Logger: aiohttp.server
Source: components/caldav/calendar.py:174
First occurred: 19. Februar 2022, 14:21:53 (115 occurrences)
Last logged: 10:05:09
Error handling request
Traceback (most recent call last):
File “/usr/local/lib/python3.9/site-packages/aiohttp/web_protocol.py”, line 435, in _handle_request
resp = await request_handler(request)
File “/usr/local/lib/python3.9/site-packages/aiohttp/web_app.py”, line 504, in _handle
resp = await handler(request)
File “/usr/local/lib/python3.9/site-packages/aiohttp/web_middlewares.py”, line 117, in impl
return await handler(request)
File “/usr/src/homeassistant/homeassistant/components/http/security_filter.py”, line 60, in security_filter_middleware
return await handler(request)
File “/usr/src/homeassistant/homeassistant/components/http/forwarded.py”, line 98, in forwarded_middleware
return await handler(request)
File “/usr/src/homeassistant/homeassistant/components/http/request_context.py”, line 28, in request_context_middleware
return await handler(request)
File “/usr/src/homeassistant/homeassistant/components/http/ban.py”, line 79, in ban_middleware
return await handler(request)
File “/usr/src/homeassistant/homeassistant/components/http/auth.py”, line 219, in auth_middleware
return await handler(request)
File “/usr/src/homeassistant/homeassistant/components/http/view.py”, line 137, in handle
result = await result
File “/usr/src/homeassistant/homeassistant/components/calendar/init.py”, line 209, in get
event_list = await entity.async_get_events(
File “/usr/src/homeassistant/homeassistant/components/caldav/calendar.py”, line 141, in async_get_events
return await self.data.async_get_events(hass, start_date, end_date)
File “/usr/src/homeassistant/homeassistant/components/caldav/calendar.py”, line 174, in async_get_events
if not hasattr(event.instance, “vevent”):
File “/usr/local/lib/python3.9/site-packages/caldav/objects.py”, line 1553, in _get_vobject_instance
self._set_vobject_instance(vobject.readOne(to_unicode(self._get_data())))
File “/usr/local/lib/python3.9/site-packages/vobject/base.py”, line 1155, in readOne
return next(readComponents(stream, validate, transform, ignoreUnreadable,
File “/usr/local/lib/python3.9/site-packages/vobject/base.py”, line 1101, in readComponents
vline = textLineToContentLine(line, n)
File “/usr/local/lib/python3.9/site-packages/vobject/base.py”, line 925, in textLineToContentLine
return ContentLine(*parseLine(text, n), **{‘encoded’: True,
File “/usr/local/lib/python3.9/site-packages/vobject/base.py”, line 813, in parseLine
raise ParseError(“Failed to parse line: {0!s}”.format(line), lineNumber)
vobject.base.ParseError: At line 33: Failed to parse line: 60325 FRANKFURT AM MAIN:
Logger: caldav
Source: /usr/local/lib/python3.9/site-packages/caldav/objects.py:1555
First occurred: 19. Februar 2022, 14:21:53 (115 occurrences)
Last logged: 10:05:09
Something went wrong while loading icalendar data into the vobject class. ical url: https://p32-caldav.icloud.com:443/449107956/calendars/19f0890fb4ba5bdcd33428c766953140452e6bc4aab68fcd560e6b64ad472c8d/D36A0C3B-045C-4667-9648-0DC703692C98.ics