Hi *,
I try to connect my Nextcloud server to my Hass.io, i.e. I want to use the Caldav integration. But I cannot get it to work.
Here is my config:
calendar:
- platform: caldav
username: christoph
password: xxxxxxxxxxx
url: https://10.5.0.43/remote.php/dav/calendars/christoph/
calendars:
- 'HomeAutomation'
I see the following errors/warnings in the HA log:
Protokolldetails ( WARNING )
Logger: homeassistant.components.calendar
Integration: Kalender (documentation, issues)
First occured: 6:25:14 (1 occurences)
Last logged: 6:25:14
Setup of calendar platform caldav is taking over 10 seconds.
and
Protokolldetails ( ERROR )
Logger: homeassistant.components.calendar
Integration: Kalender (documentation, issues)
First occured: 15:24:01 (1 occurences)
Last logged: 15:24:01
Error while setting up caldav platform for calendar
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/urllib3/connection.py", line 157, in _new_conn
(self._dns_host, self.port), self.timeout, **extra_kw
File "/usr/local/lib/python3.7/site-packages/urllib3/util/connection.py", line 84, in create_connection
raise err
File "/usr/local/lib/python3.7/site-packages/urllib3/util/connection.py", line 74, in create_connection
sock.connect(sa)
TimeoutError: [Errno 110] Operation timed out
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/urllib3/connectionpool.py", line 672, in urlopen
chunked=chunked,
File "/usr/local/lib/python3.7/site-packages/urllib3/connectionpool.py", line 376, in _make_request
self._validate_conn(conn)
File "/usr/local/lib/python3.7/site-packages/urllib3/connectionpool.py", line 994, in _validate_conn
conn.connect()
File "/usr/local/lib/python3.7/site-packages/urllib3/connection.py", line 300, in connect
conn = self._new_conn()
File "/usr/local/lib/python3.7/site-packages/urllib3/connection.py", line 169, in _new_conn
self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x71d6d2f0>: Failed to establish a new connection: [Errno 110] Operation timed out
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/requests/adapters.py", line 449, in send
timeout=timeout
File "/usr/local/lib/python3.7/site-packages/urllib3/connectionpool.py", line 720, in urlopen
method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
File "/usr/local/lib/python3.7/site-packages/urllib3/util/retry.py", line 436, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='10.5.0.43', port=443): Max retries exceeded with url: /remote.php/dav/calendars/christoph/ (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x71d6d2f0>: Failed to establish a new connection: [Errno 110] Operation timed out'))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 179, in _async_setup_platform
await asyncio.wait_for(asyncio.shield(task), SLOW_SETUP_MAX_WAIT)
File "/usr/local/lib/python3.7/asyncio/tasks.py", line 442, in wait_for
return fut.result()
File "/usr/local/lib/python3.7/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 74, in setup_platform
calendars = client.principal().calendars()
File "/usr/local/lib/python3.7/site-packages/caldav/davclient.py", line 118, in principal
return Principal(self)
File "/usr/local/lib/python3.7/site-packages/caldav/objects.py", line 370, in __init__
cup = self.get_properties([dav.CurrentUserPrincipal()])
File "/usr/local/lib/python3.7/site-packages/caldav/objects.py", line 219, in get_properties
response = self._query_properties(props, depth)
File "/usr/local/lib/python3.7/site-packages/caldav/objects.py", line 129, in _query_properties
return self._query(root, depth)
File "/usr/local/lib/python3.7/site-packages/caldav/objects.py", line 161, in _query
url, body, depth)
File "/usr/local/lib/python3.7/site-packages/caldav/davclient.py", line 133, in propfind
{'Depth': str(depth)})
File "/usr/local/lib/python3.7/site-packages/caldav/davclient.py", line 237, in request
auth=auth, verify=self.ssl_verify_cert)
File "/usr/local/lib/python3.7/site-packages/requests/api.py", line 60, in request
return session.request(method=method, url=url, **kwargs)
File "/usr/local/lib/python3.7/site-packages/requests/sessions.py", line 533, in request
resp = self.send(prep, **send_kwargs)
File "/usr/local/lib/python3.7/site-packages/requests/sessions.py", line 646, in send
r = adapter.send(request, **kwargs)
File "/usr/local/lib/python3.7/site-packages/requests/adapters.py", line 516, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='10.5.0.43', port=443): Max retries exceeded with url: /remote.php/dav/calendars/christoph/ (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x71d6d2f0>: Failed to establish a new connection: [Errno 110] Operation timed out'))
I tried to use a custom caldav component, which has SSL deactivated in the constructor. Without any luck. I cannot use letsencrypt, because I have no domain and do not want it to be accessible on the internet.
Is there any solution to this problem?
Best,
Ck