CalDAV Binding - UNDEF Items

Tags: #<Tag:0x00007f617007dc98>

Hello,

today I tried to set up the CalDav Personal binding. After some troubles, the .ics files are finally located under /var/lib/openhab2/etc/caldav/.

The items CalPrivatName0 and CalPrivatDate0 are set from NULL to UNDEF.


Version

  • openHAB 2.5.6 Release Build
  • CalDAV Binding (personal) 1.14.0
  • CalDAV Bindung (command) 1.14.0

Config

caldavio.cfg

caldavio:privat:url=https://xxx.com (nextcloud instance)
caldavio:privat:username=user
caldavio:privat:password=***
caldavio:privat:reloadInterval=60
caldavio:privat:preloadTime=1440
caldavio:privat:disableCertificateVerification=true
caldavio:timeZone=Europe/Berlin

caldav.items

String CalPrivatName0 "Termin [%s]" <calendar> { caldavPersonal="calendar:'privat' type:'EVENT' eventNr:'1' value:'NAME'" }
DateTime CalPrivatDate0 "Termin am [%1$tT, %1$td.%1$tm.%1$tY]" <calendar> { caldavPersonal="calendar:'privat' type:'EVENT' eventNr:'1' value:'START'" }

caldavPersonal.cfg

caldavPersonal:usedCalendars=caldavio:privat

caldavCommand.cfg

caldavCommand:readCalendars=caldavio:privat


Logs

==> /var/log/openhab2/openhab.log <==

2020-06-29 01:19:14.288 [INFO ] [el.core.internal.ModelRepositoryImpl] - Refreshing model 'caldav.items'

2020-06-29 01:19:14.298 [TRACE] [l.internal.CalDavBindingProviderImpl] - handling config: calendar:'privat' type:'EVENT' eventNr:'1' value:'NAME'

2020-06-29 01:19:14.300 [TRACE] [l.internal.CalDavBindingProviderImpl] - found values: calendar=[privat], type=EVENT, eventNr=1, value=NAME, filterName=null, filterCategory=[]

2020-06-29 01:19:14.302 [DEBUG] [l.internal.CalDavBindingProviderImpl] - adding item: CalPrivatName0

2020-06-29 01:19:14.304 [TRACE] [.io.caldav.internal.CalDavLoaderImpl] - Querying events for filter: CalDavQuery [calendarIds=[privat], from=2020-06-29T01:19:14.303+02:00, to=null, sort=ASCENDING, filterName=null]

2020-06-29 01:19:14.306 [DEBUG] [.io.caldav.internal.CalDavLoaderImpl] - return event list for CalDavQuery [calendarIds=[privat], from=2020-06-29T01:19:14.303+02:00, to=null, sort=ASCENDING, filterName=null] with 0 entries

2020-06-29 01:19:14.308 [DEBUG] [ldav_personal.internal.CalDavBinding] - no event found for CalPrivatName0, setting to UNDEF

2020-06-29 01:19:14.312 [TRACE] [l.internal.CalDavBindingProviderImpl] - handling config: calendar:'privat' type:'EVENT' eventNr:'1' value:'START'

2020-06-29 01:19:14.314 [TRACE] [l.internal.CalDavBindingProviderImpl] - found values: calendar=[privat], type=EVENT, eventNr=1, value=START, filterName=null, filterCategory=[]

2020-06-29 01:19:14.317 [DEBUG] [l.internal.CalDavBindingProviderImpl] - adding item: CalPrivatDate0

2020-06-29 01:19:14.319 [TRACE] [.io.caldav.internal.CalDavLoaderImpl] - Querying events for filter: CalDavQuery [calendarIds=[privat], from=2020-06-29T01:19:14.318+02:00, to=null, sort=ASCENDING, filterName=null]

2020-06-29 01:19:14.322 [DEBUG] [.io.caldav.internal.CalDavLoaderImpl] - return event list for CalDavQuery [calendarIds=[privat], from=2020-06-29T01:19:14.318+02:00, to=null, sort=ASCENDING, filterName=null] with 0 entries

2020-06-29 01:19:14.323 [DEBUG] [ldav_personal.internal.CalDavBinding] - no event found for CalPrivatDate0, setting to UNDEF

2020-06-29 01:28:05.707 [TRACE] [caldav.internal.job.EventReloaderJob] - skipping resource 29ACDDC3-59F6-4D68-BFA4-842E0A10A0F7.ics; not changed. calculated until: 2020-06-30T01:27:56.696+02:00

2020-06-29 01:28:05.709 [TRACE] [caldav.internal.job.EventReloaderJob] - eventContainer found: false

2020-06-29 01:28:05.711 [TRACE] [caldav.internal.job.EventReloaderJob] - last resource modification: 2019-03-07T20:20:02.000+01:00

2020-06-29 01:28:05.713 [TRACE] [caldav.internal.job.EventReloaderJob] - last change of already loaded event: null

2020-06-29 01:28:05.716 [DEBUG] [caldav.internal.job.EventReloaderJob] - loading resource: /remote.php/dav/calendars/gino/personal/2C001971-E6AC-4B33-B90B-78F40EF6E69E.ics (FSchangedTS not valid)

2020-06-29 01:28:05.718 [TRACE] [caldav.internal.job.EventReloaderJob] - Raw URL: https://xxx.com/remote.php/dav/calendars/user/personal/

2020-06-29 01:28:05.721 [TRACE] [caldav.internal.job.EventReloaderJob] - URL after encoding: https://xxx.com/remote.php/dav/calendars/user/personal/2C001971-E6AC-4B33-B90B-78F40EF6E69E.ics

Why are the items set to UNDEF and how can I fix it?

This is incorrect. The value should be just privat, not caldavio:privat.

Does that mean this issue got fixed?

Edit, sorry, did not read correctly :slight_smile:

Oh wow, I changed from caldavio:privat to privat. Restart of openhab2 and it works for me.
After reading the note, I noticed the file names caldavCommand.cfg and caldavCommandPersonal.cfg.

Thank you!

Mhh, only the events in the next 2 days will be displayed.

As you can see, the query is set to: from=[now], to=null

2020-06-29 21:44:00.325 [TRACE] [.io.caldav.internal.CalDavLoaderImpl] - Querying events for filter: CalDavQuery [calendarIds=[privat, arbeit], from=2020-06-29T21:44:00.325+02:00, to=null, sort=ASCENDING, filterName=null]

2020-06-29 21:44:00.327 [DEBUG] [.io.caldav.internal.CalDavLoaderImpl] - return event list for CalDavQuery [calendarIds=[privat, arbeit], from=2020-06-29T21:44:00.325+02:00, to=null, sort=ASCENDING, filterName=null] with 0 entries

(Meanwhile I added a new calendar)

I expected the events for the next few days will be displayed.