SonoffLAN icon indicating copy to clipboard operation
SonoffLAN copied to clipboard

LAN Mode shows to be working but relay not getting triggered

Open CoMMyz opened this issue 1 year ago • 6 comments

With the latest version 3.1.0 and latest HA 2022.7.6 if Internet access is lost the LAN mode shows to be working and you can use the toggles to switch ON/OFF (in my case a 2P breaker coolkit PSF-X67 Firmware: 3.5.0) however the actual relay on the device does not switch - you cannot hear any clicking sound firing. Wireshark shows proper communication between HA and the device.

Once the internet is restored the relay starts working normally again.

CoMMyz avatar Jul 22 '22 20:07 CoMMyz

Do you have another Sonoff devices? Maybe this is a problem with only one model.

AlexxIT avatar Jul 25 '22 18:07 AlexxIT

I have 1P breaker which is similar and will test it - is there any way to debug the communication maybe i can assist to patch it for this device somehow? Thanks

CoMMyz avatar Jul 25 '22 19:07 CoMMyz

https://github.com/AlexxIT/SonoffLAN#issues

AlexxIT avatar Jul 25 '22 19:07 AlexxIT

sonoff-acbaef0e8265af4f9b5096a42e68740a-2P-Test1-7d41673d4d699767918f5654d19822cc.json.txt

Attached diagnostics of the device.

System health page shows: Sonoff Version 3.1.0 (b53f6be) Cloud devices online 1 / 1 Local devices online 1 / 1 Debug page – more info

More info / debug page shows as attached : debugLogs.txt

At 03:16:50 the internet was switched off but the breaker was responding fine. Once the it realized that it lost cloud mode and started blinking on the led the breaker was responding to the commands with no errors as shown in the log still showing online in lan mode but the relay was not in fact working (no clicking/switching).

Additionally the "Voltage" value is properly reported without cloud even after it stops working.

CoMMyz avatar Jul 29 '22 00:07 CoMMyz

But relay change its status in respond messages:

03:16:52 - 03:17:28: switch on
03:17:37 - 03:17:38: switch off
03:17:40 - 03:17:40: switch on

It seems to work properly at the API level. If it doesn't actually work, you need to write to the manufacturer...

AlexxIT avatar Jul 29 '22 07:07 AlexxIT

This must be some kind of firmware issue and not an API thing - thanks!

CoMMyz avatar Jul 29 '22 09:07 CoMMyz

Please reopen the issue if it is still relevant

AlexxIT avatar Mar 30 '23 11:03 AlexxIT