CalDAV Binding - Items are not updated

Tags: #<Tag:0x00007f5c93c1daa8> #<Tag:0x00007f5c93c1d940>

Hello dear community!

I’ve been using the CalDAV binding (command + personal) for a few days.
Unfortunately I have the problem that my items are not updated automatically as soon as I change something in my Google Calendar.
Only when I change something in the items file (no matter what) and then save it again, the items are updated.
Does anyone have any idea what the problem might be?

I use openHAB 2 (2.5)

Here my caldavio.cfg

caldavio:arbeitszeiten:url=https://www.google.com/calendar/dav/xxx@group.calendar.google.com/events
caldavio:arbeitszeiten:username=xxx.xxx
caldavio:arbeitszeiten:password=xxx
caldavio:arbeitszeiten:reloadInterval=1
caldavio:arbeitszeiten:preloadTime=20000
caldavio:arbeitszeiten:disableCertificateVerification=true
caldavio:arbeitszeiten:charset=utf8
caldavio:arbeitszeiten:timeZone=Europe/Vienna

Here my caldavPersonal.cfg

caldavPersonal:usedCalenders=arbeitszeiten

My Items

String st_Dienst "Dienst [%s]" <text>  {caldavPersonal="calendar:arbeitszeiten type:EVENT eventNr:1 value:NAME"}
DateTime dt_Date "Datum [%1$td.%1$tm.%1$tY]" <calendar>  {caldavPersonal="calendar:arbeitszeiten type:EVENT eventNr:1 value:START"}
DateTime dt_Start "Startzeit [%1$tH:%1$tM]" <time>  {caldavPersonal="calendar:arbeitszeiten type:EVENT eventNr:1 value:START"}
DateTime dt_Stop "Endzeit [%1$tH:%1$tM]" <time>  {caldavPersonal="calendar:arbeitszeiten type:EVENT eventNr:1 value:END"}

String st_Dienst1 "Dienst 1 [%s]" <text>  {caldavPersonal="calendar:arbeitszeiten type:EVENT eventNr:2 value:NAME"}
DateTime dt_Date1 "Datum 1 [%1$td.%1$tm.%1$tY]" <calendar>  {caldavPersonal="calendar:arbeitszeiten type:EVENT eventNr:2 value:START"}
DateTime dt_Start1 "Startzeit 1 [%1$tH:%1$tM]" <time>  {caldavPersonal="calendar:arbeitszeiten type:EVENT eventNr:2 value:START"}
DateTime dt_Stop1 "Endzeit 1 [%1$tH:%1$tM]" <time>  {caldavPersonal="calendar:arbeitszeiten type:EVENT eventNr:2 value:END"}

String st_Dienst2 "Dienst 2 [%s]" <text>  {caldavPersonal="calendar:arbeitszeiten type:EVENT eventNr:3 value:NAME"}
DateTime dt_Date2 "Datum 2 [%1$td.%1$tm.%1$tY]" <calendar>  {caldavPersonal="calendar:arbeitszeiten type:EVENT eventNr:3 value:START"}
DateTime dt_Start2 "Startzeit 2 [%1$tH:%1$tM]" <time>  {caldavPersonal="calendar:arbeitszeiten type:EVENT eventNr:3 value:START"}
DateTime dt_Stop2 "Endzeit 2 [%1$tH:%1$tM]" <time>  {caldavPersonal="calendar:arbeitszeiten type:EVENT eventNr:3 value:END"}

here is an excerpt from the log file (generated every reload cycle)

