Device Refresh() causes event & trigger

For devices that need to get polled based on a schedule to check state, such as this Meross Garage Door Opener for which Duncan has written a great driver…

But I have noticed that ever scheduled refresh results in an event as though the state has changed, and any trigger based on the devices state changed get triggered, even though the state has not changed since last refresh / polling.

Any way to not cause every refresh to be seen as a state change?

Remove this:

isStateChange: true

From lines 130 and 131 in the code and it won’t trigger an event unless it has actually changed

2 Likes

Thanks a mill @bcopeland, did the trick.

1 Like