Platform: RPi 3,
HA OS 15.0
HA Core 2025.4.1
eWeLink Smart Home 1.4.3
Hi all!
I use the eWeLink Smart Home add-on to control the climate in the greenhouse, in particular to open/close the windows using sonoff relays. Last year during the gardening season it worked quite reliably. This year, as the warm season is approaching and I need to reactivate the automation, I noticed that the add-on keeps stopping working. I start it, it works for a while, then I see that it has stopped again.
The add-on was not really used during the winter, so it is difficult for me to say from what point in time and from what HA version the problem appeared.
I see the following ±/ the same repetitive messages in the add-on log:
[email protected] start /workspace
node index.js
2025-04-09T07:18:47.100Z [INFO] server is running at 3000
2025-04-09T07:18:47.176Z [INFO] Finding local eWeLink devices...
2025-04-09T07:18:47.258Z [INFO] initCkApi loginParams: {"lang":"en","countryCode":"+371","password":"*******","email":"***********@inbox.lv"}
2025-04-09T07:18:50.171Z [INFO] initCkApi result: {"error":0,"msg":"","data":{"user":{"timezone":{"id":"Europe/Riga","offset":2},"accountLevel":20,"levelExpiredAt":1745497338035,"countryCode":"+371","email":"**********@inbox.lv","apikey":"1aa5046a-e783-4ee0-8052-*************","accountConsult":false,"appForumEnterHide":false,"appVersion":"5.14.0","denyRecharge":false,"ipCountry":"LV"},"at":"1abe327ed2d60a2ee05e255ffdb***************","rt":"f3552631a7d63d4946757***************","region":"eu"}}
2025-04-09T07:18:50.192Z [INFO] relogin success
2025-04-09T07:18:50.783Z [ERROR] getDataSync: disabled.json -> 1000f19572 no data
2025-04-09T07:18:50.799Z [ERROR] getDataSync: disabled.json -> 10013a1440 no data
2025-04-09T07:18:50.803Z [INFO] UIID 137 Device updateState: {"bindInfos":{"gaction":["1aa5046a-e783-4ee0-8052-**********_ewelinkGoogleHome"]},"version":8,"init":1,"fwVersion":"1000.2.102","switch":"off","mode":2,"bright":74,"colorTemp":90,"colorR":227,"colorG":66,"colorB":52}
2025-04-09T07:18:50.808Z [ERROR] getDataSync: disabled.json -> 1001396dff no data
2025-04-09T07:18:50.815Z [ERROR] getDataSync: disabled.json -> 10007d1ecf no data
2025-04-09T07:18:50.824Z [ERROR] getDataSync: disabled.json -> 1000698266 no data
2025-04-09T07:18:50.829Z [ERROR] getDataSync: disabled.json -> 1000797d1e no data
2025-04-09T07:18:50.831Z [ERROR] getDataSync: disabled.json -> 10008ab217 no data
2025-04-09T07:18:50.834Z [ERROR] getDataSync: disabled.json -> 1000f18d10 no data
WS:长连接握手成功
WS:连接成功
2025-04-09T07:18:51.289Z [INFO] Start init lib-ha...
2025-04-09T07:18:51.417Z [INFO] WebSocket2Ha connecting...
2025-04-09T07:18:51.454Z [INFO] WebSocket2Ha connect success
2025-04-09T07:20:46.290Z [INFO] HA-WS heart beat result: "pong"
2025-04-09T07:22:46.678Z [INFO] HA-WS heart beat result: "pong"
2025-04-09T07:24:46.741Z [INFO] HA-WS heart beat result: "pong"
2025-04-09T07:26:46.936Z [INFO] HA-WS heart beat result: "pong"
2025-04-09T07:28:47.144Z [INFO] HA-WS heart beat result: "pong"
Killed
npm ERR! code ELIFECYCLE
npm ERR! errno 137
npm ERR! [email protected] start: `node index.js`
npm ERR! Exit status 137
npm ERR!
npm ERR! Failed at the [email protected] start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2025-04-09T07_29_14_723Z-debug.log
After successful start I see the following last messages in the log:
2025-04-09T10:54:04.546Z [INFO] relogin success
2025-04-09T10:54:05.107Z [ERROR] getDataSync: disabled.json -> 1000f19572 no data
2025-04-09T10:54:05.129Z [ERROR] getDataSync: disabled.json -> 10013a1440 no data
2025-04-09T10:54:05.138Z [INFO] UIID 137 Device updateState: {"bindInfos":{"gaction":["1aa5046a-e783-4ee0-8052-1d334c4503b5_ewelinkGoogleHome"]},"version":8,"init":1,"fwVersion":"1000.2.102","switch":"off","mode":2,"bright":74,"colorTemp":90,"colorR":227,"colorG":66,"colorB":52}
2025-04-09T10:54:05.148Z [ERROR] getDataSync: disabled.json -> 1001396dff no data
2025-04-09T10:54:05.179Z [ERROR] getDataSync: disabled.json -> 10007d1ecf no data
2025-04-09T10:54:05.204Z [ERROR] getDataSync: disabled.json -> 1000698266 no data
2025-04-09T10:54:05.213Z [ERROR] getDataSync: disabled.json -> 1000797d1e no data
2025-04-09T10:54:05.218Z [ERROR] getDataSync: disabled.json -> 10008ab217 no data
2025-04-09T10:54:05.224Z [ERROR] getDataSync: disabled.json -> 1000f18d10 no data
WS:长连接握手成功
WS:连接成功
2025-04-09T10:54:05.801Z [INFO] Start init lib-ha...
2025-04-09T10:54:06.086Z [INFO] WebSocket2Ha connecting...
2025-04-09T10:54:06.164Z [INFO] WebSocket2Ha connect success
2025-04-09T10:54:10.473Z [ERROR] getDataSync: disabled.json -> 1000f19572 no data
2025-04-09T10:54:10.478Z [ERROR] getDataSync: disabled.json -> 10013a1440 no data
2025-04-09T10:54:10.479Z [INFO] UIID 137 Device updateState: {"bindInfos":{"gaction":["1aa5046a-e783-4ee0-8052-1d334c4503b5_ewelinkGoogleHome"]},"version":8,"init":1,"fwVersion":"1000.2.102","switch":"off","mode":2,"bright":74,"colorTemp":90,"colorR":227,"colorG":66,"colorB":52}
2025-04-09T10:54:10.483Z [ERROR] getDataSync: disabled.json -> 1001396dff no data
2025-04-09T10:54:10.486Z [ERROR] getDataSync: disabled.json -> 10007d1ecf no data
2025-04-09T10:54:10.503Z [ERROR] getDataSync: disabled.json -> 1000698266 no data
2025-04-09T10:54:10.508Z [ERROR] getDataSync: disabled.json -> 1000797d1e no data
2025-04-09T10:54:10.512Z [ERROR] getDataSync: disabled.json -> 10008ab217 no data
2025-04-09T10:54:10.517Z [ERROR] getDataSync: disabled.json -> 1000f18d10 no data
2025-04-09T10:54:10.569Z [ERROR] getDataSync: diy.json -> no data
WS:长连接握手成功
WS:连接成功
2025-04-09T10:54:05.801Z [INFO] Start init lib-ha...
2025-04-09T10:54:06.086Z [INFO] WebSocket2Ha connecting...
2025-04-09T10:54:06.164Z [INFO] WebSocket2Ha connect success
2025-04-09T10:54:10.473Z [ERROR] getDataSync: disabled.json -> 1000f19572 no data
2025-04-09T10:54:10.478Z [ERROR] getDataSync: disabled.json -> 10013a1440 no data
2025-04-09T10:54:10.479Z [INFO] UIID 137 Device updateState: {"bindInfos":{"gaction":["1aa5046a-e783-4ee0-8052-1d334c4503b5_ewelinkGoogleHome"]},"version":8,"init":1,"fwVersion":"1000.2.102","switch":"off","mode":2,"bright":74,"colorTemp":90,"colorR":227,"colorG":66,"colorB":52}
2025-04-09T10:54:10.483Z [ERROR] getDataSync: disabled.json -> 1001396dff no data
2025-04-09T10:54:10.486Z [ERROR] getDataSync: disabled.json -> 10007d1ecf no data
2025-04-09T10:54:10.503Z [ERROR] getDataSync: disabled.json -> 1000698266 no data
2025-04-09T10:54:10.508Z [ERROR] getDataSync: disabled.json -> 1000797d1e no data
2025-04-09T10:54:10.512Z [ERROR] getDataSync: disabled.json -> 10008ab217 no data
2025-04-09T10:54:10.517Z [ERROR] getDataSync: disabled.json -> 1000f18d10 no data
2025-04-09T10:54:10.569Z [ERROR] getDataSync: diy.json -> no data
Even when it is working, it is behaving somehow strange and inconsistent.
On my dashboard panel if I click on the switch associated with a sonoff relay, it is changing its state form off to on and vice versa. Whereas if I do the same on the ewelink add-on web cockpit, the switch is not visually changing its state after click. But in fact the signal reaches the ewelink cloud, and on my mobile ewelink app I see the reaction. I see the changed state also if I just reopen web cockpit. It is not 100% reproducible issue. In rare cases it is changing visual state immediately as expected.
In the log I observe a lot of messages like this even when add-on is working.
2025-04-09T11:02:35.707Z [ERROR] getDataSync: disabled.json -> 10007d1ecf no data
Not sure if it is ok.
While I was writing this message I got the following message in the server log:
Logger: homeassistant.components.websocket_api.http.connection
Source: components/websocket_api/http.py:533
integration: Home Assistant WebSocket API (documentation, issues)
First occurred: 14:08:54 (28 occurrences)
Last logged: 14:14:50
[547315922064] from 192.168.2.129: Disconnected: Did not receive auth message within 10 seconds
[547315920480] from 192.168.2.129: Disconnected: Did not receive auth message within 10 seconds
[547315924080] from 192.168.2.129: Disconnected: Did not receive auth message within 10 seconds
[547314769568] from 192.168.2.129: Disconnected: Did not receive auth message within 10 seconds
[547315924224] from 192.168.2.129: Disconnected: Did not receive auth message within 10 seconds
And another undervoltage warning preceding it:
Can it be a reason of websocket api connection loss? I’m not sure because I’ve seen the same errors throughout the entire time HA has been running. It was not affecting anything last year, for instance.
In the add-on log I see now the following:
2025-04-09T11:08:12.919Z [INFO] Start init lib-ha...
2025-04-09T11:08:12.983Z [ERROR] WebSocket2Ha error: Error: Unexpected server response: 502
2025-04-09T11:08:12.987Z [INFO] WebSocket2Ha will close
2025-04-09T11:10:10.736Z [WARN] Could not connect to HA-WS, please restart addon
2025-04-09T11:10:10.847Z [INFO] HA-WS heart beat result: -1
2025-04-09T11:10:11.124Z [WARN] Please check HA running state
2025-04-09T11:12:11.048Z [WARN] Could not connect to HA-WS, please restart addon
2025-04-09T11:12:11.185Z [INFO] HA-WS heart beat result: -1
2025-04-09T11:12:12.826Z [ERROR] getDataSync: disabled.json -> 1000f19572 no data
2025-04-09T11:12:12.838Z [ERROR] getDataSync: disabled.json -> 10013a1440 no data
2025-04-09T11:12:12.842Z [INFO] UIID 137 Device updateState: {"bindInfos":{"gaction":["1aa5046a-e783-4ee0-8052-********_ewelinkGoogleHome"]},"version":8,"init":1,"fwVersion":"1000.2.102","switch":"off","mode":2,"bright":74,"colorTemp":90,"colorR":227,"colorG":66,"colorB":52}
2025-04-09T11:12:12.847Z [ERROR] getDataSync: disabled.json -> 1001396dff no data
2025-04-09T11:12:12.853Z [ERROR] getDataSync: disabled.json -> 10007d1ecf no data
2025-04-09T11:12:12.867Z [ERROR] getDataSync: disabled.json -> 1000698266 no data
2025-04-09T11:12:12.873Z [ERROR] getDataSync: disabled.json -> 1000797d1e no data
2025-04-09T11:12:12.879Z [ERROR] getDataSync: disabled.json -> 10008ab217 no data
2025-04-09T11:12:12.884Z [ERROR] getDataSync: disabled.json -> 1000f18d10 no data
2025-04-09T11:14:11.786Z [INFO] HA-WS heart beat result: "pong"
2025-04-09T11:16:12.074Z [INFO] HA-WS heart beat result: "pong"
2025-04-09T11:18:12.340Z [INFO] HA-WS heart beat result: "pong"
2025-04-09T11:12:12.884Z [ERROR] getDataSync: disabled.json -> 1000f18d10 no data
2025-04-09T11:14:11.786Z [INFO] HA-WS heart beat result: "pong"
2025-04-09T11:16:12.074Z [INFO] HA-WS heart beat result: "pong"
2025-04-09T11:18:12.340Z [INFO] HA-WS heart beat result: "pong"
Any ideas how to fix it would be highly appreciated.
Thanks!