Still trying to get this to work with my irrigation calendar in iCloud.
homeassistant: 0.86.0 – installed today.
ubuntu 16.4 – dist-upgrade done today.
a diagnostic. by changing the username, i am able to confirm that i am connecting to iCloud because when I change the username, i receive this message:
caldav.lib.error.AuthorizationError: AuthorizationError at ‘https://p52-caldav.icloud.com:443/272825453/calendars/’, reason ‘Unauthorized’
My configuration remains as presented above:
#########################################################
# calendar used to drive irrigation dates and times
# the iCloud Irrigation calendar has all of the data
# calendar event location will contain the JSON value group to run
# node-red will parse JSON and queue up each valve and duration
# queued events are sent to esp32 via mqtt
#########################################################
calendar:
- platform: caldav
url: https://p52-caldav.icloud.com:443/123456789/calendars
username: myappleid
password: icloudapppwd xxxx-xxxx-xxxx-xxxx
calendars:
- 'Irrigation'
The log content generated during homeassistant restart:
2018-11-11 12:48:24 ERROR (MainThread) [homeassistant.components.calendar] Error while setting up platform caldav
Traceback (most recent call last):
File “/srv/homeassistant/lib/python3.6/site-packages/homeassistant/helpers/entity_platform.py”, line 128, in _async_setup_platform
SLOW_SETUP_MAX_WAIT, loop=hass.loop)
File “/usr/lib/python3.6/asyncio/tasks.py”, line 358, in wait_for
return fut.result()
File “/usr/lib/python3.6/concurrent/futures/thread.py”, line 56, in run
result = self.fn(*self.args, **self.kwargs)
File “/srv/homeassistant/lib/python3.6/site-packages/homeassistant/components/calendar/caldav.py”, line 98, in setup_platform
WebDavCalendarEventDevice(hass, device_data, calendar)
File “/srv/homeassistant/lib/python3.6/site-packages/homeassistant/components/calendar/caldav.py”, line 111, in init
super().init(hass, device_data)
File “/srv/homeassistant/lib/python3.6/site-packages/homeassistant/components/calendar/init.py”, line 89, in init
self.update()
File “/srv/homeassistant/lib/python3.6/site-packages/homeassistant/components/calendar/init.py”, line 155, in update
if not self.data or not self.data.update():
File “/srv/homeassistant/lib/python3.6/site-packages/homeassistant/util/init.py”, line 324, in wrapper
result = method(*args, **kwargs)
File “/srv/homeassistant/lib/python3.6/site-packages/homeassistant/components/calendar/caldav.py”, line 186, in update
and not self.is_over(event.instance.vevent))), None)
File “/srv/homeassistant/lib/python3.6/site-packages/homeassistant/components/calendar/caldav.py”, line 186, in
and not self.is_over(event.instance.vevent))), None)
File “/srv/homeassistant/lib/python3.6/site-packages/homeassistant/components/calendar/caldav.py”, line 229, in is_over
WebDavCalendarData.get_end_date(vevent)
TypeError: can’t compare offset-naive and offset-aware datetimes