CalDav no Events Found

caldavbinding
Tags: #<Tag:0x00007f15e03f6810>

(Andrew Pawelski) #21

Heres a typical section of the log can anyone help?

listeners for events: 0
17-Jan-2018 22:51:45.279 [TRACE] [rg.openhab.io.caldav.internal.job.EventReloaderJob] - eventContainer found: false
17-Jan-2018 22:51:45.281 [TRACE] [rg.openhab.io.caldav.internal.job.EventReloaderJob] - last resource modification: 2018-01-13T10:29:33.000+10:30
17-Jan-2018 22:51:45.282 [TRACE] [rg.openhab.io.caldav.internal.job.EventReloaderJob] - last change of already loaded event: null
17-Jan-2018 22:51:45.284 [DEBUG] [rg.openhab.io.caldav.internal.job.EventReloaderJob] - loading resource: /1317893642/calendars/086e6106-1a0b-4301-a99d-5c5eddcc5079/4993B704-4732-43F6-806A-27AA9716D846.ics (FSchangedTS not valid)
17-Jan-2018 22:51:45.285 [TRACE] [rg.openhab.io.caldav.internal.job.EventReloaderJob] - Raw URL: https://p42-caldav.icloud.com:443/1317873642/calendars/086e6106-8a0b-4301-a99d-5c5ebbcc5079/
17-Jan-2018 22:51:45.287 [TRACE] [rg.openhab.io.caldav.internal.job.EventReloaderJob] - URL after encoding: https://p42-caldav.icloud.com:443/1397873642/calendars/086e6106-1a0b-4301-a99d-5c5ebbbb5079/4993B704-4742-43F6-806A-27BA9716D846.ics
17-Jan-2018 22:51:45.592 [TRACE] [rg.openhab.io.caldav.internal.job.EventReloaderJob] - loadFrom = 2018-01-16T13:31:45.591+10:30
17-Jan-2018 22:51:45.593 [TRACE] [rg.openhab.io.caldav.internal.job.EventReloaderJob] - loadTo = 2018-01-19T08:11:45.593+10:30
17-Jan-2018 22:51:45.594 [TRACE] [rg.openhab.io.caldav.internal.job.EventReloaderJob] - loading event: 4993B704-4742-43F6-806A-27AA9716D846:Hamish Scholarship Test
17-Jan-2018 22:51:45.596 [TRACE] [rg.openhab.io.caldav.internal.job.EventReloaderJob] - overriding lastmodified from file FS (2018-01-13T10:29:33.000+10:30) with event's last-modified property (2018-01-13T10:29:32.000+10:30)
17-Jan-2018 22:51:45.597 [DEBUG] [rg.openhab.io.caldav.internal.job.EventReloaderJob] - Processing event 'Hamish Scholarship Test'
17-Jan-2018 22:51:45.598 [DEBUG] [rg.openhab.io.caldav.internal.job.EventReloaderJob] - No periods exist for event 'Hamish Scholarship Test'

(Andrew Pawelski) #22

started magically working again perhaps I had a dodgy cel event that finally went outside the loading window


(Fabian Hoppe) #23

Dear All,

I would like to pick up this discussion threads as I ran into the same problem - but unfortunately it didn’t magically disappeared as for Andrew. I tried to search/google for tricks and solutions for this problem but got stuck.

Im using OH 2.1 on a QNAP TS 251 device with the caldavio binding provided alone (no recent snapshot from github). I followed the tutorials to derive the correct URL for the calender - which worked fine. The log files confirm the confirm being valid. But still, the binding reports an “event list for CalDavQuery […] with 0 entries”.

My setup (showing the the active config files below userdata):

[/share/openHAB/userdata/config/org/openhab] # cat caldavio.config
familie:disableCertificateVerification="false"
familie:password="XXXX-XXXX-XXXX-XXXX"
familie:preloadTime="14400"
familie:reloadInterval="6"
familie:url="https://p09-caldav.icloud.com:443/1353632932/calendars/aee9a7ea-4433-4dd5-a8ce-6dfbfc1a57c9/"
familie:username="XXXXX.XXXXX@XXXXXX.de"
service.pid="org.openhab.caldavio"
timeZone="Europe/Berlin"
[/share/openHAB/userdata/config/org/openhab] # cat caldavPersonal.config
service.pid="org.openhab.caldavPersonal"
usedCalendars="familie"

openhab reports the config to be valid:

