denbartman
(Bart Hermans)
August 4, 2021, 1:22pm
1
Situation:
There is a daily event generated from the google calendar (eg: good_morning_routine at 7.00).
One day you want to sleep in and move the item in google calendar to 8.00.
Expected Behavior
The good_morning_routine event gets triggered that day at 8.00 only.
Current Behavior
The good_morning_routine event gets triggered that day at 7.01 and at 8.00 only.
I created a github incident with steps on how to reproduce the issue:
opened 01:18PM - 04 Aug 21 UTC
bug
Situation:
There is a daily event generated from the google calendar (eg: good_… morning_routine at 7.00).
One day you want to sleep in and move the item in google calendar to 8.00.
## Expected Behavior
The good_morning_routine event gets triggered that day at 8.00 only.
## Current Behavior
The good_morning_routine event gets triggered that day at 7.01 and at 8.00 only.
## Steps to Reproduce (for Bugs)
I reproduced this a few times like this:
In google calendar create repeating item in the past (to make it possible to do the test now):
```
Title: TEST_REPEATING_EVENT
Freq: Daily 14:10 – 14:15
Comment: BEGIN:E_Test_Cal:ON
```
Change the repeating event in google Calendar of today to 14:20 – 14:25 and "Save only this occurrence"
The repeating event of today is a little later than the other days:
![image](https://user-images.githubusercontent.com/57780186/128186404-c114f604-f1c5-44cd-8858-fa6b281e781c.png)
After a few minutes (refresh is 3 min) the icaldar items are updated as expected: (Today the event should start at 14:20)
![image](https://user-images.githubusercontent.com/57780186/128186777-86aa6a00-dac4-4bb1-bf41-d0bcd0bd6831.png)
In the log the event is only listed at 14:20 as expected:
```
2021-08-04 14:20:00.583 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'C_Current_Event_Name' changed from K_C to TEST_REPEATING_EVENT
2021-08-04 14:25:00.354 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'C_Current_Event_Name' changed from TEST_REPEATING_EVENT to K_C
```
Un the rules logging however you can see that the rule is triggerd twice:
```
2021-08-04 14:11:05.002 [INFO ] [RULES] - R_Test_Cal
2021-08-04 14:20:00.672 [INFO ] [RULES] - R_Test_Cal
```
Once at the general repeating time of the event and once at the corrected time of the event.
(I did this test a few times and I noticed the repeating trigger is always about a minute after the repeating start time)
## Your Environment
* Version used: openHAB 3.1.0 release build / iCalendar Binding 3.1.0
* Environment name and version: Windows 10 - Azul Java 11.0.11
damihe
(Michael Wodniok)
August 5, 2021, 8:24am
2
I’ll look next week on the issue and communicate on github (as this is no specific question but a bug report).