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.58k stars 405 forks source link

Multi homes account issue since HA 2024.3.3 #1370

Closed MaoZ1993 closed 2 months ago

MaoZ1993 commented 3 months ago

Hi AlexxIT, My account is a multi homes account, my secondary home's devices become unavailable, and not loading correct home list in configutation menu since recent HA 2024.3.3 upgrade.

Could you have a look into this issue?

SonoffLAN Version: 3.6.0 HA version 2024.3.3

home-assistant_sonoff_2024-03-27T11-53-20.932Z.log.zip

FrancescoTalotta commented 3 months ago

Starting from today I get this error Api Login Response:{"error":408,"msg":"appid has expired","data":null} in OH4. Maybe it's connected to your issue....How to get new appid and appsecret keys?

Stratos858 commented 3 months ago

I also get this

{'error': 406, 'reason': 'Authentication Failed', 'apikey':

pwshaheen commented 3 months ago

Just adding on I also get this issue after upgrading to HA 2024.3.3

MaoZ1993 commented 3 months ago

Another error just pop up: This error originated from a custom integration.

Logger: custom_components.sonoff.core.ewelink.cloud Source: custom_components/sonoff/core/ewelink/cloud.py:360 integration: Sonoff (documentation, issues) First occurred: 12:56:12 AM (1 occurrences) Last logged: 12:56:12 AM

Cloud WS Connection error: Cannot connect to host us-dispa.coolkit.cc:443 ssl:default [Try again]

AlexxIT commented 2 months ago

Some problems with Authentication:

2024-03-26 20:22:25.279 ERROR (MainThread) [custom_components.sonoff.core.ewelink.cloud] Cloud WS exception
Traceback (most recent call last):
  File "/config/custom_components/sonoff/core/ewelink/cloud.py", line 352, in connect
    raise Exception(resp)
Exception: {'error': 406, 'reason': 'Authentication Failed', 'apikey': 'xxx', 'sequence': '1711444945124', 'actionName': 'userOnline'}

Some problems with connection to Cloud:

Cloud WS Connection error: Cannot connect to host us-dispa.coolkit.cc:443 ssl:default [Try again]

Integration can't do anything about this

AlexxIT commented 2 months ago

PS. "Authentication Failed" can be if you logged in with same account from another place.