howanghk / homebridge-ewelink

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

Many errors in logs and action not always taken into account #36

Closed JacVid closed 5 years ago

JacVid commented 5 years ago

Hello,

thanks a lot for your work ! It is really helpfull to be able to use ewelink devices through HomeKit.

I've been using your plugin for more than 6 month now, and in my case, during the last weeks, I get errors in the logs. Here under an exemple :

[6/30/2019, 1:12:43 PM] [eWeLink] WebSocket messge received:  {"action":"update","deviceid":"10005XXXXX","apikey":"8b2d1c89-55fe-43b7-92f1-865384XXXXXX","userAgent":"app","sequence":"1561893162744","ts":0,"params":{"switch":"on","partnerApikey":"ac0bcf93-23b8-4448-a3la-dc315498bkd9"},"tempRec":"10005XXXXX"}
[6/30/2019, 1:12:43 PM] [eWeLink] Updating recorded Characteristic.On for [Portail ] to [true]. No request will be sent to the device.
[6/30/2019, 1:12:43 PM] [eWeLink] Setting power state to [on] for device [Portail ]
[6/30/2019, 1:12:43 PM] [eWeLink] WebSocket messge received:  {"error":0,"deviceid":"10005XXXXX","apikey":"8b2d1c89-55fe-43b7-92f1-865384XXXXXX","sequence":"1561893163277"}
[6/30/2019, 1:12:44 PM] [eWeLink] WebSocket messge received:  {"action":"update","deviceid":"10005XXXXX","apikey":"8b2d1c89-55fe-43b7-92f1-865384XXXXXX","userAgent":"device","ts":0,"params":{"switch":"off"},"from":"device"}
[6/30/2019, 1:12:44 PM] [eWeLink] Updating recorded Characteristic.On for [Portail ] to [false]. No request will be sent to the device.
[6/30/2019, 1:12:44 PM] [eWeLink] Setting power state to [off] for device [Portail ]
[6/30/2019, 1:12:44 PM] [eWeLink] WebSocket messge received:  {"error":0,"deviceid":"10005XXXXX","apikey":"8b2d1c89-55fe-43b7-92f1-865384XXXXXX","sequence":"1561893164010"}
[6/30/2019, 1:13:21 PM] [eWeLink] Requesting power state for [Portail ]
[6/30/2019, 1:13:22 PM] [eWeLink] API reported that [Portail ] is Off

Any idea of the problem ?

Thank you.

Jack

howanghk commented 5 years ago

Hi @JacVid, those are not errors, they are perfectly normal.