2020-03-26 11:26:16.924 [DEBUG] [core.karaf.internal.FeatureInstaller] - Running scheduled sync job
2020-03-26 11:26:19.139 [DEBUG] [caldav.internal.job.EventReloaderJob] - running EventReloaderJob for config : arbeitszeiten
2020-03-26 11:26:19.151 [DEBUG] [caldav.internal.job.EventReloaderJob] - loading events for config: arbeitszeiten
2020-03-26 11:26:19.164 [DEBUG] [caldav.internal.job.EventReloaderJob] - old eventcontainer -- id : 4j3upa27ormsofgj3luu746pt0@google.com -- filename : 4j3upa27ormsofgj3luu746pt0_google_com -- calcuntil : 2020-04-09T09:45:20.837+01:00 -- lastchanged : 2020-03-26T11:25:20.322Z -- ishistoric : false
2020-03-26 11:26:19.177 [DEBUG] [caldav.internal.job.EventReloaderJob] - old eventlist contains the event : Tagdienst -- deb : 2020-03-26T21:00:00.000+01:00 -- fin : 2020-03-26T22:00:00.000+01:00 -- lastchanged 2020-03-26T10:52:09.000Z
2020-03-26 11:26:19.190 [DEBUG] [caldav.internal.job.EventReloaderJob] - old eventcontainer -- id : 04kc4kpcl6rfjt8h0q9lhpdbpq@google.com -- filename : 04kc4kpcl6rfjt8h0q9lhpdbpq_google_com -- calcuntil : 2020-04-09T09:45:21.509+01:00 -- lastchanged : 2020-03-26T11:25:20.998Z -- ishistoric : false
2020-03-26 11:26:19.202 [DEBUG] [caldav.internal.job.EventReloaderJob] - old eventlist contains the event : nocheintermin -- deb : 2020-03-26T19:00:00.000+01:00 -- fin : 2020-03-26T20:00:00.000+01:00 -- lastchanged 2020-03-26T10:42:10.000Z
2020-03-26 11:26:19.215 [DEBUG] [caldav.internal.job.EventReloaderJob] - old eventcontainer -- id : 01nd0r2bpeunui19am82fdc9oc@google.com -- filename : 01nd0r2bpeunui19am82fdc9oc_google_com -- calcuntil : 2020-04-09T09:45:22.140+01:00 -- lastchanged : 2020-03-26T11:25:21.622Z -- ishistoric : false
2020-03-26 11:26:19.228 [DEBUG] [caldav.internal.job.EventReloaderJob] - old eventlist contains the event : undnocheiner -- deb : 2020-03-26T20:00:00.000+01:00 -- fin : 2020-03-26T21:00:00.000+01:00 -- lastchanged 2020-03-26T10:42:12.000Z
2020-03-26 11:26:20.159 [DEBUG] [caldav.internal.job.EventReloaderJob] - loading resource: /calendar/dav/fsc7n1f5blbhqk1d66t6eb1hb8@group.calendar.google.com/events/4j3upa27ormsofgj3luu746pt0@google.com.ics (FSchangedTS not valid)
2020-03-26 11:26:20.643 [DEBUG] [caldav.internal.job.EventReloaderJob] - Processing event 'Tagdienst'
2020-03-26 11:26:20.672 [DEBUG] [caldav.internal.job.EventReloaderJob] - Processing periods...
2020-03-26 11:26:20.688 [DEBUG] [.io.caldav.internal.CalDavLoaderImpl] - event is already in event map and newer -> delete the old one, reschedule timer
2020-03-26 11:26:20.706 [DEBUG] [.io.caldav.internal.CalDavLoaderImpl] - begin timer scheduled for event '4j3upa27ormsofgj3luu746pt0@google.com(Tagdienst@26.03.2020/21:00-26.03.2020/22:00)' @ Thu Mar 26 20:00:00 GMT 2020
2020-03-26 11:26:20.724 [DEBUG] [.io.caldav.internal.CalDavLoaderImpl] - end timer scheduled for event '4j3upa27ormsofgj3luu746pt0@google.com(Tagdienst@26.03.2020/21:00-26.03.2020/22:00)' @ Thu Mar 26 21:00:00 GMT 2020
2020-03-26 11:26:20.757 [DEBUG] [caldav.internal.job.EventReloaderJob] - loading resource: /calendar/dav/fsc7n1f5blbhqk1d66t6eb1hb8@group.calendar.google.com/events/04kc4kpcl6rfjt8h0q9lhpdbpq@google.com.ics (FSchangedTS not valid)
2020-03-26 11:26:21.237 [DEBUG] [caldav.internal.job.EventReloaderJob] - Processing event 'nocheintermin'
2020-03-26 11:26:21.258 [DEBUG] [caldav.internal.job.EventReloaderJob] - Processing periods...
2020-03-26 11:26:21.271 [DEBUG] [.io.caldav.internal.CalDavLoaderImpl] - event is already in event map and newer -> delete the old one, reschedule timer
2020-03-26 11:26:21.289 [DEBUG] [.io.caldav.internal.CalDavLoaderImpl] - begin timer scheduled for event '04kc4kpcl6rfjt8h0q9lhpdbpq@google.com(nocheintermin@26.03.2020/19:00-26.03.2020/20:00)' @ Thu Mar 26 18:00:00 GMT 2020
2020-03-26 11:26:21.306 [DEBUG] [.io.caldav.internal.CalDavLoaderImpl] - end timer scheduled for event '04kc4kpcl6rfjt8h0q9lhpdbpq@google.com(nocheintermin@26.03.2020/19:00-26.03.2020/20:00)' @ Thu Mar 26 19:00:00 GMT 2020
2020-03-26 11:26:21.340 [DEBUG] [caldav.internal.job.EventReloaderJob] - loading resource: /calendar/dav/fsc7n1f5blbhqk1d66t6eb1hb8@group.calendar.google.com/events/01nd0r2bpeunui19am82fdc9oc@google.com.ics (FSchangedTS not valid)
2020-03-26 11:26:21.842 [DEBUG] [caldav.internal.job.EventReloaderJob] - Processing event 'undnocheiner'
2020-03-26 11:26:21.868 [DEBUG] [caldav.internal.job.EventReloaderJob] - Processing periods...
2020-03-26 11:26:21.892 [DEBUG] [.io.caldav.internal.CalDavLoaderImpl] - event is already in event map and newer -> delete the old one, reschedule timer
2020-03-26 11:26:21.909 [DEBUG] [.io.caldav.internal.CalDavLoaderImpl] - begin timer scheduled for event '01nd0r2bpeunui19am82fdc9oc@google.com(undnocheiner@26.03.2020/20:00-26.03.2020/21:00)' @ Thu Mar 26 19:00:00 GMT 2020
2020-03-26 11:26:21.926 [DEBUG] [.io.caldav.internal.CalDavLoaderImpl] - end timer scheduled for event '01nd0r2bpeunui19am82fdc9oc@google.com(undnocheiner@26.03.2020/20:00-26.03.2020/21:00)' @ Thu Mar 26 20:00:00 GMT 2020
2020-03-26 11:26:21.957 [DEBUG] [caldav.internal.job.EventReloaderJob] - jobs scheduled : 
2020-03-26 11:26:21.970 [DEBUG] [caldav.internal.job.EventReloaderJob] - [job] : event-end-04kc4kpcl6rfjt8h0q9lhpdbpq@google.com(nocheintermin@26.03.2020/19:00-26.03.2020/20:00)-0 - [groupName] : event-end - Thu Mar 26 19:00:00 GMT 2020
2020-03-26 11:26:21.982 [DEBUG] [caldav.internal.job.EventReloaderJob] - [job] : event-end-01nd0r2bpeunui19am82fdc9oc@google.com(undnocheiner@26.03.2020/20:00-26.03.2020/21:00)-0 - [groupName] : event-end - Thu Mar 26 20:00:00 GMT 2020
2020-03-26 11:26:21.994 [DEBUG] [caldav.internal.job.EventReloaderJob] - [job] : event-end-4j3upa27ormsofgj3luu746pt0@google.com(Tagdienst@26.03.2020/18:00-26.03.2020/19:00)-0 - [groupName] : event-end - Thu Mar 26 18:00:00 GMT 2020
2020-03-26 11:26:22.009 [DEBUG] [caldav.internal.job.EventReloaderJob] - [job] : event-end-01nd0r2bpeunui19am82fdc9oc@google.com(undnocheiner@28.03.2020/20:00-28.03.2020/21:00)-0 - [groupName] : event-end - Sat Mar 28 20:00:00 GMT 2020
2020-03-26 11:26:22.022 [DEBUG] [caldav.internal.job.EventReloaderJob] - [job] : event-end-4j3upa27ormsofgj3luu746pt0@google.com(Tagdienst@26.03.2020/21:00-26.03.2020/22:00)-0 - [groupName] : event-end - Thu Mar 26 21:00:00 GMT 2020
2020-03-26 11:26:22.033 [DEBUG] [caldav.internal.job.EventReloaderJob] - [job] : event-end-04kc4kpcl6rfjt8h0q9lhpdbpq@google.com(nocheintermin@27.03.2020/19:00-27.03.2020/20:00)-0 - [groupName] : event-end - Fri Mar 27 19:00:00 GMT 2020
2020-03-26 11:26:22.046 [DEBUG] [caldav.internal.job.EventReloaderJob] - [job] : arbeitszeiten - [groupName] : event-reloader - Thu Mar 26 11:27:19 GMT 2020
2020-03-26 11:26:22.058 [DEBUG] [caldav.internal.job.EventReloaderJob] - [job] : event-start-04kc4kpcl6rfjt8h0q9lhpdbpq@google.com(nocheintermin@27.03.2020/19:00-27.03.2020/20:00)-0 - [groupName] : event-start - Fri Mar 27 18:00:00 GMT 2020
2020-03-26 11:26:22.070 [DEBUG] [caldav.internal.job.EventReloaderJob] - [job] : event-start-4j3upa27ormsofgj3luu746pt0@google.com(Tagdienst@26.03.2020/18:00-26.03.2020/19:00)-0 - [groupName] : event-start - Thu Mar 26 17:00:00 GMT 2020
2020-03-26 11:26:22.081 [DEBUG] [caldav.internal.job.EventReloaderJob] - [job] : event-start-01nd0r2bpeunui19am82fdc9oc@google.com(undnocheiner@28.03.2020/20:00-28.03.2020/21:00)-0 - [groupName] : event-start - Sat Mar 28 19:00:00 GMT 2020
2020-03-26 11:26:22.094 [DEBUG] [caldav.internal.job.EventReloaderJob] - [job] : event-start-01nd0r2bpeunui19am82fdc9oc@google.com(undnocheiner@26.03.2020/20:00-26.03.2020/21:00)-0 - [groupName] : event-start - Thu Mar 26 19:00:00 GMT 2020
2020-03-26 11:26:22.105 [DEBUG] [caldav.internal.job.EventReloaderJob] - [job] : event-start-4j3upa27ormsofgj3luu746pt0@google.com(Tagdienst@26.03.2020/21:00-26.03.2020/22:00)-0 - [groupName] : event-start - Thu Mar 26 20:00:00 GMT 2020
2020-03-26 11:26:22.118 [DEBUG] [caldav.internal.job.EventReloaderJob] - [job] : event-start-04kc4kpcl6rfjt8h0q9lhpdbpq@google.com(nocheintermin@26.03.2020/19:00-26.03.2020/20:00)-0 - [groupName] : event-start - Thu Mar 26 18:00:00 GMT 2020

This is never done, that’s why it doesn’t happen. Items are only updated on the reloadInterval.
But your log excerpt shows that events are being loaded.