bwp91 / homebridge-ewelink

Homebridge plugin to integrate eWeLink devices into HomeKit.
MIT License
384 stars 126 forks source link

eWeLink Bridge eWeLink WARNING WS login failed as WebSocket closed with reason: undefined #535

Open trhessel opened 5 months ago

trhessel commented 5 months ago

Details of your setup.

I am currently using HOOBS with the ewelink plugin where every so often I see this in the logs

eWeLink BridgeeWeLinkWARNINGWS login failed as WebSocket closed with reason: undefined (undefined). at WebSocketAsPromised._handleClose (/var/lib/hoobs/ewelinkbridge/node_modules/websocket-as-promised/src/index.js:407:19).

and control of my ewelink devices from homekit/hoobs does not work until I restart the plugin or hoobs. The problem goes away for sometimes, hours or days but comes back again.

I am running Hoobs v4.3.0 on a Pi 4 and I am running v 12.1.0 of the ewelink plugin.

bwp91 commented 5 months ago

Hi @trhessel are you using the same credentials for the ewelink app as for the plugin config?

anon1y4012 commented 5 months ago

Same issue here, @bwp91 I am using the main credentials for the ewelink app. Happy to provide logs.

bjornand1 commented 4 months ago

I am getting the same all the time now:

[2/12/2024, 6:36:14 AM] [eWeLink] WS login failed as WebSocket closed with reason: undefined (undefined). at WebSocketAsPromised._handleClose (/volume1/homebridge/node_modules/homebridge-ewelink/node_modules/websocket-as-promised/src/index.js:407:19).

But the connected Sonoff device still works in Apple Home, so not sure what is going on.

Jeremesk commented 3 months ago

Hi, I am getting this error too, and it does seem to affect Apple Home as I am getting another error when switching off my device from the app:

device update failed as Web socket is not open - try again after a few seconds at default.sendUpdate (file:///usr/local/lib/node_modules/homebridge-ewelink/lib/connection/ws.js:345:13).

ktahatastan commented 3 months ago

i have same issue

itai25 commented 1 month ago

Anyone got it fixed? Getting the same error continuously and no response in both HomeKit and homebridge but if I restart the plugin then the error goes away and everything works for a about a day.