Hi! I’m trying to add my calendar but iy seems i’m missing something.
Here is my conf:
#calendrier icloud
calendar:
- platform: caldav
username: my apple id
password: my apple pass
url: webcal://p31-caldav.icloud.com/published/2/lotsOfCharacters
And the log:
Logger: homeassistant.components.calendar
Source: components/caldav/calendar.py:77
Integration: Calendrier (documentation, issues)
First occurred: 16:12:43 (1 occurrences)
Last logged: 16:12:43
Error while setting up caldav platform for calendar
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 200, in _async_setup_platform
await asyncio.shield(task)
File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/src/homeassistant/homeassistant/components/caldav/calendar.py", line 77, in setup_platform
calendars = client.principal().calendars()
File "/usr/local/lib/python3.8/site-packages/caldav/davclient.py", line 124, in principal
return Principal(self)
File "/usr/local/lib/python3.8/site-packages/caldav/objects.py", line 381, in __init__
cup = self.get_properties([dav.CurrentUserPrincipal()])
File "/usr/local/lib/python3.8/site-packages/caldav/objects.py", line 227, in get_properties
response = self._query_properties(props, depth)
File "/usr/local/lib/python3.8/site-packages/caldav/objects.py", line 130, in _query_properties
return self._query(root, depth)
File "/usr/local/lib/python3.8/site-packages/caldav/objects.py", line 164, in _query
ret = getattr(self.client, query_method)(
File "/usr/local/lib/python3.8/site-packages/caldav/davclient.py", line 138, in propfind
return self.request(url or self.url, "PROPFIND", props,
File "/usr/local/lib/python3.8/site-packages/caldav/davclient.py", line 250, in request
r = requests.request(method, url, data=to_wire(body),
File "/usr/local/lib/python3.8/site-packages/requests/api.py", line 61, in request
return session.request(method=method, url=url, **kwargs)
File "/usr/local/lib/python3.8/site-packages/requests/sessions.py", line 542, in request
resp = self.send(prep, **send_kwargs)
File "/usr/local/lib/python3.8/site-packages/requests/sessions.py", line 649, in send
adapter = self.get_adapter(url=request.url)
File "/usr/local/lib/python3.8/site-packages/requests/sessions.py", line 742, in get_adapter
raise InvalidSchema("No connection adapters were found for {!r}".format(url))
requests.exceptions.InvalidSchema: No connection adapters were found for 'webcal://p31-caldav.icloud.com/published/2/LotdsOfCharacters/'
I’ve tried with url https://caldav.icloud.com/published/2/lotsofcharacters with no luck:
Logger: homeassistant.components.calendar
Source: components/caldav/calendar.py:77
Integration: Calendrier (documentation, issues)
First occurred: 16:21:57 (1 occurrences)
Last logged: 16:21:57
Error while setting up caldav platform for calendar
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 200, in _async_setup_platform
await asyncio.shield(task)
File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/src/homeassistant/homeassistant/components/caldav/calendar.py", line 77, in setup_platform
calendars = client.principal().calendars()
File "/usr/local/lib/python3.8/site-packages/caldav/davclient.py", line 124, in principal
return Principal(self)
File "/usr/local/lib/python3.8/site-packages/caldav/objects.py", line 381, in __init__
cup = self.get_properties([dav.CurrentUserPrincipal()])
File "/usr/local/lib/python3.8/site-packages/caldav/objects.py", line 227, in get_properties
response = self._query_properties(props, depth)
File "/usr/local/lib/python3.8/site-packages/caldav/objects.py", line 130, in _query_properties
return self._query(root, depth)
File "/usr/local/lib/python3.8/site-packages/caldav/objects.py", line 164, in _query
ret = getattr(self.client, query_method)(
File "/usr/local/lib/python3.8/site-packages/caldav/davclient.py", line 138, in propfind
return self.request(url or self.url, "PROPFIND", props,
File "/usr/local/lib/python3.8/site-packages/caldav/davclient.py", line 277, in request
raise ex
caldav.lib.error.AuthorizationError: AuthorizationError at 'https://caldav.icloud.com/published/2/lotsofcharacters', reason 'Unauthorized'