delid4ve / openhab-sonoff-compiled

10 stars 0 forks source link

Refresh interval undesirable #4

Open jotaemesousa opened 3 years ago

jotaemesousa commented 3 years ago

Hi,

First of all, let me thank you (and the all who contribute for this project) for your exelent work. I tried on my home and it works with most of my sensors / actuators.

I have a Sonoff ZB bridge to capture door sensors, switches and PIR sensors and I created some rules to test automation. I start to notice that, from time to time (intervals of 2h) I receive a point from a ZB switch which triggers the automation rule on OH. Some, do you have some refresh period on the binding code to send periodically the data or is it data sent from ewelink acount?

Thanks, in advance, for your time.

João Sousa

delid4ve commented 2 years ago

its sent directly by the device over LAN multicast (local) or via websocket (WAN, ewelink servers). No way I can change this.

If you send me what your triggering on / the rule then ill have a look. assuming it triggers when you dont want it to.

jotaemesousa commented 2 years ago

Hi delid4ve,

I would like to capture the the single click, duble-click and long click that the button sends and with that information make adjustments on a light ( like switch on or off, change its intensity). but what wappens is that, if I do a single click, I receive that click and then, a few hours later, I receive the same information, even if I don't press the button. So, this behaviour is undesirable if I want to capture the same action to Enable a light ( if it is disable) and disable the same light ( if it is enabled). Could you make some changes to publish an invalid value when the state value is sent without pressing the button?

Thanks, in advance, for your time.

João Sousa