Sonoff Stopped Working

My sonoff integration has stopped working, for no reason that I can determine.

I have read the issues here, and the posts/threads elsewhere, I’ve made the async app=1 changes, tried both auto and cloud logins, but can’t get it to work.

I can confirm that I can log into my account from the ewelink web site.

Running Proxmox with:
HAOS 11.5
Core 2024.1.6

Here is the debug:


2024-02-06 09:55:40 [D] SysInfo: {'installation_type': 'Home Assistant OS', 'version': '2024.1.6', 'dev': False, 'hassio': True, 'virtualenv': False, 'python_version': '3.11.6', 'docker': True, 'arch': 'x86_64', 'timezone': 'America/New_York', 'os_name': 'Linux', 'os_version': '6.1.74-haos', 'user': 'root', 'supervisor': '2024.01.1', 'host_os': 'Home Assistant OS 11.5', 'docker_version': '24.0.7', 'chassis': 'vm', 'sonoff_version': '3.5.4 (a4a8c5f)'}
2024-02-06 09:56:11 [W] Can't login with mode: auto|  File "/config/custom_components/sonoff/__init__.py", line 207, in async_setup_entry|    await registry.cloud.login(username, password)|TimeoutError|

And the Log:

Logger: custom_components.sonoff
Source: custom_components/sonoff/__init__.py:207
Integration: Sonoff ([documentation](https://github.com/AlexxIT/SonoffLAN), [issues](http://mtdale.dyndns.org:8123/api/sonoff/cf5eaee3-15df-4e98-90d3-d15b835de0fd))
First occurred: 9:56:11 AM (6 occurrences)
Last logged: 10:01:21 AM


Can't login with mode: auto
Traceback (most recent call last):
  File "/config/custom_components/sonoff/__init__.py", line 207, in async_setup_entry
    await registry.cloud.login(username, password)
  File "/config/custom_components/sonoff/core/ewelink/cloud.py", line 145, in login
    r = await self.session.post(
        ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/aiohttp/client.py", line 504, in _request
    with timer:
  File "/usr/local/lib/python3.11/site-packages/aiohttp/helpers.py", line 735, in __exit__
    raise asyncio.TimeoutError from None
TimeoutError

I am lost as to how to continue troubleshooting.

Any help would sure be appreciated.

What is the version of Sonoff are you at?

3.5.4

I believe that is the latest, which was supposed to resolve this issue.

Thanks.

Your login is failing to the eWeLink site, that is why it stopped working. If using auto mode it must sign into eWeLink to get the devices so it can poll for info.

Check you config.yaml for login credentials, are they correct? (Phone Number or accountID with password)

Yes, configuration.yaml has the correct login info for sonoff:

I downgraded to 2023.12.3 and it works again.

Something changed between 2023.12.3 and 2024 that prevents it working?

Thank you.

1 Like