homebridge-plugins / homebridge-ewelink

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

[Sonoff relay]device update failed as Web socket is not open - try again after a few seconds at default #607

Open rukie78 opened 1 week ago

rukie78 commented 1 week ago

I installed homebridge on a raspberry pi 4 and I have the problem described in the title. I mention that it is Sonoff equipment (relay, temperature sensor) that are not in the same network as my system and are on different accounts in other networks. On the Ewilink application I can manage them (start/stop) but in Homebridge they only appear with the last status seen after restarting the plugin. When I try to switch from the application I get the message "[ [Ventilatoare Et2] device update failed as Web socket is not open - try again after a few seconds at default.sendUpdate (file:///var/lib/homebridge/node_modules/homebridge-ewelink/lib/connection/ws.js:345:13)."

[10/9/2024, 10:03:34 AM] [eWeLink] Initialising plugin v12.3.1 | System linux | Node v20.17.0 | HB v1.8.4 | HAPNodeJS v0.12.2... [10/9/2024, 10:03:35 AM] [eWeLink] Plugin initialised. Setting up accessories.... [10/9/2024, 10:03:35 AM] Homebridge v1.8.4 (HAP v0.12.2) (eWeLink) is running on port 45971. [10/9/2024, 10:03:35 AM]

NOTICE TO USERS AND PLUGIN DEVELOPERS

Homebridge 2.0 is on the way and brings some breaking changes to existing plugins. Please visit the following link to learn more about the changes and how to prepare: https://github.com/homebridge/homebridge/wiki/Updating-To-Homebridge-v2.0

[10/9/2024, 10:03:35 AM] [eWeLink] Fetching devices from eWeLink home/id xxxxxxxxxxxxxxxxx [10/9/2024, 10:03:35 AM] [eWeLink] Fetching devices from eWeLink home/id xxxxxxxxxxxxxxxxx [10/9/2024, 10:03:44 AM] [eWeLink] LAN monitoring started. [10/9/2024, 10:49:03 AM] [eWeLink] [Temp rack ET. 2] initialising with options {"humidityOffset":0,"logging":"standard","lowBattThreshold":25,"offset":0}. [10/9/2024, 10:49:03 AM] [eWeLink] [Temp rack ET. 2] initialised and LAN mode unavailable as not discovered/supported [1770:ZCL_HA_DEVICEID_TEMPERATURE_SENSOR]. [10/9/2024, 10:49:03 AM] [eWeLink] [Termometru rack taxe] initialising with options {"humidityOffset":0,"logging":"standard","lowBattThreshold":25,"offset":0}. [10/9/2024, 10:49:03 AM] [eWeLink] [Termometru rack taxe] initialised and LAN mode unavailable as not discovered/supported [1770:ZCL_HA_DEVICEID_TEMPERATURE_SENSOR]. [10/9/2024, 10:49:03 AM] [eWeLink] [Ventilatoate Taxe] initialising with options {"inUsePowerThreshold":0,"logging":"standard","showAs":"default"}. [10/9/2024, 10:49:03 AM] [eWeLink] [Ventilatoate Taxe] initialised and LAN mode unavailable as not discovered/supported [1:BASICR2]. [10/9/2024, 10:49:03 AM] [eWeLink] [Ventilatoare Et2] initialising with options {"inUsePowerThreshold":0,"logging":"standard","showAs":"default"}. [10/9/2024, 10:49:03 AM] [eWeLink] [Ventilatoare Et2] initialised and LAN mode unavailable as not discovered/supported [1:BASICR2]. [10/9/2024, 10:49:03 AM] [eWeLink] [AC server Et2] initialising with options {"inUsePowerThreshold":0,"logging":"standard","showAs":"default"}. [10/9/2024, 10:49:03 AM] [eWeLink] [AC server Et2] initialised and LAN mode unavailable as not discovered/supported [1:BASICR2]. [10/9/2024, 10:49:03 AM] [eWeLink] [Contor Rack Et2] has been added to Homebridge. [10/9/2024, 10:49:03 AM] [eWeLink] [Contor Rack Et2] initialising with options {"inUsePowerThreshold":0,"logging":"standard","showAs":"default"}. [10/9/2024, 10:49:03 AM] [eWeLink] [Contor Rack Et2] initialised and LAN mode unavailable as not discovered/supported [190:POWR316D]. [10/9/2024, 10:49:03 AM] [eWeLink] [RE5V1Calculator] has been added to Homebridge. [10/9/2024, 10:49:03 AM] [eWeLink] [RE5V1Calculator] initialising with options {"inUsePowerThreshold":0,"logging":"standard","showAs":"default"}. [10/9/2024, 10:49:03 AM] [eWeLink] [RE5V1Calculator] initialised and LAN mode unavailable as not discovered/supported [1:RE5V1C].