Hi All,
Saw in the latest release that caldav support was added so I thought I’d give it a whirl as I’ve been using a Caldav server with Mozilla Thunderbird as a client for a number of years. So far I have’t had any luck getting it to work by following the guide here: https://home-assistant.io/components/calendar.caldav/
Here’s the relevant bits from my log:
Dec 18 15:24:51 ca-vic-cm-hass01 hass[17317]: #033[31m2017-12-18 15:24:51 ERROR (MainThread) [homeassistant.components.calendar] Error while setting up platform caldav#033[0m
Dec 18 15:24:51 ca-vic-cm-hass01 hass[17317]: Traceback (most recent call last):
Dec 18 15:24:51 ca-vic-cm-hass01 hass[17317]: File “/srv/hass/lib/python3.5/site-packages/homeassistant/helpers/entity_component.py”, line 171, in _async_setup_platform
Dec 18 15:24:51 ca-vic-cm-hass01 hass[17317]: SLOW_SETUP_MAX_WAIT, loop=self.hass.loop)
Dec 18 15:24:51 ca-vic-cm-hass01 hass[17317]: File “/usr/lib/python3.5/asyncio/tasks.py”, line 400, in wait_for
Dec 18 15:24:51 ca-vic-cm-hass01 hass[17317]: return fut.result()
Dec 18 15:24:51 ca-vic-cm-hass01 hass[17317]: File “/usr/lib/python3.5/asyncio/futures.py”, line 293, in result
Dec 18 15:24:51 ca-vic-cm-hass01 hass[17317]: raise self._exception
Dec 18 15:24:51 ca-vic-cm-hass01 hass[17317]: File “/usr/lib/python3.5/concurrent/futures/thread.py”, line 55, in run
Dec 18 15:24:51 ca-vic-cm-hass01 hass[17317]: result = self.fn(*self.args, **self.kwargs)
Dec 18 15:24:51 ca-vic-cm-hass01 hass[17317]: File “/srv/hass/lib/python3.5/site-packages/homeassistant/components/calendar/caldav.py”, line 59, in setup_platform
Dec 18 15:24:51 ca-vic-cm-hass01 hass[17317]: config.get(CONF_PASSWORD))
Dec 18 15:24:51 ca-vic-cm-hass01 hass[17317]: File “/srv/hass/lib/python3.5/site-packages/caldav/davclient.py”, line 93, in init
Dec 18 15:24:51 ca-vic-cm-hass01 hass[17317]: if self.url.username is not None:
Dec 18 15:24:51 ca-vic-cm-hass01 hass[17317]: File “/srv/hass/lib/python3.5/site-packages/caldav/lib/url.py”, line 91, in getattr
Dec 18 15:24:51 ca-vic-cm-hass01 hass[17317]: self.url_parsed = urlparse(self.url_raw)
Dec 18 15:24:51 ca-vic-cm-hass01 hass[17317]: File “/usr/lib/python3.5/urllib/parse.py”, line 295, in urlparse
Dec 18 15:24:51 ca-vic-cm-hass01 hass[17317]: url, scheme, _coerce_result = _coerce_args(url, scheme)
Dec 18 15:24:51 ca-vic-cm-hass01 hass[17317]: File “/usr/lib/python3.5/urllib/parse.py”, line 115, in _coerce_args
Dec 18 15:24:51 ca-vic-cm-hass01 hass[17317]: return _decode_args(args) + (_encode_result,)
Dec 18 15:24:51 ca-vic-cm-hass01 hass[17317]: File “/usr/lib/python3.5/urllib/parse.py”, line 99, in _decode_args
Dec 18 15:24:51 ca-vic-cm-hass01 hass[17317]: return tuple(x.decode(encoding, errors) if x else ‘’ for x in args)
Dec 18 15:24:51 ca-vic-cm-hass01 hass[17317]: File “/usr/lib/python3.5/urllib/parse.py”, line 99, in
Dec 18 15:24:51 ca-vic-cm-hass01 hass[17317]: return tuple(x.decode(encoding, errors) if x else ‘’ for x in args)
Dec 18 15:24:51 ca-vic-cm-hass01 hass[17317]: AttributeError: ‘function’ object has no attribute ‘decode’#033[0m
and my config file:
calendar:
- platform: caldav
url: http://< servername >:1080/users/< username >/calendar
username: < username >
password: < password >
really appreciate any suggestions.
Cheers!