Sonoff integration toggles on / Off every 15 seconds
marinus61 opened this issue · comments
Hi there,
My sonoff has started to go on / offline every 15 seconds.
Error messages in log are:
1)
File "/config/custom_components/sonoff/core/ewelink/__init__.py", line 363, in update_spm_pow
await self.cloud.send(device, params, timeout=0)
File "/config/custom_components/sonoff/core/ewelink/cloud.py", line 473, in send
"selfApikey": self.auth["user"]["apikey"]
Logger: custom_components.sonoff.core.ewelink.cloud
Kilde: custom_components/sonoff/core/ewelink/cloud.py:576
integration: Sonoff ([dokumentation](https://github.com/AlexxIT/SonoffLAN), [problemer](https://github.com/AlexxIT/SonoffLAN/issues))
Første forekomst: 05.46.17 (259 forekomster)
Senest logget: 08.25.40
You logged in from another place
Denne fejl stammer fra en brugerdefineret integration.
Logger: custom_components.sonoff.core.ewelink.cloud
Kilde: custom_components/sonoff/core/ewelink/cloud.py:607
integration: Sonoff (dokumentation, problemer)
Første forekomst: 05.46.00 (305 forekomster)
Senest logget: 08.25.36
Cloud ERROR: {'error': 400, 'deviceid': 'ab100000a9', 'apikey': '74ca39b6-f663-40d1-89ee-
[home-assistant_2024-07-11T06-25-59.044Z.log](https://github.com/user-attachments/files/16172458/home-assistant_2024-07-11T06-25-59.044Z.log)
730b4ad6e3b5', 'sequence': '1720679015826', 'uid': '74ca39b6-f663-40d1-89ee-730b4ad6e3b5'}
Cloud ERROR: {'error': 400, 'deviceid': 'ab100000a9', 'apikey': '74ca39b6-f663-40d1-89ee-730b4ad6e3b5', 'sequence': '1720679020827', 'uid': '74ca39b6-f663-40d1-89ee-730b4ad6e3b5'}
Cloud ERROR: {'error': 400, 'deviceid': 'ab100000a9', 'apikey': '74ca39b6-f663-40d1-89ee-730b4ad6e3b5', 'sequence': '1720679025829', 'uid': '74ca39b6-f663-40d1-89ee-730b4ad6e3b5'}
Cloud ERROR: {'error': 400, 'deviceid': 'ab100000a9', 'apikey': '74ca39b6-f663-40d1-89ee-730b4ad6e3b5', 'sequence': '1720679130830', 'uid': '74ca39b6-f663-40d1-89ee-730b4ad6e3b5'}
Cloud ERROR: {'error': 400, 'deviceid': 'ab100000a9', 'apikey': '74ca39b6-f663-40d1-89ee-730b4ad6e3b5', 'sequence': '1720679135832', 'uid': '74ca39b6-f663-40d1-89ee-730b4ad6e3b5'}
Setup:
I have two HA instances running, one for each home, Sonoff is setup with two homes, and each home is defined in the Sonoff setup.
Both instances show same error, with "you logged in from another device". However besides the Sonoff HA integration on the two HA systems, no other login are performed.
The 400 error is for the SPM 4relay, that reports an Api error, but since that is only on one of the systems, I has disregarded this error.
Any idea what can cause this.
Marinus
Hello, I am experiencing the same problem, every 15 seconds all the devices turn off and then start again, so on.
Hi there
I add the specific Sonoff log here, to make sure you have all debug information
Hello,
Same here. one minute sonoff devices are connected to wifi, the other minute the network indicator is flashing. when i reload sonoff integraton in home assistant all devices are connected again, but after while still the same issue. ewelink app shows devices are offline and the other minute online, somehow sonoff integration/home assistant makes the devices become offline.
Dan
Hello,
Same here. one minute sonoff devices are connected to wifi, the other minute the network indicator is flashing. when i reload sonoff integraton in home assistant all devices are connected again, but after while still the same issue. ewelink app shows devices are offline and the other minute online, somehow sonoff integration/home assistant makes the devices become offline.
Dan
Hi Dan,
our issue is different. Devices are online all the time in ewelink, but in HA, they toggle on/off every 15 seconds. Sonoff integration has been online for more than a year, on two different HA installations, both having same issue, last 1-2 weeks.
Marinus
So. You just "logged in from another place". Just like the error message says.
You using same login/pass in another software. Maybe another hass/addon/smarthome soft/etc.
https://github.com/AlexxIT/SonoffLAN?tab=readme-ov-file#configuration
PS. Ah. You said this in your first msg. You SHOULD use two login/pass pairs. Just share devices from one to another.