AlexxIT / SonoffLAN

Control Sonoff Devices with eWeLink (original) firmware over LAN and/or Cloud from Home Assistant
https://github.com/AlexxIT/Blog
MIT License
2.75k stars 417 forks source link

Cloud based switches and sensors became unavailable #1476

Closed adamnagybig closed 2 months ago

adamnagybig commented 2 months ago

config_entry-sonoff-01J6MA1HPBW0MH3GNPQT4J9H6X.json

I Have SonoffLan installed more than 1 year ago and there were no problems but since 2 months ago all my switches and sensors which are connected via cloud ( sonoff is on auto mode ) are becaming available and after 5 second unavailable and this goes in a loop since 2 months. In paralel I was checking the ewelink software and there are no problems.

Today i have deleted everything from HA and made a new setup and the result was the same.

Can you please offer support to make it stable again or maybe something is wrong on the ewelink side that it is not communicating stable ?

Claudiotas commented 2 months ago

I have a similar problem but the devices are always unavailable All my sonoff ZigBee devices are down in HA, sonoff wifi devices are good and on their app are all available (wifi and ZigBee)

gedm commented 2 months ago

Hello, I'm seeing similar behavior with my WIFI devices. Also, they indicate not available in HA but work fine in Ewelink. Please let me know what information is needed to help resolve the issue.

AlexxIT commented 2 months ago
Traceback (most recent call last):
  File \"/config/custom_components/sonoff/core/ewelink/cloud.py\", line 598, in _process_ws_msg
    self._set_response(data[\"sequence\"], data[\"error\"])
                       ~~~~^^^^^^^^^^^^
KeyError: 'sequence'
AlexxIT commented 2 months ago
Traceback (most recent call last):
  File \"/config/custom_components/sonoff/__init__.py\", line 208, in async_setup_entry
    devices = await registry.cloud.get_devices(homes)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File \"/config/custom_components/sonoff/core/ewelink/cloud.py\", line 433, in get_devices
    raise Exception(resp[\"msg\"])
Exception: cannot found access token info
AlexxIT commented 2 months ago

Error is duplicate #1460 Fixed in master version

AlexxIT commented 2 months ago

https://github.com/AlexxIT/SonoffLAN/releases/tag/v3.8.0