-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
caldavio/caldav-command : multiple "events begin" fired for single calendar event #4694
Comments
creating the issue under openhab2 addons, closing this one |
I was told it was the right place to open the issue, so here it is reopened. confirmed also with a 30 min reload time in caldavio.cfg :
resulting in :
wich off course is an issue if I decide (because say I leave home) to send an "off command" to my heater, I know that in less that 30 min it will receive an "on" again .... |
Also confirmed in earlier version: Your EnvironmentVersion used: openhab 1.8.3, caldav-command 1.8.3 |
hi, found out that adding the following configuration to caldavio.cfg did solve the issue for me : this is however not documented I think |
I added a troubleshooting note to the wiki. |
I am playing with caldav command, to try to trigger my heaters via calendar events. To play faster, I have set the reload time to 1 min in the conf. Issue also with 30 min set, see comment below.
I found out that an "event BEGIN" is triggered every minute during the duration of a calendar event, that is each time the calendar binding refreshes events from the caldav calendar (and while an event is active)
Expected Behavior
If an event has started, it is not supposed to start again even if the binding refreshes the events list. But it must be aware of an event that has already run (and is not running anymore), and that has been "recycled" for a future event to act as if it was a new event
Current Behavior
every time the binding reloads the events list, the "begin" line of the running events is triggered, wich is quit problematic :
my logs (look at the timestamps, I checked and the command WAS sent):
Possible Solution
check the running events before reloading the list from the caldav server, and don't fire the "begin" lines from them if we already have fired them
Steps to Reproduce (for bugs)
caldavio:chauffagecmd:reloadInterval=1
caldavio:chauffagecmd:preloadTime=1440
Context
Your Environment
The text was updated successfully, but these errors were encountered: