I created 2 events the other day based on a thread which talked about keeping a Cooper Master and Accessory switch in sync. The two events are identical except for the which device initially triggers them and one of them is shown directly below. It's pretty simple in that when (in this case) the value of the Switch changes or becomes set or changed (I just realized I may be able to do what I want with just a changed value and not set but that shouldn't cause what I am seeing) I run a script which looks at the values of both the master and accessory switch and if the other is not the same it sets it to what this one is. There is logic to avoid continuing recurrence when both values are the same. The other event does the same just the other way around. This has and still is working just fine. If I turn on or off one switch the status of the other is updated and HS see's the updates and all works great.
However I noticed today that the events are firing on their own as shown in the filtered view directly below. Most of this was at night with no one awake to touch any switches. And from looking at all of these triggers the last few days most (not 100%) are almost exactly 1 hour apart which happens to be their polling interval. Another odd thing is that sometimes the events fire in pairs (master and accessory) and sometimes it is one or the other as shown directly below.
If you look at the log for one of the events you can clearly see there was no manual or programmatic event associated with it that should have triggered the event.
So why is this event being triggered? It appears to me an artifact of the polling but why would polling a device trigger an event that looks for a set or change?
However I noticed today that the events are firing on their own as shown in the filtered view directly below. Most of this was at night with no one awake to touch any switches. And from looking at all of these triggers the last few days most (not 100%) are almost exactly 1 hour apart which happens to be their polling interval. Another odd thing is that sometimes the events fire in pairs (master and accessory) and sometimes it is one or the other as shown directly below.
If you look at the log for one of the events you can clearly see there was no manual or programmatic event associated with it that should have triggered the event.
So why is this event being triggered? It appears to me an artifact of the polling but why would polling a device trigger an event that looks for a set or change?
Comment