2018-02-13 21:53:34.461 [DEBUG] [.io.caldav.internal.CalDavLoaderImpl] - Update was called for CalDAV IO.
2018-02-13 21:53:34.462 [TRACE] [.io.caldav.internal.CalDavLoaderImpl] - processing configuration parameter: familie:disableCertificateVerification
2018-02-13 21:53:34.462 [TRACE] [.io.caldav.internal.CalDavLoaderImpl] - processing configuration parameter: familie:password
2018-02-13 21:53:34.462 [TRACE] [.io.caldav.internal.CalDavLoaderImpl] - processing configuration parameter: familie:preloadTime
2018-02-13 21:53:34.462 [TRACE] [.io.caldav.internal.CalDavLoaderImpl] - processing configuration parameter: familie:reloadInterval
2018-02-13 21:53:34.462 [TRACE] [.io.caldav.internal.CalDavLoaderImpl] - processing configuration parameter: familie:url
2018-02-13 21:53:34.463 [TRACE] [.io.caldav.internal.CalDavLoaderImpl] - processing configuration parameter: familie:username
2018-02-13 21:53:34.463 [TRACE] [.io.caldav.internal.CalDavLoaderImpl] - processing configuration parameter: timeZone
2018-02-13 21:53:34.463 [DEBUG] [.io.caldav.internal.CalDavLoaderImpl] - Overriding default timezone Europe/Berlin with Europe/Berlin
2018-02-13 21:53:34.463 [TRACE] [.io.caldav.internal.CalDavLoaderImpl] - config for calendar 'familie': CalDavConfig [key=familie, username=XXXX.XXXX@XXXXX.de, password=XXXXXXXXXXXXX, url=https://p09-caldav.icloud.com:443/1353632932/calendars/aee9a7ea-4433-4dd5-a8ce-6dfbfc1a57c9/, reloadMinutes=6, preloadMinutes=14400, disableCertificateVerification=false, lastModifiedFileTimeStampValid=true]
2018-02-13 21:53:34.464 [INFO ] [.io.caldav.internal.CalDavLoaderImpl] - CalDAV IO is properly configured.

But any reload results in 0 calender entries being retrieved:

2018-02-13 21:57:36.908 [DEBUG] [caldav.internal.job.EventReloaderJob] - running EventReloaderJob for config : familie
2018-02-13 21:57:36.908 [DEBUG] [caldav.internal.job.EventReloaderJob] - loading events for config: familie
2018-02-13 21:57:36.908 [TRACE] [org.openhab.io.caldav.internal.Util ] - connecting to caldav 'familie' (url=https://p09-caldav.icloud.com:443/1353632932/calendars/aee9a7ea-4433-4dd5-a8ce-6dfbfc1a57c9/, username=XXXX.XXXX@XXXXX.de, password=XXXXXXXXXXXXXXXXXXX)
2018-02-13 21:57:37.212 [TRACE] [caldav.internal.job.EventReloaderJob] - before load events : oldeventids contains : []
2018-02-13 21:57:37.213 [TRACE] [caldav.internal.job.EventReloaderJob] - after load events : oldeventids contains : []
2018-02-13 21:57:37.213 [DEBUG] [ldav_personal.internal.CalDavBinding] - calendar reloaded: familie
2018-02-13 21:57:37.213 [TRACE] [.io.caldav.internal.CalDavLoaderImpl] - Querying events for filter: CalDavQuery [calendarIds=[familie], from=2018-02-13T21:57:37.213+01:00, to=null, sort=ASCENDING, filterName=null]
2018-02-13 21:57:37.214 [DEBUG] [.io.caldav.internal.CalDavLoaderImpl] - return event list for CalDavQuery [calendarIds=[familie], from=2018-02-13T21:57:37.213+01:00, to=null, sort=ASCENDING, filterName=null] with 0 entries
2018-02-13 21:57:37.214 [DEBUG] [ldav_personal.internal.CalDavBinding] - no event found for OfficeCalName0, setting to UNDEF
2018-02-13 21:57:37.214 [DEBUG] [ldav_personal.internal.CalDavBinding] - no event found for OfficeCalName2, setting to UNDEF
2018-02-13 21:57:37.214 [DEBUG] [ldav_personal.internal.CalDavBinding] - no event found for OfficeCalName1, setting to UNDEF
2018-02-13 21:57:37.215 [DEBUG] [ldav_personal.internal.CalDavBinding] - no event found for OfficeCalTime0, setting to UNDEF
2018-02-13 21:57:37.215 [DEBUG] [ldav_personal.internal.CalDavBinding] - no event found for OfficeCalTime2, setting to UNDEF
2018-02-13 21:57:37.215 [DEBUG] [ldav_personal.internal.CalDavBinding] - no event found for OfficeCalTime1, setting to UNDEF
2018-02-13 21:57:37.216 [DEBUG] [caldav.internal.job.EventReloaderJob] - jobs scheduled :
2018-02-13 21:57:37.216 [DEBUG] [caldav.internal.job.EventReloaderJob] - [job] : familie - [groupName] : event-reloader - Tue Feb 13 22:03:36 CET 2018

What would be the next steps for debugging this issue? I tried to simulated a calender entry retrieval with curl but failed by not knowing the right XML syntax. Any ideas?


(SiHui) #24

Sorry, wrong solution, disregard, I did not get you are using the personal calender …


(Jan) #25

Hi all,
looks like I’m having similar issues with caldav… :frowning:
Installed is caldavPersonal, I have the caldavio: prefix used in the config files, the connection to my owncloud calendar works as I can tell from the files in

/var/lib/openhab2/etc/caldav

and the logs

2018-02-22 19:20:09.722 [DEBUG] [caldav.internal.job.EventReloaderJob] - Processing event 'Biomüll'
2018-02-22 19:20:09.733 [DEBUG] [caldav.internal.job.EventReloaderJob] - No periods exist for event 'Biomüll'
2018-02-22 19:20:09.734 [DEBUG] [.io.caldav.internal.CalDavLoaderImpl] - event is already in map and not updated, we NEED to update eventlist and schedule new events jobs
2018-02-22 19:20:09.747 [DEBUG] [caldav.internal.job.EventReloaderJob] - Processing event 'Restmüll'
2018-02-22 19:20:09.748 [DEBUG] [caldav.internal.job.EventReloaderJob] - No periods exist for event 'Restmüll'
2018-02-22 19:20:09.749 [DEBUG] [.io.caldav.internal.CalDavLoaderImpl] - event is already in map and not updated, we NEED to update eventlist and schedule new events jobs

However, my items remain NULL…

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

caldavio.cfg

caldavio:muellkalender:url=XXX
caldavio:muellkalender:username=XXX
caldavio:muellkalender:password=XXX
caldavio:muellkalender:reloadInterval=60
caldavio:muellkalender:preloadTime=10
caldavio:muellkalender:disableCertificateVerification=false

caldavio:timeZone=Europe/Berlin

caldavPersonal.cfg

caldavPersonal:usedCalendars=caldavio:muellkalender

When the items are processed, this is all I get:

2018-02-22 19:54:04.796 [INFO ] [el.core.internal.ModelRepositoryImpl] - Refreshing model 'caldav.items'
2018-02-22 19:54:04.824 [DEBUG] [.io.caldav.internal.CalDavLoaderImpl] - return event list for CalDavQuery [calendarIds=[muellkalender], from=2018-02-22T19:54:04.823+01:00, to=null, sort=ASCENDING, filterName=null] with 0 entries
2018-02-22 19:54:04.832 [DEBUG] [.io.caldav.internal.CalDavLoaderImpl] - return event list for CalDavQuery [calendarIds=[muellkalender], from=2018-02-22T19:54:04.832+01:00, to=null, sort=ASCENDING, filterName=null] with 0 entries

And yes, there are entries in the calendar for the next days (full day events).
Any hint or help is appreciated at this point…


(Marco Gaertner) #26

Hi guys, seems I have the same issue as Jan and Fabian further above. I’m running Openhab2 on a Raspberry Pi3 with version 2.2.0-1. I installed CalDAV (personal) and CalDAV (command) binding through Paper UI and got it running.
I want to load events from three different google calendars. Interestingly 1 calendar works for me but the other two show no events although calendar entries get downloaded into their appropriate file locations: /var/lib/openhab2/etc/caldav/…
My setup here (Muellkalender works while Wkkalender does not):
caldavio.cfg

#Muellkalender
caldavio:Muellkalender:url=https://www.google.com/calendar/dav/calendar-ID@group.calendar.google.com/events
caldavio:Muellkalender:username=user
caldavio:Muellkalender:password=ps
caldavio:Muellkalender:reloadInterval=2
caldavio:Muellkalender:preloadTime=2
caldavio:Muellkalender:disableCertificateVerification=true

#Weihkueppel
caldavio:Wkkalender:url=https://www.google.com/calendar/dav/calendar-ID@group.calendar.google.com/events
caldavio:Wkkalender:username=user
caldavio:Wkkalender:password=PS
caldavio:Wkkalender:reloadInterval=2
caldavio:Wkkalender:preloadTime=2
caldavio:Wkkalender:disableCertificateVerification=true

caldavPersonal.cfg

caldavPersonal:usedCalendars=Muellkalender,Wkkalender,Familie

Items look like:

/*Kalender*/
Group gMuellcal
String 		sCalDav_Muelltonne1		"Müllart [%s]"								<trash>			(gMuellcal){caldavPersonal="calendar:Muellkalender type:EVENT eventNr:1 value:NAME"} //eventNr for concurrent events
DateTime 	dtCalDav_Muell_Date1	"Datum der Abholung [%1$td.%1$tm.%1$tY]"	<calendar>		(gMuellcal){caldavPersonal="calendar:Muellkalender type:EVENT eventNr:1 value:START"} //eventNr for concurrent events
String 		sCalDav_Muelltonne2		"Müllart [%s]"								<trash>			(gMuellcal){caldavPersonal="calendar:Muellkalender type:EVENT eventNr:2 value:NAME"}
DateTime 	dtCalDav_Muell_Date2	"Datum der Abholung [%1$td.%1$tm.%1$tY]"	<calendar>		(gMuellcal){caldavPersonal="calendar:Muellkalender type:EVENT eventNr:2 value:START"}
String 		sCalDav_Muelltonne3		"Müllart [%s]"								<trash>			(gMuellcal){caldavPersonal="calendar:Muellkalender type:EVENT eventNr:3 value:NAME"}
DateTime 	dtCalDav_Muell_Date3	"Datum der Abholung [%1$td.%1$tm.%1$tY]"	<calendar>		(gMuellcal){caldavPersonal="calendar:Muellkalender type:EVENT eventNr:3 value:START"}

Group gWeihkueppelcal
String 		sCalDav_nextWK_Event1		"nächste Vermietung [%s]"					<rent>		(gWeihkueppelcal){ caldavPersonal="calendar:Wkkalender type:EVENT eventNr:1 value:NAME" } 
DateTime 	dtCalDav_nextWK_Event_Date1	"Datum der Vermietung [%1$td.%1$tm.%1$tY]"	<calendar>	(gWeihkueppelcal){ caldavPersonal="calendar:Wkkalender type:EVENT eventNr:1 value:START" }
String 		sCalDav_nextWK_Event2		"nächste Vermietung [%s]"					<rent>		(gWeihkueppelcal){ caldavPersonal="calendar:Wkkalender type:EVENT eventNr:2 value:NAME" }
DateTime 	dtCalDav_nextWK_Event_Date2	"Datum der Vermietung [%1$td.%1$tm.%1$tY]"	<calendar>	(gWeihkueppelcal){ caldavPersonal="calendar:Wkkalender type:EVENT eventNr:2 value:START" }

Group gFamilycal
String 		sCalDav_nextFam_Event1			"Termin [%s]"						<family>	(gFamilycal){caldavPersonal="calendar:Familie type:EVENT eventNr:1 value:NAME"} 
DateTime 	dtCalDav_nextFam_Event_Date1	"Datum [%1$td.%1$tm.%1$tY]"			<calendar>	(gFamilycal){caldavPersonal="calendar:Familie type:EVENT eventNr:1 value:START"}
String 		sCalDav_nextFam_Event2			"Termin [%s]"						<family>	(gFamilycal){caldavPersonal="calendar:Familie type:EVENT eventNr:2 value:NAME"}
DateTime 	dtCalDav_nextFam_Event_Date2	"Datum [%1$td.%1$tm.%1$tY]"			<calendar>	(gFamilycal){caldavPersonal="calendar:Familie type:EVENT eventNr:2 value:START"}
String 		sCalDav_nextFam_Event3			"Termin [%s]"						<family>	(gFamilycal){caldavPersonal="calendar:Familie type:EVENT eventNr:3 value:NAME"}
DateTime 	dtCalDav_nextFam_Event_Date3	"Datum [%1$td.%1$tm.%1$tY]"			<calendar>	(gFamilycal){caldavPersonal="calendar:Familie type:EVENT eventNr:3 value:START"}

And Sitemap:

Frame label="Kalender" 
	{
		Group item=gMuellcal 		label="Müllkalender"			icon="trash"
		Group item=gWeihkueppelcal	label="Weihküppel Vermietungen"	icon="rent"
		Group item=gFamilycal		label="Familientermine"			icon="family"
	}

openhab2 reports the config to be valid:

28-Feb-2018 11:13:01.719 [TRACE] [org.openhab.io.caldav.internal.CalDavLoaderImpl   ] - processing configuration parameter: Wkkalender:username
28-Feb-2018 11:13:01.719 [TRACE] [org.openhab.io.caldav.internal.CalDavLoaderImpl   ] - config for calendar 'Muellkalender': CalDavConfig [key=Muellkalender, username=XXX, password=XXX, url=https://www.google.com/calendar/dav/Calendar-ID@group.calendar.google.com/events, reloadMinutes=2, preloadMinutes=2, disableCertificateVerification=true, lastModifiedFileTimeStampValid=true]
28-Feb-2018 11:13:01.720 [TRACE] [org.openhab.io.caldav.internal.CalDavLoaderImpl   ] - config for calendar 'Familie': CalDavConfig [key=Familie, username=XXX, password=XXX, url=https://www.google.com/calendar/dav/Calendar-ID@group.calendar.google.com/events, reloadMinutes=2, preloadMinutes=2, disableCertificateVerification=true, lastModifiedFileTimeStampValid=true]
28-Feb-2018 11:13:01.721 [TRACE] [org.openhab.io.caldav.internal.CalDavLoaderImpl   ] - config for calendar 'Wkkalender': CalDavConfig [key=Wkkalender, username=XXX, password=XXX, url=https://www.google.com/calendar/dav/Calendar-ID@group.calendar.google.com/events, reloadMinutes=2, preloadMinutes=2, disableCertificateVerification=true, lastModifiedFileTimeStampValid=true]
28-Feb-2018 11:13:01.722 [INFO ] [org.openhab.io.caldav.internal.CalDavLoaderImpl   ] - CalDAV IO is properly configured.

And now the same results as Jan and Fabian have reported happens. No events show for calendar Wkkalender or Familie.

28-Feb-2018 11:31:19.996 [DEBUG] [rg.openhab.io.caldav.internal.job.EventReloaderJob] - running EventReloaderJob for config : Familie
28-Feb-2018 11:31:19.998 [DEBUG] [rg.openhab.io.caldav.internal.job.EventReloaderJob] - reload cached events for config: Familie
28-Feb-2018 11:31:20.001 [TRACE] [rg.openhab.io.caldav.internal.job.EventReloaderJob] - found our config : Familie
28-Feb-2018 11:31:20.006 [DEBUG] [rg.openhab.io.caldav.internal.job.EventReloaderJob] - loading events from file : etc/caldav/Familie/7ssike49cll82qm6hivg0s03or_google_com.ics
28-Feb-2018 11:31:20.066 [TRACE] [rg.openhab.io.caldav.internal.job.EventReloaderJob] - loadFrom = 2018-02-28T11:31:20.066+01:00
28-Feb-2018 11:31:20.068 [TRACE] [rg.openhab.io.caldav.internal.job.EventReloaderJob] - loadTo = 2018-02-28T11:33:20.067+01:00
28-Feb-2018 11:31:20.070 [TRACE] [rg.openhab.io.caldav.internal.job.EventReloaderJob] - loading event: 7ssike49cll82qm6hivg0s03or@google.com:Test2
28-Feb-2018 11:31:20.071 [TRACE] [rg.openhab.io.caldav.internal.job.EventReloaderJob] - overriding lastmodified from file FS (2018-02-28T10:52:29.000+01:00) with event's last-modified property (2018-02-28T09:43:21.000+01:00)
28-Feb-2018 11:31:20.073 [DEBUG] [rg.openhab.io.caldav.internal.job.EventReloaderJob] - Processing event 'Test2'
28-Feb-2018 11:31:20.075 [DEBUG] [rg.openhab.io.caldav.internal.job.EventReloaderJob] - No periods exist for event 'Test2'
28-Feb-2018 11:31:20.076 [TRACE] [org.openhab.io.caldav.internal.CalDavLoaderImpl   ] - listeners for events: 2
28-Feb-2018 11:31:20.077 [DEBUG] [rg.openhab.io.caldav.internal.job.EventReloaderJob] - loading events from file : etc/caldav/Familie/6kvuoqk72dd96k8m0vpahmm5jo_google_com.ics
28-Feb-2018 11:31:20.192 [TRACE] [rg.openhab.io.caldav.internal.job.EventReloaderJob] - loadFrom = 2018-02-28T11:31:20.191+01:00
28-Feb-2018 11:31:20.194 [TRACE] [rg.openhab.io.caldav.internal.job.EventReloaderJob] - loadTo = 2018-02-28T11:33:20.193+01:00
28-Feb-2018 11:31:20.195 [TRACE] [rg.openhab.io.caldav.internal.job.EventReloaderJob] - loading event: 6kvuoqk72dd96k8m0vpahmm5jo@google.com:Test
28-Feb-2018 11:31:20.196 [TRACE] [rg.openhab.io.caldav.internal.job.EventReloaderJob] - overriding lastmodified from file FS (2018-02-28T10:52:29.000+01:00) with event's last-modified property (2018-02-26T22:08:33.000+01:00)
28-Feb-2018 11:31:20.199 [DEBUG] [rg.openhab.io.caldav.internal.job.EventReloaderJob] - Processing event 'Test'
28-Feb-2018 11:31:20.200 [DEBUG] [rg.openhab.io.caldav.internal.job.EventReloaderJob] - No periods exist for event 'Test'
28-Feb-2018 11:31:20.201 [TRACE] [org.openhab.io.caldav.internal.CalDavLoaderImpl   ] - listeners for events: 2
28-Feb-2018 11:31:20.203 [DEBUG] [rg.openhab.io.caldav.internal.job.EventReloaderJob] - loading events from file : etc/caldav/Familie/7i9sqq1ne78kukcu7l5akt3m93_google_com.ics
28-Feb-2018 11:31:20.218 [TRACE] [rg.openhab.io.caldav.internal.job.EventReloaderJob] - loadFrom = 2018-02-28T11:31:20.218+01:00
28-Feb-2018 11:31:20.219 [TRACE] [rg.openhab.io.caldav.internal.job.EventReloaderJob] - loadTo = 2018-02-28T11:33:20.219+01:00
28-Feb-2018 11:31:20.220 [TRACE] [rg.openhab.io.caldav.internal.job.EventReloaderJob] - loading event: 7i9sqq1ne78kukcu7l5akt3m93@google.com:Test1
28-Feb-2018 11:31:20.221 [TRACE] [rg.openhab.io.caldav.internal.job.EventReloaderJob] - overriding lastmodified from file FS (2018-02-28T10:52:29.000+01:00) with event's last-modified property (2018-02-28T09:43:12.000+01:00)
28-Feb-2018 11:31:20.223 [DEBUG] [rg.openhab.io.caldav.internal.job.EventReloaderJob] - Processing event 'Test1'
28-Feb-2018 11:31:20.224 [DEBUG] [rg.openhab.io.caldav.internal.job.EventReloaderJob] - No periods exist for event 'Test1'
28-Feb-2018 11:31:20.225 [TRACE] [org.openhab.io.caldav.internal.CalDavLoaderImpl   ] - listeners for events: 2
28-Feb-2018 11:31:20.226 [DEBUG] [rg.openhab.io.caldav.internal.job.EventReloaderJob] - loading events from file : etc/caldav/Familie/4el9mdqiv0plbglcih568lqm88_google_com.ics
28-Feb-2018 11:31:20.239 [TRACE] [rg.openhab.io.caldav.internal.job.EventReloaderJob] - loadFrom = 2018-02-28T11:31:20.238+01:00
28-Feb-2018 11:31:20.240 [TRACE] [rg.openhab.io.caldav.internal.job.EventReloaderJob] - loadTo = 2018-02-28T11:33:20.240+01:00
28-Feb-2018 11:31:20.241 [TRACE] [rg.openhab.io.caldav.internal.job.EventReloaderJob] - loading event: 4el9mdqiv0plbglcih568lqm88@google.com:Test3
28-Feb-2018 11:31:20.242 [TRACE] [rg.openhab.io.caldav.internal.job.EventReloaderJob] - overriding lastmodified from file FS (2018-02-28T10:52:30.000+01:00) with event's last-modified property (2018-02-28T09:43:32.000+01:00)
28-Feb-2018 11:31:20.243 [DEBUG] [rg.openhab.io.caldav.internal.job.EventReloaderJob] - Processing event 'Test3'
28-Feb-2018 11:31:20.244 [DEBUG] [rg.openhab.io.caldav.internal.job.EventReloaderJob] - No periods exist for event 'Test3'
28-Feb-2018 11:31:20.245 [TRACE] [org.openhab.io.caldav.internal.CalDavLoaderImpl   ] - listeners for events: 2
28-Feb-2018 11:31:20.246 [DEBUG] [rg.openhab.io.caldav.internal.job.EventReloaderJob] - loading events for config: Familie
28-Feb-2018 11:31:20.247 [DEBUG] [rg.openhab.io.caldav.internal.job.EventReloaderJob] - old eventcontainer -- id : 7i9sqq1ne78kukcu7l5akt3m93@google.com -- filename : 7i9sqq1ne78kukcu7l5akt3m93_google_com -- calcuntil : 2018-02-28T11:33:20.219+01:00 -- lastchanged : 2018-02-28T10:52:29.000+01:00 -- ishistoric : false
28-Feb-2018 11:31:20.249 [DEBUG] [rg.openhab.io.caldav.internal.job.EventReloaderJob] - old eventcontainer -- id : 7ssike49cll82qm6hivg0s03or@google.com -- filename : 7ssike49cll82qm6hivg0s03or_google_com -- calcuntil : 2018-02-28T11:33:20.067+01:00 -- lastchanged : 2018-02-28T10:52:29.000+01:00 -- ishistoric : false
28-Feb-2018 11:31:20.250 [DEBUG] [rg.openhab.io.caldav.internal.job.EventReloaderJob] - old eventcontainer -- id : 6kvuoqk72dd96k8m0vpahmm5jo@google.com -- filename : 6kvuoqk72dd96k8m0vpahmm5jo_google_com -- calcuntil : 2018-02-28T11:33:20.193+01:00 -- lastchanged : 2018-02-28T10:52:29.000+01:00 -- ishistoric : false
28-Feb-2018 11:31:20.251 [DEBUG] [rg.openhab.io.caldav.internal.job.EventReloaderJob] - old eventcontainer -- id : 4el9mdqiv0plbglcih568lqm88@google.com -- filename : 4el9mdqiv0plbglcih568lqm88_google_com -- calcuntil : 2018-02-28T11:33:20.240+01:00 -- lastchanged : 2018-02-28T10:52:30.000+01:00 -- ishistoric : false
28-Feb-2018 11:31:20.252 [TRACE] [org.openhab.io.caldav.internal.Util               ] - connecting to caldav 'Familie' with disabled certificate verification (url=https://www.google.com/calendar/dav/s8upi3rjn91uppve4rd8uvgdbg@group.calendar.google.com/events, username=XXX, password=XXX)
28-Feb-2018 11:31:21.986 [TRACE] [rg.openhab.io.caldav.internal.job.EventReloaderJob] - before load events : oldeventids contains : [7i9sqq1ne78kukcu7l5akt3m93_google_com, 7ssike49cll82qm6hivg0s03or_google_com, 6kvuoqk72dd96k8m0vpahmm5jo_google_com, 4el9mdqiv0plbglcih568lqm88_google_com]
28-Feb-2018 11:31:21.991 [TRACE] [rg.openhab.io.caldav.internal.job.EventReloaderJob] - eventContainer found: true
28-Feb-2018 11:31:21.993 [TRACE] [rg.openhab.io.caldav.internal.job.EventReloaderJob] - last resource modification: 2018-02-28T11:31:21.990+01:00
28-Feb-2018 11:31:21.995 [TRACE] [rg.openhab.io.caldav.internal.job.EventReloaderJob] - last change of already loaded event: 2018-02-28T10:52:29.000+01:00
28-Feb-2018 11:31:21.996 [DEBUG] [rg.openhab.io.caldav.internal.job.EventReloaderJob] - loading resource: /calendar/dav/s8upi3rjn91uppve4rd8uvgdbg@group.calendar.google.com/events/7ssike49cll82qm6hivg0s03or@google.com.ics (FSchangedTS not valid)
28-Feb-2018 11:31:21.997 [TRACE] [rg.openhab.io.caldav.internal.job.EventReloaderJob] - Raw URL: https://www.google.com/calendar/dav/s8upi3rjn91uppve4rd8uvgdbg@group.calendar.google.com/events
28-Feb-2018 11:31:21.998 [TRACE] [rg.openhab.io.caldav.internal.job.EventReloaderJob] - URL after encoding: https://www.google.com/calendar/dav/s8upi3rjn91uppve4rd8uvgdbg@group.calendar.google.com/events/7ssike49cll82qm6hivg0s03or@google.com.ics
28-Feb-2018 11:31:22.934 [TRACE] [rg.openhab.io.caldav.internal.job.EventReloaderJob] - loadFrom = 2018-02-28T11:31:22.934+01:00
28-Feb-2018 11:31:22.935 [TRACE] [rg.openhab.io.caldav.internal.job.EventReloaderJob] - loadTo = 2018-02-28T11:33:22.935+01:00
28-Feb-2018 11:31:22.937 [TRACE] [rg.openhab.io.caldav.internal.job.EventReloaderJob] - loading event: 7ssike49cll82qm6hivg0s03or@google.com:Test2
28-Feb-2018 11:31:22.939 [TRACE] [rg.openhab.io.caldav.internal.job.EventReloaderJob] - overriding lastmodified from file FS (2018-02-28T11:31:21.990+01:00) with event's last-modified property (2018-02-28T09:43:21.000+01:00)
28-Feb-2018 11:31:22.942 [DEBUG] [rg.openhab.io.caldav.internal.job.EventReloaderJob] - Processing event 'Test2'
28-Feb-2018 11:31:22.944 [DEBUG] [rg.openhab.io.caldav.internal.job.EventReloaderJob] - No periods exist for event 'Test2'
28-Feb-2018 11:31:22.946 [DEBUG] [org.openhab.io.caldav.internal.CalDavLoaderImpl   ] - event is already in event map and newer -> delete the old one, reschedule timer
28-Feb-2018 11:31:22.959 [TRACE] [rg.openhab.io.caldav.internal.job.EventReloaderJob] - eventContainer found: true
28-Feb-2018 11:31:22.961 [TRACE] [rg.openhab.io.caldav.internal.job.EventReloaderJob] - last resource modification: 2018-02-28T11:31:22.959+01:00
28-Feb-2018 11:31:22.964 [TRACE] [rg.openhab.io.caldav.internal.job.EventReloaderJob] - last change of already loaded event: 2018-02-28T10:52:29.000+01:00
28-Feb-2018 11:31:22.966 [DEBUG] [rg.openhab.io.caldav.internal.job.EventReloaderJob] - loading resource: /calendar/dav/s8upi3rjn91uppve4rd8uvgdbg@group.calendar.google.com/events/6kvuoqk72dd96k8m0vpahmm5jo@google.com.ics (FSchangedTS not valid)
28-Feb-2018 11:31:22.968 [TRACE] [rg.openhab.io.caldav.internal.job.EventReloaderJob] - Raw URL: https://www.google.com/calendar/dav/s8upi3rjn91uppve4rd8uvgdbg@group.calendar.google.com/events
28-Feb-2018 11:31:22.969 [TRACE] [rg.openhab.io.caldav.internal.job.EventReloaderJob] - URL after encoding: https://www.google.com/calendar/dav/s8upi3rjn91uppve4rd8uvgdbg@group.calendar.google.com/events/6kvuoqk72dd96k8m0vpahmm5jo@google.com.ics
28-Feb-2018 11:31:23.214 [TRACE] [rg.openhab.io.caldav.internal.job.EventReloaderJob] - loadFrom = 2018-02-28T11:31:23.213+01:00
28-Feb-2018 11:31:23.215 [TRACE] [rg.openhab.io.caldav.internal.job.EventReloaderJob] - loadTo = 2018-02-28T11:33:23.215+01:00
28-Feb-2018 11:31:23.216 [TRACE] [rg.openhab.io.caldav.internal.job.EventReloaderJob] - loading event: 6kvuoqk72dd96k8m0vpahmm5jo@google.com:Test
28-Feb-2018 11:31:23.218 [TRACE] [rg.openhab.io.caldav.internal.job.EventReloaderJob] - overriding lastmodified from file FS (2018-02-28T11:31:22.959+01:00) with event's last-modified property (2018-02-26T22:08:33.000+01:00)
28-Feb-2018 11:31:23.220 [DEBUG] [rg.openhab.io.caldav.internal.job.EventReloaderJob] - Processing event 'Test'
28-Feb-2018 11:31:23.221 [DEBUG] [rg.openhab.io.caldav.internal.job.EventReloaderJob] - No periods exist for event 'Test'
28-Feb-2018 11:31:23.222 [DEBUG] [org.openhab.io.caldav.internal.CalDavLoaderImpl   ] - event is already in event map and newer -> delete the old one, reschedule timer
28-Feb-2018 11:31:23.233 [TRACE] [rg.openhab.io.caldav.internal.job.EventReloaderJob] - eventContainer found: true
28-Feb-2018 11:31:23.234 [TRACE] [rg.openhab.io.caldav.internal.job.EventReloaderJob] - last resource modification: 2018-02-28T11:31:23.233+01:00
28-Feb-2018 11:31:23.235 [TRACE] [rg.openhab.io.caldav.internal.job.EventReloaderJob] - last change of already loaded event: 2018-02-28T10:52:29.000+01:00
28-Feb-2018 11:31:23.236 [DEBUG] [rg.openhab.io.caldav.internal.job.EventReloaderJob] - loading resource: /calendar/dav/s8upi3rjn91uppve4rd8uvgdbg@group.calendar.google.com/events/7i9sqq1ne78kukcu7l5akt3m93@google.com.ics (FSchangedTS not valid)
28-Feb-2018 11:31:23.237 [TRACE] [rg.openhab.io.caldav.internal.job.EventReloaderJob] - Raw URL: https://www.google.com/calendar/dav/s8upi3rjn91uppve4rd8uvgdbg@group.calendar.google.com/events
28-Feb-2018 11:31:23.239 [TRACE] [rg.openhab.io.caldav.internal.job.EventReloaderJob] - URL after encoding: https://www.google.com/calendar/dav/s8upi3rjn91uppve4rd8uvgdbg@group.calendar.google.com/events/7i9sqq1ne78kukcu7l5akt3m93@google.com.ics
28-Feb-2018 11:31:23.399 [TRACE] [rg.openhab.io.caldav.internal.job.EventReloaderJob] - loadFrom = 2018-02-28T11:31:23.398+01:00
28-Feb-2018 11:31:23.400 [TRACE] [rg.openhab.io.caldav.internal.job.EventReloaderJob] - loadTo = 2018-02-28T11:33:23.400+01:00
28-Feb-2018 11:31:23.401 [TRACE] [rg.openhab.io.caldav.internal.job.EventReloaderJob] - loading event: 7i9sqq1ne78kukcu7l5akt3m93@google.com:Test1
28-Feb-2018 11:31:23.402 [TRACE] [rg.openhab.io.caldav.internal.job.EventReloaderJob] - overriding lastmodified from file FS (2018-02-28T11:31:23.233+01:00) with event's last-modified property (2018-02-28T09:43:12.000+01:00)
28-Feb-2018 11:31:23.403 [DEBUG] [rg.openhab.io.caldav.internal.job.EventReloaderJob] - Processing event 'Test1'
28-Feb-2018 11:31:23.404 [DEBUG] [rg.openhab.io.caldav.internal.job.EventReloaderJob] - No periods exist for event 'Test1'
28-Feb-2018 11:31:23.405 [DEBUG] [org.openhab.io.caldav.internal.CalDavLoaderImpl   ] - event is already in event map and newer -> delete the old one, reschedule timer
28-Feb-2018 11:31:23.410 [TRACE] [rg.openhab.io.caldav.internal.job.EventReloaderJob] - eventContainer found: true
28-Feb-2018 11:31:23.411 [TRACE] [rg.openhab.io.caldav.internal.job.EventReloaderJob] - last resource modification: 2018-02-28T11:31:23.410+01:00
28-Feb-2018 11:31:23.412 [TRACE] [rg.openhab.io.caldav.internal.job.EventReloaderJob] - last change of already loaded event: 2018-02-28T10:52:30.000+01:00
28-Feb-2018 11:31:23.413 [DEBUG] [rg.openhab.io.caldav.internal.job.EventReloaderJob] - loading resource: /calendar/dav/s8upi3rjn91uppve4rd8uvgdbg@group.calendar.google.com/events/4el9mdqiv0plbglcih568lqm88@google.com.ics (FSchangedTS not valid)
28-Feb-2018 11:31:23.414 [TRACE] [rg.openhab.io.caldav.internal.job.EventReloaderJob] - Raw URL: https://www.google.com/calendar/dav/s8upi3rjn91uppve4rd8uvgdbg@group.calendar.google.com/events
28-Feb-2018 11:31:23.415 [TRACE] [rg.openhab.io.caldav.internal.job.EventReloaderJob] - URL after encoding: https://www.google.com/calendar/dav/s8upi3rjn91uppve4rd8uvgdbg@group.calendar.google.com/events/4el9mdqiv0plbglcih568lqm88@google.com.ics
28-Feb-2018 11:31:23.996 [TRACE] [rg.openhab.io.caldav.internal.job.EventReloaderJob] - loadFrom = 2018-02-28T11:31:23.995+01:00
28-Feb-2018 11:31:23.998 [TRACE] [rg.openhab.io.caldav.internal.job.EventReloaderJob] - loadTo = 2018-02-28T11:33:23.998+01:00
28-Feb-2018 11:31:24.000 [TRACE] [rg.openhab.io.caldav.internal.job.EventReloaderJob] - loading event: 4el9mdqiv0plbglcih568lqm88@google.com:Test3
28-Feb-2018 11:31:24.003 [TRACE] [rg.openhab.io.caldav.internal.job.EventReloaderJob] - overriding lastmodified from file FS (2018-02-28T11:31:23.410+01:00) with event's last-modified property (2018-02-28T09:43:32.000+01:00)
28-Feb-2018 11:31:24.006 [DEBUG] [rg.openhab.io.caldav.internal.job.EventReloaderJob] - Processing event 'Test3'
28-Feb-2018 11:31:24.007 [DEBUG] [rg.openhab.io.caldav.internal.job.EventReloaderJob] - No periods exist for event 'Test3'
28-Feb-2018 11:31:24.008 [DEBUG] [org.openhab.io.caldav.internal.CalDavLoaderImpl   ] - event is already in event map and newer -> delete the old one, reschedule timer
28-Feb-2018 11:31:24.015 [TRACE] [rg.openhab.io.caldav.internal.job.EventReloaderJob] - after load events : oldeventids contains : []
28-Feb-2018 11:31:24.058 [TRACE] [org.openhab.io.caldav.internal.CalDavLoaderImpl   ] - Querying events for filter: CalDavQuery [calendarIds=[Familie], from=2018-02-28T11:31:24.058+01:00, to=null, sort=ASCENDING, filterName=null]
28-Feb-2018 11:31:24.063 [DEBUG] [org.openhab.io.caldav.internal.CalDavLoaderImpl   ] - return event list for CalDavQuery [calendarIds=[Familie], from=2018-02-28T11:31:24.058+01:00, to=null, sort=ASCENDING, filterName=null] with 0 entries
28-Feb-2018 11:31:24.077 [TRACE] [org.openhab.io.caldav.internal.CalDavLoaderImpl   ] - Querying events for filter: CalDavQuery [calendarIds=[Wkkalender], from=2018-02-28T11:31:24.077+01:00, to=null, sort=ASCENDING, filterName=null]
28-Feb-2018 11:31:24.079 [DEBUG] [org.openhab.io.caldav.internal.CalDavLoaderImpl   ] - return event list for CalDavQuery [calendarIds=[Wkkalender], from=2018-02-28T11:31:24.077+01:00, to=null, sort=ASCENDING, filterName=null] with 0 entries
28-Feb-2018 11:31:24.091 [TRACE] [org.openhab.io.caldav.internal.CalDavLoaderImpl   ] - Querying events for filter: CalDavQuery [calendarIds=[Muellkalender], from=2018-02-28T11:31:24.090+01:00, to=null, sort=ASCENDING, filterName=null]
28-Feb-2018 11:31:24.092 [DEBUG] [org.openhab.io.caldav.internal.CalDavLoaderImpl   ] - return event list for CalDavQuery [calendarIds=[Muellkalender], from=2018-02-28T11:31:24.090+01:00, to=null, sort=ASCENDING, filterName=null] with 0 entries
28-Feb-2018 11:31:24.123 [DEBUG] [rg.openhab.io.caldav.internal.job.EventReloaderJob] - jobs scheduled : 
28-Feb-2018 11:31:24.124 [DEBUG] [rg.openhab.io.caldav.internal.job.EventReloaderJob] - [job] : event-end-4ph62j7b4fm9e2visg6dmhgn5h@google.com(Sperrmüll@28.02.2018/00:00-01.03.2018/00:00)-0 - [groupName] : event-end - Thu Mar 01 00:00:00 CET 2018
28-Feb-2018 11:31:24.151 [DEBUG] [rg.openhab.io.caldav.internal.job.EventReloaderJob] - [job] : Upload_GCal-Entries - [groupName] : GoogleCalendar - Wed Feb 28 11:31:28 CET 2018
28-Feb-2018 11:31:24.155 [DEBUG] [rg.openhab.io.caldav.internal.job.EventReloaderJob] - [job] : Familie - [groupName] : event-reloader - Wed Feb 28 12:01:19 CET 2018
28-Feb-2018 11:31:24.165 [DEBUG] [rg.openhab.io.caldav.internal.job.EventReloaderJob] - [job] : Muellkalender - [groupName] : event-reloader - Thu Mar 01 11:01:09 CET 2018
28-Feb-2018 11:31:24.168 [DEBUG] [rg.openhab.io.caldav.internal.job.EventReloaderJob] - [job] : Wkkalender - [groupName] : event-reloader - Wed Feb 28 11:31:29 CET 2018
28-Feb-2018 11:31:29.998 [DEBUG] [rg.openhab.io.caldav.internal.job.EventReloaderJob] - running EventReloaderJob for config : Wkkalender

Can anyone help. This is really strange behavior.
Appreciate your support.


(Jan) #27

Hi all,
here’s a quick update as I noticed something interesting today…
Today is a garbage pick-up date in my neighborhood, so the calendar has an active event for today and interestingly, this is shown in the caldav items. Since there’s another pick-up scheduled for tomorrow, I played around with it a bit and the only item definition that seems to work is

String      CalDav_Muelltonne   "Tonne: [%s]"                                <calendar>  { caldavPersonal="calendar:muellkalender type:EVENT eventNr:1 value:NAME" }

Any change to type or eventNr renders the item undefined. In particular, I have tried

type:EVENT eventNr:2
type:UPCOMING eventNr:1

In other words, today’s event is shown, but none of the future ones. So it almost seems that only current/active events are discovered!?

Interestingly, the log shows that one event was shown regardless of the above…

2018-03-05 16:46:52.700 [DEBUG] [.io.caldav.internal.CalDavLoaderImpl] - return event list for CalDavQuery [calendarIds=[muellkalender], from=2018-03-05T16:46:52.699+01:00, to=null, sort=ASCENDING, filterName=null] with 1 entries

Does that help anyone to understand what the issue is?


(Andrew Pawelski) #28

There are three type

UPCOMING: the next upcoming events, not the active ones
ACTIVE: events which are currently on (internally used for presence detection)
EVENT: all events, active as well as upcoming

All have a seperate eventnr starting at 1

For example to show the entry currently on and the upcoming entry they would both have eventnr of 1

Note If you used event type EVENT with the above and used eventnr 1 it would show the same as upcoming 1

I’m running a view showing a (conditional) now, next, later (showing 3 events)


(Jan) #29

Thanks @Andrew_Pawelski for chiming in!

The various types to show calendar entries are well understood and make a lot of sense. The issue remains, at least for some of us, that these settings don’t reveal the desired out put. In my example above, I had a “current event” and another one that was upcoming the next day. Still, after trying all kinds of combinations in thise settings, the inly event that would show was the current one.

Interestingly, the next day, when the next event was current, the same aetting did not ahow up anything at all?!

I’ve kind if given up on caldav for now, focussing on other parts of the overall configurations. However, I’m still open to hear new thoughts and advice on how to make this work…


(Andrew Pawelski) #30

I’m happy to help work through this some more if you are

Can you post your items in full?

Thanks
Andrew


(Jan) #31

@Andrew_Pawelski thanks for your offer to help. Please find my config in this post:


(Andrew Pawelski) #32

That is why I asked - you quoted the config:

Which is only showing Event 1

You then refer to in another post
type:EVENT eventNr:2
type:UPCOMING eventNr:1

This should show the “next” event with UPCOMING and the one after that with EVENT

If you want to see the event that is on now, next and later, I would use
ACTIVE eventNr:1
UPCOMING eventNr:1
UPCOMING eventNr:2

I show 6 events using the following items

String CalendarName0   "Now [%s]"     <calendar>  { caldavPersonal="calendar:AJ type:ACTIVE  eventNr:1 value:NAME" } 
DateTime CalendarTimeStart0 "Starts [%1$ta, %1$te %1$tb %1$tl:%1$tM%1$tp]"         <calendar>  { caldavPersonal="calendar:AJ type:ACTIVE eventNr:1 value:START" } 
DateTime CalendarTimeEnd0 "Ends [%1$ta, %1$te %1$tb %1$tl:%1$tM%1$tp]"         <calendar>  { caldavPersonal="calendar:AJ type:ACTIVE eventNr:1 value:END" }
String CalendarAt0 "At [%s]"  <calendar>  { caldavPersonal="calendar:AJ type:ACTIVE eventNr:1 value:PLACE" } 

String CalendarName1   "Up Next [%s]"     <calendar>  { caldavPersonal="calendar:AJ type:UPCOMING  eventNr:1 value:NAME" } 
DateTime CalendarTimeStart1 "Starts [%1$ta, %1$te %1$tb %1$tl:%1$tM%1$tp]"         <calendar>  { caldavPersonal="calendar:AJ type:UPCOMING eventNr:1 value:START" } 
DateTime CalendarTimeEnd1 "Ends [%1$ta, %1$te %1$tb %1$tl:%1$tM%1$tp]"         <calendar>  { caldavPersonal="calendar:AJ type:UPCOMING eventNr:1 value:END" }
String CalendarAt1 "At [%s]"  <calendar>  { caldavPersonal="calendar:AJ type:UPCOMING eventNr:1 value:PLACE" } 

String CalendarName2   "Coming up [%s]"     <calendar>  { caldavPersonal="calendar:AJ type:UPCOMING eventNr:2 value:NAME" } 
DateTime CalendarTimeStart2 "Starts [%1$ta, %1$te %1$tb %1$tl:%1$tM%1$tp]"         <calendar>  { caldavPersonal="calendar:AJ type:UPCOMING eventNr:2 value:START" } 
DateTime CalendarTimeEnd2 "Ends [%1$ta, %1$te %1$tb %1$tl:%1$tM%1$tp]"         <calendar>  { caldavPersonal="calendar:AJ type:UPCOMING eventNr:2 value:END" }
String CalendarAt2 "At [%s]"  <calendar>  { caldavPersonal="calendar:AJ type:UPCOMING eventNr:2 value:PLACE" } 

String CalendarName3   "Later  [%s]"     <calendar>  { caldavPersonal="calendar:AJ type:UPCOMING eventNr:3 value:NAME" } 
DateTime CalendarTimeStart3 "Starts [%1$ta, %1$te %1$tb %1$tl:%1$tM%1$tp]"         <calendar>  { caldavPersonal="calendar:AJ type:UPCOMING eventNr:3 value:START" } 
DateTime CalendarTimeEnd3 "Ends [%1$ta, %1$te %1$tb %1$tl:%1$tM%1$tp]"         <calendar>  { caldavPersonal="calendar:AJ type:UPCOMING eventNr:3 value:END" }
String CalendarAt3 "At [%s]"  <calendar>  { caldavPersonal="calendar:AJ type:UPCOMING eventNr:3 value:PLACE" } 

String CalendarName4   "Later [%s]"     <calendar>  { caldavPersonal="calendar:AJ type:UPCOMING eventNr:4 value:NAME" } 
DateTime CalendarTimeStart4 "Starts [%1$ta, %1$te %1$tb %1$tl:%1$tM%1$tp]"         <calendar>  { caldavPersonal="calendar:AJ type:UPCOMING eventNr:4 value:START" } 
DateTime CalendarTimeEnd4 "Ends [%1$ta, %1$te %1$tb %1$tl:%1$tM%1$tp]"         <calendar>  { caldavPersonal="calendar:AJ type:UPCOMING eventNr:4 value:END" }
String CalendarAt4 "At [%s]"  <calendar>  { caldavPersonal="calendar:AJ type:UPCOMING eventNr:4 value:PLACE" } 

String CalendarName5   "Later [%s]"     <calendar>  { caldavPersonal="calendar:AJ type:UPCOMING eventNr:5 value:NAME" } 
DateTime CalendarTimeStart5 "Starts [%1$ta, %1$te %1$tb %1$tl:%1$tM%1$tp]"         <calendar>  { caldavPersonal="calendar:AJ type:UPCOMING eventNr:5 value:START" } 
DateTime CalendarTimeEnd5 "Ends [%1$ta, %1$te %1$tb %1$tl:%1$tM%1$tp]"         <calendar>  { caldavPersonal="calendar:AJ type:UPCOMING eventNr:5 value:END" }
String CalendarAt5 "[%s]"  <calendar>  { caldavPersonal="calendar:AJ type:UPCOMING eventNr:5 value:PLACE" } 

Hope this helps


(Jan) #33

@Andrew_Pawelski thanks for your ongoing support and effort! Sadly, I have already tried all kinds of combinations of EVENT/UPCOMING and various eventNr settings at no avail. I will do a fresh install this weekend as the last resort. If that doesn‘t help either, I’m afraid the family will have to remenber trash pick-up times otherwise…


(Richard Bergen) #34

It looks like I’m really close, I’ve installed CalDAV Personal and CalDAV Command (1.11.0). Running on a Raspberry PI in docker w/ latest raspbian OS.

I can see a pile of ICS files in /opt/openhab/userdata/etc/caldav/google but I am getting the following messages in events.log:

2018-06-05 23:42:54.085 [vent.ItemStateChangedEvent] - OfficeCalName0 changed from NULL to UNDEF
2018-06-05 23:42:54.094 [vent.ItemStateChangedEvent] - OfficeCalTime0 changed from NULL to UNDEF
2018-06-05 23:42:54.122 [vent.ItemStateChangedEvent] - OfficeCalName1 changed from NULL to UNDEF
2018-06-05 23:42:54.145 [vent.ItemStateChangedEvent] - OfficeCalTime1 changed from NULL to UNDEF
2018-06-05 23:42:54.168 [vent.ItemStateChangedEvent] - OfficeCalName2 changed from NULL to UNDEF
2018-06-05 23:42:54.189 [vent.ItemStateChangedEvent] - OfficeCalTime2 changed from NULL to UNDEF
2018-06-05 23:42:54.211 [vent.ItemStateChangedEvent] - OfficeCalName3 changed from NULL to UNDEF
2018-06-05 23:42:54.234 [vent.ItemStateChangedEvent] - OfficeCalTime3 changed from NULL to UNDEF

Here’s the ICS files:

root@raspberrypi:~# cd /opt/openhab/userdata/etc/caldav/google/
root@raspberrypi:/opt/openhab/userdata/etc/caldav/google# ls
040000008200E00074C5B7101A82E0080000000010634E4A2EA6CD010000000000000000100000004EADE5705FE6D743836FD0048E24C0EC.ics  4E444018F1034A2A88061F39BB0C28C40.ics	 DB8396EE591E4F6EBAB7EFA49103F12E0.ics
040000008200E00074C5B7101A82E0080000000090453AD7BB67D001000000000000000010000000B7F3CD1BC2BAD34EA7DBB9B449AD5B34.ics  559081bf-411b-47c4-a512-c1bd6e4eb823.ics	 e44qne27qtbh3ggq5u8enoopgc_google_com.ics
040000008200E00074C5B7101A82E00800000000F076EE2C724CCC0100000000000000001000000006341BADEDB2464DAB111E8726640135.ics  791fnm7q5a9hvbgb7i04ddi8ig_google_com.ics  F71E8134-B68A-4079-B2EA-2F84D08B3B15.ics
07263EC7-D06A-466C-9741-3808FD98F8F5.ics									      8075966727062.ics				 ff395ee7-3218-41b9-ac18-7464afe3dfaf.ics
136f86ai3s9pf6b6l6ivpukflo_google_com.ics									      8079680296470.ics				 h87h235e0rri2qpkf7tc30um08_google_com.ics
17usf0br7bt3gudjh4g8odtbpe_google_com.ics									      86bov9pfkne02hmp26k6v3l7d0_google_com.ics  i8e4gmfs2kt7nj5tfj7sjnj250_google_com.ics
2276d6e3-71ae-4907-9389-6ae406cf5bb5.ics									      991283633.ics				 mkvk3ho2j4k1vp4pa3hhe3m0r8_google_com.ics
257501b8-0b3b-4c8c-8413-12705d738770.ics									      ct1enihigpm8cevjt5155ijb70_google_com.ics  tk6725lctkbkkng3hleam7h4ro_google_com.ics
4182720EB7B548898F99A6F064D27D710.ics									

I thought I enabled TRACE, but I don’t see anything in the logs indicating any verbose troubleshooting information.

openhab> log:list
Logger                                             │ Level
───────────────────────────────────────────────────┼──────
ROOT                                               │ WARN
javax.jmdns                                        │ ERROR
org.apache.karaf.jaas.modules.audit                │ INFO
org.apache.karaf.kar.internal.KarServiceImpl       │ ERROR
org.apache.karaf.shell.support                     │ OFF
org.eclipse.smarthome                              │ INFO
org.jupnp                                          │ ERROR
org.openhab                                        │ INFO
org.openhab.binding.caldav_personal                │ TRACE
org.openhab.caldavPersonal                         │ TRACE
org.openhab.caldavio                               │ TRACE
org.openhab.io.caldav.CalDavLoader                 │ TRACE

openhab.log file

2018-06-05 23:52:44.222 [DEBUG] [ldav_personal.internal.CalDavBinding] - calendar reloaded: google
2018-06-05 23:52:44.223 [DEBUG] [ldav_personal.internal.CalDavBinding] - no event found for OfficeCalName0, setting to UNDEF
2018-06-05 23:52:44.227 [DEBUG] [ldav_personal.internal.CalDavBinding] - no event found for OfficeCalName2, setting to UNDEF
2018-06-05 23:52:44.235 [DEBUG] [ldav_personal.internal.CalDavBinding] - no event found for OfficeCalName1, setting to UNDEF
2018-06-05 23:52:44.240 [DEBUG] [ldav_personal.internal.CalDavBinding] - no event found for OfficeCalName3, setting to UNDEF
2018-06-05 23:52:44.244 [DEBUG] [ldav_personal.internal.CalDavBinding] - no event found for OfficeCalTime0, setting to UNDEF
2018-06-05 23:52:44.248 [DEBUG] [ldav_personal.internal.CalDavBinding] - no event found for OfficeCalTime2, setting to UNDEF
2018-06-05 23:52:44.252 [DEBUG] [ldav_personal.internal.CalDavBinding] - no event found for OfficeCalTime1, setting to UNDEF
2018-06-05 23:52:44.256 [DEBUG] [ldav_personal.internal.CalDavBinding] - no event found for OfficeCalTime3, setting to UNDEF

Here’s my items file:

String 		OfficeCalName0	"[%s]"					{ caldavPersonal="calendar:'google' type:'EVENT' eventNr:'1' value:'NAME'" } //eventNr for concurrent events
DateTime 	OfficeCalTime0	"Starts [%1$tT, %1$td.%1$tm.%1$tY]"	{ caldavPersonal="calendar:'google' type:'EVENT' eventNr:'1' value:'START'" } //eventNr for concurrent events
String 		OfficeCalName1	"Tomorrow [%s]"				{ caldavPersonal="calendar:'google' type:'EVENT' eventNr:'1' value:'NAME'" }
DateTime 	OfficeCalTime1	"Starts [%1$tT, %1$td.%1$tm.%1$tY]"	{ caldavPersonal="calendar:'google' type:'EVENT' eventNr:'1' value:'START'" }
String 		OfficeCalName2	"Day AFter [%s]" 			{ caldavPersonal="calendar:'google' type:'EVENT' eventNr:'2' value:'NAME'" }
DateTime 	OfficeCalTime2	"Starts [%1$tT, %1$td.%1$tm.%1$tY]" 	{ caldavPersonal="calendar:'google' type:'EVENT' eventNr:'2' value:'START'" }
String          OfficeCalName3  "Day AFter [%s]"                        { caldavPersonal="calendar:'google' type:'EVENT' eventNr:'3' value:'NAME'" }
DateTime        OfficeCalTime3  "Starts [%1$tT, %1$td.%1$tm.%1$tY]"     { caldavPersonal="calendar:'google' type:'EVENT' eventNr:'3' value:'START'" }

caldavio.cfg file


caldavio:google:url=https://www.google.com/calendar/dav/xxxx@gmail.com/events
caldavio:google:username=testuser
caldavio:google:password=password
caldavio:google:reloadInterval=2
caldavio:google:preloadTime=2
caldavio:google:disableCertificateVerification=true

caldavPersonal.cfg

caldavPersonal:usedCalendars=google
caldavPersonal:homeIdentifiers=google

caldavCommand.cfg

caldavCommand:readCalendars=google

I’ve deleted all the *.config files in the userdata folder. I’ve also deleted the ICS files and they repopulate on the next job run.

Any idea what I’m missing?

thanks!


(Richard Bergen) #35

I did end up seeing a couple items get populated, but many of them are not being picked up.

2018-06-05 23:58:44.511 [vent.ItemStateChangedEvent] - OfficeCalName0 changed from UNDEF to test
2018-06-05 23:58:44.526 [vent.ItemStateChangedEvent] - OfficeCalName1 changed from UNDEF to test
2018-06-05 23:58:44.542 [vent.ItemStateChangedEvent] - OfficeCalTime0 changed from UNDEF to 2018-06-06T00:00:00.000-0600
2018-06-05 23:58:44.555 [vent.ItemStateChangedEvent] - OfficeCalTime1 changed from UNDEF to 2018-06-06T00:00:00.000-0600
2018-06-06 00:30:00.018 [vent.ItemStateChangedEvent] - OfficeCalName0 changed from test to UNDEF
2018-06-06 00:30:00.035 [vent.ItemStateChangedEvent] - OfficeCalName1 changed from test to UNDEF
2018-06-06 00:30:00.056 [vent.ItemStateChangedEvent] - OfficeCalTime0 changed from 2018-06-06T00:00:00.000-0600 to UNDEF
2018-06-06 00:30:00.063 [vent.ItemStateChangedEvent] - OfficeCalTime1 changed from 2018-06-06T00:00:00.000-0600 to UNDEF
2018-06-06 07:28:44.476 [vent.ItemStateChangedEvent] - OfficeCalName0 changed from UNDEF to Planning Session
2018-06-06 07:28:44.493 [vent.ItemStateChangedEvent] - OfficeCalName1 changed from UNDEF to Planning Session
2018-06-06 07:28:44.513 [vent.ItemStateChangedEvent] - OfficeCalTime0 changed from UNDEF to 2018-06-06T07:30:00.000-0600
2018-06-06 07:28:44.526 [vent.ItemStateChangedEvent] - OfficeCalTime1 changed from UNDEF to 2018-06-06T07:30:00.000-0600
2018-06-06 08:30:00.021 [vent.ItemStateChangedEvent] - OfficeCalName0 changed from Planning Session to UNDEF
2018-06-06 08:30:00.041 [vent.ItemStateChangedEvent] - OfficeCalName1 changed from Planning Session to UNDEF

Today in my calendar, I have 3 items but none of which are being picked up. Are there character limitations or additional debugs/traces I can run to get to the bottom of it?


(Andrew Pawelski) #36

Do you have recurring calendar events that you have removed individual events in? If you can try removing the whole recurring event and readd without any exceptions


(Richard Bergen) #37

I had 4 entries in my calendar today that were just single meetings and not a part of a series.

I don’t think I have any series at this point, but that might happen in the future, so that’s good to know.

Do you know of any additional debugs or something that I could run to try to figure it out?


(namraccr) #38

Your traces are set up wrong here.

You need to use these packages:

org.openhab.io.caldav
org.openhab.binding.caldav-command
org.openhab.binding.caldav-personal

And your items file has day 1 duplicated and labelled as ‘Tomorrow’. This probably shouldn’t cause any problems, but probably isn’t right:

String 		OfficeCalName0	"[%s]"					{ caldavPersonal="calendar:'google' type:'EVENT' eventNr:'1' value:'NAME'" } //eventNr for concurrent events
DateTime 	OfficeCalTime0	"Starts [%1$tT, %1$td.%1$tm.%1$tY]"	{ caldavPersonal="calendar:'google' type:'EVENT' eventNr:'1' value:'START'" } //eventNr for concurrent events
String 		OfficeCalName1	"Tomorrow [%s]"				{ caldavPersonal="calendar:'google' type:'EVENT' eventNr:'1' value:'NAME'" }
DateTime 	OfficeCalTime1	"Starts [%1$tT, %1$td.%1$tm.%1$tY]"	{ caldavPersonal="calendar:'google' type:'EVENT' eventNr:'1' value:'START'" }

These are also probably not reasonable values:

caldavio:google:reloadInterval=2
caldavio:google:preloadTime=2

With reloads set at 2 minutes, you can’t get any reasonable analysis.


(Andrew Pawelski) #39

Agree get rid of the duplicates didn’t even think that would render


(Richard Bergen) #40

Thanks guys! I guess that’s what happens when you copy/paste from other systems :slight_smile:

I fixed the Items (thank you @namraccr), changed the preloadTime to 18720 based upon the info at:

I also realized that I had the type set to EVENT in items when I really wanted UPCOMING. I’m not sure which change I made that made a difference, but it seems to be working at the moment. I’ll have to play with it a bit more to make sure.

Thank you for your suggestions!