OH3: iCalendar eventfilter not bringing up tomorrows events

Hey @damihe

As I wrote, the general configuration is working now and I get events for the amount of days I’ve configured. But is there a limit in the number of days and events that the binding is able to handle?

For testing purposes I created 3 events per day - for today, tomorrow and the day after. What I get is

  • 3 events for today
  • 2 events for tomorrow (in which one of them does not bring up the start- and end-time)
  • 2 events for day2 (in which one of them does not bring up the start- and end-time)

My *.things looks like:

Bridge icalendar:calendar:private "calendar" [ url="http://192.168.1.35:5000/caldav/admin/home/", username="USERNAME", password="PASSWORD", refreshTime=5 ]
Thing icalendar:eventfilter:today "Today events" (icalendar:calendar:private) [ maxEvents=4, datetimeUnit="DAY", datetimeStart=0, datetimeEnd=1, datetimeRound=true, refreshTime=5 ]
Thing icalendar:eventfilter:tomorrow "Tomorrows events" (icalendar:calendar:private) [ maxEvents=4, datetimeUnit="DAY", datetimeStart=1, datetimeEnd=2, datetimeRound=true, refreshTime=5 ]
Thing icalendar:eventfilter:day2 "Day2 events" (icalendar:calendar:private) [ maxEvents=4, datetimeUnit="DAY", datetimeStart=2, datetimeEnd=3, datetimeRound=true, refreshTime=5 ]

with the following items configured:

String   current_event_name	"current event [%s]"                       <calendar> { channel="icalendar:calendar:private:current_title" }
DateTime current_event_until	"current until [%1$tT, %1$tY-%1$tm-%1$td]" <calendar> { channel="icalendar:calendar:private:current_end" }
String   next_event_name	"next event [%s]"                          <calendar> { channel="icalendar:calendar:private:next_title" }
DateTime next_event_at		"next at [%1$tT, %1$tY-%1$tm-%1$td]"       <calendar> { channel="icalendar:calendar:private:next_start" }


// TODAY
String   first_event_name_today         "first event [%s]"                              <calendar> { channel="icalendar:eventfilter:today:result_0#title" }
DateTime first_event_at_today           "first at [%1$tT, %1$tY-%1$tm-%1$td]"           <calendar> { channel="icalendar:eventfilter:today:result_0#begin" }
DateTime first_event_until_today        "first until [%1$tT, %1$tY-%1$tm-%1$td]"        <calendar> { channel="icalendar:eventfilter:today:result_0#end" }

String   second_event_name_today        "second event [%s]"                             <calendar> { channel="icalendar:eventfilter:today:result_1#title" }
DateTime second_event_at_today          "second at [%1$tT, %1$tY-%1$tm-%1$td]"          <calendar> { channel="icalendar:eventfilter:today:result_1#begin" }
DateTime second_event_until_today       "second until [%1$tT, %1$tY-%1$tm-%1$td]"       <calendar> { channel="icalendar:eventfilter:today:result_1#end" }

String   third_event_name_today         "third event [%s]"                              <calendar> { channel="icalendar:eventfilter:today:result_2#title" }
DateTime third_event_at_today           "third at [%1$tT, %1$tY-%1$tm-%1$td]"           <calendar> { channel="icalendar:eventfilter:today:result_2#begin" }
DateTime third_event_until_today        "third until [%1$tT, %1$tY-%1$tm-%1$td]"        <calendar> { channel="icalendar:eventfilter:today:result_2#end" }


// TOMORROW
String   first_event_name_tomorrow      "first event [%s]"                              <calendar> { channel="icalendar:eventfilter:tomorrow:result_0#title" }
DateTime first_event_at_tomorrow        "first at [%1$tT, %1$tY-%1$tm-%1$td]"           <calendar> { channel="icalendar:eventfilter:tomorrow:result_0#begin" }
DateTime first_event_until_tomorrow     "first until [%1$tT, %1$tY-%1$tm-%1$td]"        <calendar> { channel="icalendar:eventfilter:tomorrow:result_0#end" }

String   second_event_name_tomorrow     "second event [%s]"                             <calendar> { channel="icalendar:eventfilter:tomorrow:result_1#title" }
DateTime second_event_at_tomorrow       "second at [%1$tT, %1$tY-%1$tm-%1$td]"          <calendar> { channel="icalendar:eventfilter:tomorrow:result_1#begin" }
DateTime second_event_until_tomorrow    "second until [%1$tT, %1$tY-%1$tm-%1$td]"       <calendar> { channel="icalendar:eventfilter:tomorrow:result_1#end" }

String   third_event_name_tomorrow      "third event [%s]"                              <calendar> { channel="icalendar:eventfilter:tomorrow:result_3#title" }
DateTime second_event_at_tomorrow       "third at [%1$tT, %1$tY-%1$tm-%1$td]"           <calendar> { channel="icalendar:eventfilter:tomorrow:result_3#begin" }
DateTime second_event_until_tomorrow    "third until [%1$tT, %1$tY-%1$tm-%1$td]"        <calendar> { channel="icalendar:eventfilter:tomorrow:result_3#end" }


// DAY 2
String   first_event_name_day2          "first event [%s]"                              <calendar> { channel="icalendar:eventfilter:day2:result_0#title" }
DateTime first_event_at_day2            "first at [%1$tT, %1$tY-%1$tm-%1$td]"           <calendar> { channel="icalendar:eventfilter:day2:result_0#begin" }
DateTime first_event_until_day2         "first until [%1$tT, %1$tY-%1$tm-%1$td]"        <calendar> { channel="icalendar:eventfilter:day2:result_0#end" }

String   second_event_name_day2         "second event [%s]"                             <calendar> { channel="icalendar:eventfilter:day2:result_1#title" }
DateTime second_event_at_day2           "second at [%1$tT, %1$tY-%1$tm-%1$td]"          <calendar> { channel="icalendar:eventfilter:day2:result_1#begin" }
DateTime second_event_until_day2        "second until [%1$tT, %1$tY-%1$tm-%1$td]"       <calendar> { channel="icalendar:eventfilter:day2:result_1#end" }

String   third_event_name_day2          "third event [%s]"                              <calendar> { channel="icalendar:eventfilter:day2:result_3#title" }
DateTime second_event_at_day2           "third at [%1$tT, %1$tY-%1$tm-%1$td]"           <calendar> { channel="icalendar:eventfilter:day2:result_3#begin" }
DateTime second_event_until_day2        "third until [%1$tT, %1$tY-%1$tm-%1$td]"        <calendar> { channel="icalendar:eventfilter:day2:result_3#end" }

I tried it with different refreshTimes and also checked the *.ics file - everything seems fine and all events (and start- and end-times) showing up there.

Did I anything wrong here?