howanghk / homebridge-ewelink

Homebridge plugin to control Sonoff relays with OEM firmware
MIT License
81 stars 46 forks source link

Switch stuck in loop #40

Closed aurora7795 closed 4 years ago

aurora7795 commented 4 years ago

I have a single Sonoff light switch set up - in a previous config of my HOOBs, i had it working fine with the plugin but having reinstalled my Hoobs setup, the switch now appears to be getting stuck in a loop when i try turning the switch on and off. I'm getting the following on what appears an infinite loop in my log:

[8/2/2019, 8:12:33 AM] [eWeLink] WebSocket messge received: {"action":"update","deviceid":"100051fa0c","apikey":"b3f0f419-8f93-48ab-a457-2f7f739aeced","userAgent":"app","sequence":"1564729953497","ts":0,"params":{"switch":"on"},"tempRec":"100051fa0c"} [8/2/2019, 8:12:33 AM] [eWeLink] Updating recorded Characteristic.On for [Garage Light Switch] to [true]. No request will be sent to the device. [8/2/2019, 8:12:33 AM] [eWeLink] Setting power state to [on] for device [Garage Light Switch] [8/2/2019, 8:12:33 AM] [eWeLink] WebSocket messge received: {"error":0,"deviceid":"100051fa0c","apikey":"b3f0f419-8f93-48ab-a457-2f7f739aeced","sequence":"1564729953585"} [8/2/2019, 8:12:33 AM] [eWeLink] WebSocket messge received: {"action":"update","deviceid":"100051fa0c","apikey":"b3f0f419-8f93-48ab-a457-2f7f739aeced","userAgent":"app","sequence":"1564729953668","ts":0,"params":{"switch":"on"},"tempRec":"100051fa0c"} [8/2/2019, 8:12:33 AM] [eWeLink] Updating recorded Characteristic.On for [Garage Light Switch] to [true]. No request will be sent to the device. [8/2/2019, 8:12:33 AM] [eWeLink] Setting power state to [on] for device [Garage Light Switch] [8/2/2019, 8:12:33 AM] [eWeLink] WebSocket messge received: {"error":0,"deviceid":"100051fa0c","apikey":"b3f0f419-8f93-48ab-a457-2f7f739aeced","sequence":"1564729953772"} [8/2/2019, 8:12:33 AM] [eWeLink] WebSocket messge received: {"action":"update","deviceid":"100051fa0c","apikey":"b3f0f419-8f93-48ab-a457-2f7f739aeced","userAgent":"app","sequence":"1564729953848","ts":0,"params":{"switch":"on"},"tempRec":"100051fa0c"} [8/2/2019, 8:12:33 AM] [eWeLink] Updating recorded Characteristic.On for [Garage Light Switch] to [true]. No request will be sent to the device. [8/2/2019, 8:12:33 AM] [eWeLink] Setting power state to [on] for device [Garage Light Switch] [8/2/2019, 8:12:34 AM] [eWeLink] WebSocket messge received: {"error":0,"deviceid":"100051fa0c","apikey":"b3f0f419-8f93-48ab-a457-2f7f739aeced","sequence":"1564729953952"}

If i have set the switch to on and try turning it off by clicking the physical button, it is turning the light back on immediately. Any ideas?

howanghk commented 4 years ago

Hi @aurora7795, please install the latest version with

npm install -g homebridge-ewelink-max@latest

and see if it works for you now?

howanghk commented 4 years ago

Closing due to inactivity.