CalDAV binding not working

  • Platform information:
    • Hardware: CPUArchitecture/RAM/storage RPi4 4GB
    • openHAB version:2.5.6-2

Hello,
I can’t get the CalDAV binding to run.
There are files updating in openhab-userdata\etc\caldav\abfallkalender but the items are not updating.
Any idea what went wrong?

grafik

String 						  Abfallkalender   		  			    "Tonne [%s]"  															   <calendar> 																												     {caldavPersonal="calendar:abfallkalender type:EVENT eventNr:1 value:NAME"}
DateTime    				  Abfallkalender_Date 				    "Datum der Abholung [%1$td.%1$tm.%1$tY]"    							   <calendar>    																											     {caldavPersonal="calendar:abfallkalender type:EVENT eventNr:1 value:START"}


caldavio.cfg

################################### CalDAV IO Binding ###################################
#
# Used to connect to Cal DAV.
# Path to the calendar
#<calendarId>:url=

# Username for the calendar
#<calendarId>:username=

# Password for the calendar
#<calendarId>:password=

# Reload interval unit is minutes. 
# Defines how often the calendar should be reloaded from server.
# Default is 60 minutes
#<calendarId>:reloadInterval=

# This defines which events are relevant for execution. Unit is in minutes.
# Default is 1 Day (1440 minutes)
#<calendarId>:preloadTime=

# A caldav Server is just a webdav Server which list files. Some servers does not use the valid timestamp for modifications.
# If your calendar does not provide correct timestamps you have to set this false.
# Default is true
#<calendarId>:lastModifiedFileTimeStampValid=

# SSL verification can be disabled, if you don't want to import the server certificate
# into the java keystore. This is just needed for self-signed certificates, where the
# certificate path cannot be verified. Default is false. Do not set to true if no SSL is used.
#<calendarId>:disableCertificateVerification=

# Timezone for events which does not have a timeZone information.
# Normally this is not required
#timeZone=

# Charset which should be used for reading an event.
#charset=UTF-8

# Müllkalender <Badge type="warn" text="v1"/>
caldavio:abfallkalender:url=https://www.google.com/calendar/dav/blabla@group.calendar.google.com/events
caldavio:abfallkalender:username=emailwithout@gmail.com
caldavio:abfallkalender:password=Password
caldavio:abfallkalender:reloadInterval=60
caldavio:abfallkalender:preloadTime=18720
caldavio:abfallkalender:disableCertificateVerification=true

caldavpersonal.cfg

############################# CalDAV Personal Binding ################################
# see CalDAV IO Binding
# Used to toggle switch items for presence. Switched to ON if an event in the calendar occurs.
# And back to OFF if the event ends.
# Can also be used to show upcoming or active events
# 
# Which calendars should be used to detect presence (comma separated)
# usedCalendars=<ids from caldav-io>
# 
# If the location of the event is one of this identifiers, the presence will not be changed.
# Can be used for events which are at home or are just reminders. (comma separated, optional)
# homeIdentifiers=

caldavPersonal:usedCalendars=abfallkalender

Is this binding still up to date or are there alternatives?

If you want to get this working, you need to check the logs.

Yes, it’s up to date, and no there are no alternatives that do everything this does.
However, the icalendar binding does provide some calendar functionality.

1 Like

CalDAV gave me fits…the documentation is all over the place.

Take a look here at one of my previous posts where I outlined everything I did. Hopeful it wii provide some insight.

Squid :octopus:

1 Like

How can I activate logging?
In Logviewer I see no entry.

I think I found the problem.
My calender has multiple entries starting at the same time (06:00).
I guess the binding has trouble to choose one of the entries. When I let the entries start at different times everything is ok!