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

4CHPROR3 gets a lot of timeouts in both local and cloud modes #1489

Closed paulius2k closed 2 months ago

paulius2k commented 2 months ago

I have many DUALR3 devices and one 4CHPROR3 device. My HA and IoT devices are on different VLANs, managed by Unifi UDR. Running HASS, versions: Core 2024.9.1 Operating System 13.1 Sonoff v3.8.0

I never have problems with DUALR3 responsiveness - either in cloud or local mode.

But with 4CHPROR3 I get a lot of timeouts. E.g. the switch turns on, but then I can only turn it off after several attempts.

What could be the reason?

E.g. my log of 4CHRPOR3:

    Line 1101: 2024-09-11 15:17:15.094 DEBUG (MainThread) [custom_components.sonoff.core.ewelink.local] 100204d9a9 => Local4 | 192.168.100.106:8081 | None <= {'seq': 543, 'sequence': '1726057031947', 'error': 0}
    Line 1173: 2024-09-11 15:18:47.828 DEBUG (MainThread) [custom_components.sonoff.core.ewelink.local] 100204d9a9 => Local4 | 192.168.100.106:8081 | None !! Timeout 5
    Line 1174: 2024-09-11 15:18:55.043 DEBUG (MainThread) [custom_components.sonoff.core.ewelink.local] 100204d9a9 => Local4 | 192.168.100.106:8081 | None <= {'seq': 543, 'sequence': '1726057132830', 'error': 0}
    Line 1241: 2024-09-11 15:20:15.164 DEBUG (MainThread) [custom_components.sonoff.core.ewelink.local] 100204d9a9 => Local4 | 192.168.100.106:8081 | None <= {'seq': 543, 'sequence': '1726057211956', 'error': 0}
    Line 1321: 2024-09-11 15:21:45.079 DEBUG (MainThread) [custom_components.sonoff.core.ewelink.local] 100204d9a9 => Local4 | 192.168.100.106:8081 | None <= {'seq': 543, 'sequence': '1726057301960', 'error': 0}
    Line 1394: 2024-09-11 15:23:15.130 DEBUG (MainThread) [custom_components.sonoff.core.ewelink.local] 100204d9a9 => Local4 | 192.168.100.106:8081 | None <= {'seq': 543, 'sequence': '1726057391965', 'error': 0}
    Line 1427: 2024-09-11 15:24:09.167 DEBUG (MainThread) [custom_components.sonoff.core.ewelink.local] 100204d9a9 => Local4 | 192.168.100.106:8081 | {'switches': [{'outlet': 2, 'switch': 'on'}]} !! Timeout 1
    Line 1429: 2024-09-11 15:24:09.248 DEBUG (MainThread) [custom_components.sonoff.core.ewelink] 100204d9a9 <= Local3 | 192.168.100.106:8081 | {'sledOnline': 'on', 'configure': [{'startup': 'off', 'outlet': 0}, {'startup': 'off', 'outlet': 1}, {'startup': 'off', 'outlet': 2}, {'startup': 'off', 'outlet': 3}], 'pulses': [{'pulse': 'off', 'width': 1000, 'outlet': 0}, {'pulse': 'off', 'width': 1000, 'outlet': 1}, {'pulse': 'off', 'width': 1000, 'outlet': 2}, {'pulse': 'off', 'width': 1000, 'outlet': 3}], 'switches': [{'switch': 'off', 'outlet': 0}, {'switch': 'off', 'outlet': 1}, {'switch': 'on', 'outlet': 2}, {'switch': 'off', 'outlet': 3}], 'ssid': 'ssid', 'bssid': 'bssid'} | 543
    Line 1455: 2024-09-11 15:24:22.067 DEBUG (MainThread) [custom_components.sonoff.core.ewelink.local] 100204d9a9 => Local4 | 192.168.100.106:8081 | {'switches': [{'outlet': 2, 'switch': 'off'}]} !! Timeout 1
    Line 1458: 2024-09-11 15:24:30.173 DEBUG (MainThread) [custom_components.sonoff.core.ewelink.local] 100204d9a9 => Local4 | 192.168.100.106:8081 | None <= {'seq': 544, 'sequence': '1726057467071', 'error': 0}
    Line 1460: 2024-09-11 15:24:32.136 DEBUG (MainThread) [custom_components.sonoff.core.ewelink.local] 100204d9a9 => Local4 | 192.168.100.106:8081 | None <= {'seq': 544, 'sequence': '1726057472110', 'error': 0}
    Line 1461: 2024-09-11 15:24:38.958 DEBUG (MainThread) [custom_components.sonoff.core.ewelink.local] 100204d9a9 => Local4 | 192.168.100.106:8081 | {'switches': [{'outlet': 2, 'switch': 'off'}]} <= {'seq': 544, 'sequence': '1726057478822', 'error': 0}
    Line 1462: 2024-09-11 15:24:38.992 DEBUG (MainThread) [custom_components.sonoff.core.ewelink] 100204d9a9 <= Local3 | 192.168.100.106:8081 | {'sledOnline': 'on', 'configure': [{'startup': 'off', 'outlet': 0}, {'startup': 'off', 'outlet': 1}, {'startup': 'off', 'outlet': 2}, {'startup': 'off', 'outlet': 3}], 'pulses': [{'pulse': 'off', 'width': 1000, 'outlet': 0}, {'pulse': 'off', 'width': 1000, 'outlet': 1}, {'pulse': 'off', 'width': 1000, 'outlet': 2}, {'pulse': 'off', 'width': 1000, 'outlet': 3}], 'switches': [{'switch': 'off', 'outlet': 0}, {'switch': 'off', 'outlet': 1}, {'switch': 'off', 'outlet': 2}, {'switch': 'off', 'outlet': 3}], 'ssid': 'ssid', 'bssid': 'bssid'} | 544
    Line 1486: 2024-09-11 15:24:50.371 DEBUG (MainThread) [custom_components.sonoff.core.ewelink.local] 100204d9a9 => Local4 | 192.168.100.106:8081 | None <= {'seq': 545, 'sequence': '1726057490121', 'error': 0}
    Line 1489: 2024-09-11 15:24:54.410 DEBUG (MainThread) [custom_components.sonoff.core.ewelink.local] 100204d9a9 => Local4 | 192.168.100.106:8081 | {'switches': [{'outlet': 2, 'switch': 'on'}]} !! Timeout 1
    Line 1491: 2024-09-11 15:24:55.471 DEBUG (MainThread) [custom_components.sonoff.core.ewelink] 100204d9a9 <= Local3 | 192.168.100.106:8081 | {'sledOnline': 'on', 'configure': [{'startup': 'off', 'outlet': 0}, {'startup': 'off', 'outlet': 1}, {'startup': 'off', 'outlet': 2}, {'startup': 'off', 'outlet': 3}], 'pulses': [{'pulse': 'off', 'width': 1000, 'outlet': 0}, {'pulse': 'off', 'width': 1000, 'outlet': 1}, {'pulse': 'off', 'width': 1000, 'outlet': 2}, {'pulse': 'off', 'width': 1000, 'outlet': 3}], 'switches': [{'switch': 'off', 'outlet': 0}, {'switch': 'off', 'outlet': 1}, {'switch': 'on', 'outlet': 2}, {'switch': 'off', 'outlet': 3}], 'ssid': 'ssid', 'bssid': 'bssid'} | 545
    Line 1498: 2024-09-11 15:25:11.129 DEBUG (MainThread) [custom_components.sonoff.core.ewelink.local] 100204d9a9 => Local4 | 192.168.100.106:8081 | {'switches': [{'outlet': 2, 'switch': 'off'}]} !! Timeout 1
    Line 1510: 2024-09-11 15:25:12.185 DEBUG (MainThread) [custom_components.sonoff.core.ewelink] 100204d9a9 <= Local3 | 192.168.100.106:8081 | {'sledOnline': 'on', 'configure': [{'startup': 'off', 'outlet': 0}, {'startup': 'off', 'outlet': 1}, {'startup': 'off', 'outlet': 2}, {'startup': 'off', 'outlet': 3}], 'pulses': [{'pulse': 'off', 'width': 1000, 'outlet': 0}, {'pulse': 'off', 'width': 1000, 'outlet': 1}, {'pulse': 'off', 'width': 1000, 'outlet': 2}, {'pulse': 'off', 'width': 1000, 'outlet': 3}], 'switches': [{'switch': 'off', 'outlet': 0}, {'switch': 'off', 'outlet': 1}, {'switch': 'off', 'outlet': 2}, {'switch': 'off', 'outlet': 3}], 'ssid': 'ssid', 'bssid': 'bssid'} | 546
    Line 1525: 2024-09-11 15:25:28.129 DEBUG (MainThread) [custom_components.sonoff.core.ewelink.local] 100204d9a9 => Local4 | 192.168.100.106:8081 | {'switches': [{'outlet': 2, 'switch': 'on'}]} !! Timeout 1
    Line 1527: 2024-09-11 15:25:33.165 DEBUG (MainThread) [custom_components.sonoff.core.ewelink.local] 100204d9a9 => Local4 | 192.168.100.106:8081 | None <= {'seq': 547, 'sequence': '1726057533134', 'error': 0}
    Line 1529: 2024-09-11 15:25:37.068 DEBUG (MainThread) [custom_components.sonoff.core.ewelink] 100204d9a9 <= Local3 | 192.168.100.106:8081 | {'sledOnline': 'on', 'configure': [{'startup': 'off', 'outlet': 0}, {'startup': 'off', 'outlet': 1}, {'startup': 'off', 'outlet': 2}, {'startup': 'off', 'outlet': 3}], 'pulses': [{'pulse': 'off', 'width': 1000, 'outlet': 0}, {'pulse': 'off', 'width': 1000, 'outlet': 1}, {'pulse': 'off', 'width': 1000, 'outlet': 2}, {'pulse': 'off', 'width': 1000, 'outlet': 3}], 'switches': [{'switch': 'off', 'outlet': 0}, {'switch': 'off', 'outlet': 1}, {'switch': 'on', 'outlet': 2}, {'switch': 'off', 'outlet': 3}], 'ssid': 'ssid', 'bssid': 'bssid'} | 547
    Line 1553: 2024-09-11 15:25:54.089 DEBUG (MainThread) [custom_components.sonoff.core.ewelink.local] 100204d9a9 => Local4 | 192.168.100.106:8081 | {'switches': [{'outlet': 2, 'switch': 'off'}]} !! Timeout 1
    Line 1555: 2024-09-11 15:25:54.166 DEBUG (MainThread) [custom_components.sonoff.core.ewelink] 100204d9a9 <= Local3 | 192.168.100.106:8081 | {'sledOnline': 'on', 'configure': [{'startup': 'off', 'outlet': 0}, {'startup': 'off', 'outlet': 1}, {'startup': 'off', 'outlet': 2}, {'startup': 'off', 'outlet': 3}], 'pulses': [{'pulse': 'off', 'width': 1000, 'outlet': 0}, {'pulse': 'off', 'width': 1000, 'outlet': 1}, {'pulse': 'off', 'width': 1000, 'outlet': 2}, {'pulse': 'off', 'width': 1000, 'outlet': 3}], 'switches': [{'switch': 'off', 'outlet': 0}, {'switch': 'off', 'outlet': 1}, {'switch': 'off', 'outlet': 2}, {'switch': 'off', 'outlet': 3}], 'ssid': 'ssid', 'bssid': 'bssid'} | 548
    Line 1631: 2024-09-11 15:27:15.136 DEBUG (MainThread) [custom_components.sonoff.core.ewelink.local] 100204d9a9 => Local4 | 192.168.100.106:8081 | None <= {'seq': 549, 'sequence': '1726057631979', 'error': 0}
    Line 1671: 2024-09-11 15:27:53.513 DEBUG (MainThread) [custom_components.sonoff.core.ewelink.local] 100204d9a9 => Local4 | 192.168.100.106:8081 | {'switches': [{'outlet': 3, 'switch': 'on'}]} !! Timeout 1
    Line 1673: 2024-09-11 15:27:55.631 DEBUG (MainThread) [custom_components.sonoff.core.ewelink] 100204d9a9 <= Local3 | 192.168.100.106:8081 | {'sledOnline': 'on', 'configure': [{'startup': 'off', 'outlet': 0}, {'startup': 'off', 'outlet': 1}, {'startup': 'off', 'outlet': 2}, {'startup': 'off', 'outlet': 3}], 'pulses': [{'pulse': 'off', 'width': 1000, 'outlet': 0}, {'pulse': 'off', 'width': 1000, 'outlet': 1}, {'pulse': 'off', 'width': 1000, 'outlet': 2}, {'pulse': 'off', 'width': 1000, 'outlet': 3}], 'switches': [{'switch': 'off', 'outlet': 0}, {'switch': 'off', 'outlet': 1}, {'switch': 'off', 'outlet': 2}, {'switch': 'on', 'outlet': 3}], 'ssid': 'ssid', 'bssid': 'bssid'} | 549
    Line 1677: 2024-09-11 15:28:10.300 DEBUG (MainThread) [custom_components.sonoff.core.ewelink.local] 100204d9a9 => Local4 | 192.168.100.106:8081 | {'switches': [{'outlet': 3, 'switch': 'off'}]} !! Timeout 1
    Line 1679: 2024-09-11 15:28:10.668 DEBUG (MainThread) [custom_components.sonoff.core.ewelink] 100204d9a9 <= Local3 | 192.168.100.106:8081 | {'sledOnline': 'on', 'configure': [{'startup': 'off', 'outlet': 0}, {'startup': 'off', 'outlet': 1}, {'startup': 'off', 'outlet': 2}, {'startup': 'off', 'outlet': 3}], 'pulses': [{'pulse': 'off', 'width': 1000, 'outlet': 0}, {'pulse': 'off', 'width': 1000, 'outlet': 1}, {'pulse': 'off', 'width': 1000, 'outlet': 2}, {'pulse': 'off', 'width': 1000, 'outlet': 3}], 'switches': [{'switch': 'off', 'outlet': 0}, {'switch': 'off', 'outlet': 1}, {'switch': 'off', 'outlet': 2}, {'switch': 'off', 'outlet': 3}], 'ssid': 'ssid', 'bssid': 'bssid'} | 550
    Line 1704: 2024-09-11 15:28:20.291 DEBUG (MainThread) [custom_components.sonoff.core.ewelink] 100204d9a9 <= Local3 | 192.168.100.106:8081 | {'sledOnline': 'on', 'configure': [{'startup': 'off', 'outlet': 0}, {'startup': 'off', 'outlet': 1}, {'startup': 'off', 'outlet': 2}, {'startup': 'off', 'outlet': 3}], 'pulses': [{'pulse': 'off', 'width': 1000, 'outlet': 0}, {'pulse': 'off', 'width': 1000, 'outlet': 1}, {'pulse': 'off', 'width': 1000, 'outlet': 2}, {'pulse': 'off', 'width': 1000, 'outlet': 3}], 'switches': [{'switch': 'off', 'outlet': 0}, {'switch': 'off', 'outlet': 1}, {'switch': 'off', 'outlet': 2}, {'switch': 'on', 'outlet': 3}], 'ssid': 'ssid', 'bssid': 'bssid'} | 551
    Line 1706: 2024-09-11 15:28:22.338 DEBUG (MainThread) [custom_components.sonoff.core.ewelink] 100204d9a9 <= Local3 | 192.168.100.106:8081 | {'sledOnline': 'on', 'configure': [{'startup': 'off', 'outlet': 0}, {'startup': 'off', 'outlet': 1}, {'startup': 'off', 'outlet': 2}, {'startup': 'off', 'outlet': 3}], 'pulses': [{'pulse': 'off', 'width': 1000, 'outlet': 0}, {'pulse': 'off', 'width': 1000, 'outlet': 1}, {'pulse': 'off', 'width': 1000, 'outlet': 2}, {'pulse': 'off', 'width': 1000, 'outlet': 3}], 'switches': [{'switch': 'off', 'outlet': 0}, {'switch': 'off', 'outlet': 1}, {'switch': 'off', 'outlet': 2}, {'switch': 'off', 'outlet': 3}], 'ssid': 'ssid', 'bssid': 'bssid'} | 552
    Line 1708: 2024-09-11 15:28:24.436 DEBUG (MainThread) [custom_components.sonoff.core.ewelink] 100204d9a9 <= Local3 | 192.168.100.106:8081 | {'sledOnline': 'on', 'configure': [{'startup': 'off', 'outlet': 0}, {'startup': 'off', 'outlet': 1}, {'startup': 'off', 'outlet': 2}, {'startup': 'off', 'outlet': 3}], 'pulses': [{'pulse': 'off', 'width': 1000, 'outlet': 0}, {'pulse': 'off', 'width': 1000, 'outlet': 1}, {'pulse': 'off', 'width': 1000, 'outlet': 2}, {'pulse': 'off', 'width': 1000, 'outlet': 3}], 'switches': [{'switch': 'off', 'outlet': 0}, {'switch': 'off', 'outlet': 1}, {'switch': 'on', 'outlet': 2}, {'switch': 'off', 'outlet': 3}], 'ssid': 'ssid', 'bssid': 'bssid'} | 553
    Line 1711: 2024-09-11 15:28:35.792 DEBUG (MainThread) [custom_components.sonoff.core.ewelink] 100204d9a9 <= Local3 | 192.168.100.106:8081 | {'sledOnline': 'on', 'configure': [{'startup': 'off', 'outlet': 0}, {'startup': 'off', 'outlet': 1}, {'startup': 'off', 'outlet': 2}, {'startup': 'off', 'outlet': 3}], 'pulses': [{'pulse': 'off', 'width': 1000, 'outlet': 0}, {'pulse': 'off', 'width': 1000, 'outlet': 1}, {'pulse': 'off', 'width': 1000, 'outlet': 2}, {'pulse': 'off', 'width': 1000, 'outlet': 3}], 'switches': [{'switch': 'off', 'outlet': 0}, {'switch': 'off', 'outlet': 1}, {'switch': 'off', 'outlet': 2}, {'switch': 'off', 'outlet': 3}], 'ssid': 'ssid', 'bssid': 'bssid'} | 554
    Line 1739: 2024-09-11 15:29:10.604 DEBUG (MainThread) [custom_components.sonoff.core.ewelink] 100204d9a9 <= Local3 | 192.168.100.106:8081 | {'sledOnline': 'on', 'configure': [{'startup': 'off', 'outlet': 0}, {'startup': 'off', 'outlet': 1}, {'startup': 'off', 'outlet': 2}, {'startup': 'off', 'outlet': 3}], 'pulses': [{'pulse': 'off', 'width': 1000, 'outlet': 0}, {'pulse': 'off', 'width': 1000, 'outlet': 1}, {'pulse': 'off', 'width': 1000, 'outlet': 2}, {'pulse': 'off', 'width': 1000, 'outlet': 3}], 'switches': [{'switch': 'off', 'outlet': 0}, {'switch': 'on', 'outlet': 1}, {'switch': 'off', 'outlet': 2}, {'switch': 'off', 'outlet': 3}], 'ssid': 'ssid', 'bssid': 'bssid'} | 555
    Line 1742: 2024-09-11 15:29:10.784 DEBUG (MainThread) [custom_components.sonoff.core.ewelink.local] 100204d9a9 => Local4 | 192.168.100.106:8081 | None <= {'seq': 556, 'sequence': '1726057750762', 'error': 0}
    Line 1813: 2024-09-11 15:30:17.253 DEBUG (MainThread) [custom_components.sonoff.core.ewelink.local] 100204d9a9 => Local4 | 192.168.100.106:8081 | None <= {'seq': 556, 'sequence': '1726057811988', 'error': 0}
    Line 1842: 2024-09-11 15:30:58.184 DEBUG (MainThread) [custom_components.sonoff.core.ewelink] 100204d9a9 <= Local3 | 192.168.100.106:8081 | {'sledOnline': 'on', 'configure': [{'startup': 'off', 'outlet': 0}, {'startup': 'off', 'outlet': 1}, {'startup': 'off', 'outlet': 2}, {'startup': 'off', 'outlet': 3}], 'pulses': [{'pulse': 'off', 'width': 1000, 'outlet': 0}, {'pulse': 'off', 'width': 1000, 'outlet': 1}, {'pulse': 'off', 'width': 1000, 'outlet': 2}, {'pulse': 'off', 'width': 1000, 'outlet': 3}], 'switches': [{'switch': 'off', 'outlet': 0}, {'switch': 'off', 'outlet': 1}, {'switch': 'off', 'outlet': 2}, {'switch': 'off', 'outlet': 3}], 'ssid': 'ssid', 'bssid': 'bssid'} | 556
    Line 1847: 2024-09-11 15:31:05.639 DEBUG (MainThread) [custom_components.sonoff.core.ewelink.local] 100204d9a9 => Local4 | 192.168.100.106:8081 | None <= {'seq': 557, 'sequence': '1726057865387', 'error': 0}
    Line 1849: 2024-09-11 15:31:05.751 DEBUG (MainThread) [custom_components.sonoff.core.ewelink] 100204d9a9 <= Local3 | 192.168.100.106:8081 | {'sledOnline': 'on', 'configure': [{'startup': 'off', 'outlet': 0}, {'startup': 'off', 'outlet': 1}, {'startup': 'off', 'outlet': 2}, {'startup': 'off', 'outlet': 3}], 'pulses': [{'pulse': 'off', 'width': 1000, 'outlet': 0}, {'pulse': 'off', 'width': 1000, 'outlet': 1}, {'pulse': 'off', 'width': 1000, 'outlet': 2}, {'pulse': 'off', 'width': 1000, 'outlet': 3}], 'switches': [{'switch': 'on', 'outlet': 0}, {'switch': 'off', 'outlet': 1}, {'switch': 'off', 'outlet': 2}, {'switch': 'off', 'outlet': 3}], 'ssid': 'ssid', 'bssid': 'bssid'} | 557
    Line 1900: 2024-09-11 15:32:05.290 DEBUG (MainThread) [custom_components.sonoff.core.ewelink] 100204d9a9 <= Local3 | 192.168.100.106:8081 | {'sledOnline': 'on', 'configure': [{'startup': 'off', 'outlet': 0}, {'startup': 'off', 'outlet': 1}, {'startup': 'off', 'outlet': 2}, {'startup': 'off', 'outlet': 3}], 'pulses': [{'pulse': 'off', 'width': 1000, 'outlet': 0}, {'pulse': 'off', 'width': 1000, 'outlet': 1}, {'pulse': 'off', 'width': 1000, 'outlet': 2}, {'pulse': 'off', 'width': 1000, 'outlet': 3}], 'switches': [{'switch': 'off', 'outlet': 0}, {'switch': 'off', 'outlet': 1}, {'switch': 'off', 'outlet': 2}, {'switch': 'off', 'outlet': 3}], 'ssid': 'ssid', 'bssid': 'bssid'} | 558
    Line 1953: 2024-09-11 15:32:34.817 DEBUG (MainThread) [custom_components.sonoff.core.ewelink] 100204d9a9 <= Local3 | 192.168.100.106:8081 | {'sledOnline': 'on', 'configure': [{'startup': 'off', 'outlet': 0}, {'startup': 'off', 'outlet': 1}, {'startup': 'off', 'outlet': 2}, {'startup': 'off', 'outlet': 3}], 'pulses': [{'pulse': 'off', 'width': 1000, 'outlet': 0}, {'pulse': 'off', 'width': 1000, 'outlet': 1}, {'pulse': 'off', 'width': 1000, 'outlet': 2}, {'pulse': 'off', 'width': 1000, 'outlet': 3}], 'switches': [{'switch': 'off', 'outlet': 0}, {'switch': 'off', 'outlet': 1}, {'switch': 'off', 'outlet': 2}, {'switch': 'off', 'outlet': 3}], 'ssid': 'ssid', 'bssid': 'bssid'} | 558
    Line 2072: 2024-09-11 15:37:17.329 DEBUG (MainThread) [custom_components.sonoff.core.ewelink.local] 100204d9a9 => Local4 | 192.168.100.106:8081 | {'switches': [{'outlet': 0, 'switch': 'on'}]} <= {'seq': 559, 'sequence': '1726058237223', 'error': 0}
    Line 2073: 2024-09-11 15:37:17.365 DEBUG (MainThread) [custom_components.sonoff.core.ewelink] 100204d9a9 <= Local3 | 192.168.100.106:8081 | {'sledOnline': 'on', 'configure': [{'startup': 'off', 'outlet': 0}, {'startup': 'off', 'outlet': 1}, {'startup': 'off', 'outlet': 2}, {'startup': 'off', 'outlet': 3}], 'pulses': [{'pulse': 'off', 'width': 1000, 'outlet': 0}, {'pulse': 'off', 'width': 1000, 'outlet': 1}, {'pulse': 'off', 'width': 1000, 'outlet': 2}, {'pulse': 'off', 'width': 1000, 'outlet': 3}], 'switches': [{'switch': 'on', 'outlet': 0}, {'switch': 'off', 'outlet': 1}, {'switch': 'off', 'outlet': 2}, {'switch': 'off', 'outlet': 3}], 'ssid': 'ssid', 'bssid': 'bssid'} | 559
    Line 2085: 2024-09-11 15:37:28.365 DEBUG (MainThread) [custom_components.sonoff.core.ewelink.local] 100204d9a9 => Local4 | 192.168.100.106:8081 | {'switches': [{'outlet': 0, 'switch': 'off'}]} !! Timeout 1
    Line 2089: 2024-09-11 15:37:38.828 DEBUG (MainThread) [custom_components.sonoff.core.ewelink.local] 100204d9a9 => Local4 | 192.168.100.106:8081 | None !! Timeout 5
    Line 2090: 2024-09-11 15:37:43.827 DEBUG (MainThread) [custom_components.sonoff.core.ewelink.local] 100204d9a9 => Local4 | 192.168.100.106:8081 | None !! Timeout 5
    Line 2094: 2024-09-11 15:37:47.999 DEBUG (MainThread) [custom_components.sonoff.core.ewelink.local] 100204d9a9 => Local4 | 192.168.100.106:8081 | None <= {'seq': 560, 'sequence': '1726058263830', 'error': 0}
    Line 2102: 2024-09-11 15:37:52.828 DEBUG (MainThread) [custom_components.sonoff.core.ewelink.local] 100204d9a9 => Local4 | 192.168.100.106:8081 | {'switches': [{'outlet': 0, 'switch': 'off'}]} !! Timeout 5
    Line 2103: 2024-09-11 15:37:54.827 DEBUG (MainThread) [custom_components.sonoff.core.ewelink.local] 100204d9a9 => Local4 | 192.168.100.106:8081 | None !! Timeout 5
    Line 2104: 2024-09-11 15:37:55.004 DEBUG (MainThread) [custom_components.sonoff.core.ewelink.local] 100204d9a9 => Local4 | 192.168.100.106:8081 | None <= {'seq': 560, 'sequence': '1726058272828', 'error': 0}
    Line 2105: 2024-09-11 15:38:00.866 DEBUG (MainThread) [custom_components.sonoff.core.ewelink.local] 100204d9a9 => Local4 | 192.168.100.106:8081 | None <= {'seq': 560, 'sequence': '1726058279828', 'error': 0}
    Line 2106: 2024-09-11 15:38:09.156 DEBUG (MainThread) [custom_components.sonoff.core.ewelink.local] 100204d9a9 => Local4 | 192.168.100.106:8081 | {'switches': [{'outlet': 2, 'switch': 'on'}]} <= {'seq': 560, 'sequence': '1726058288108', 'error': 0}
    Line 2107: 2024-09-11 15:38:09.191 DEBUG (MainThread) [custom_components.sonoff.core.ewelink] 100204d9a9 <= Local3 | 192.168.100.106:8081 | {'sledOnline': 'on', 'configure': [{'startup': 'off', 'outlet': 0}, {'startup': 'off', 'outlet': 1}, {'startup': 'off', 'outlet': 2}, {'startup': 'off', 'outlet': 3}], 'pulses': [{'pulse': 'off', 'width': 1000, 'outlet': 0}, {'pulse': 'off', 'width': 1000, 'outlet': 1}, {'pulse': 'off', 'width': 1000, 'outlet': 2}, {'pulse': 'off', 'width': 1000, 'outlet': 3}], 'switches': [{'switch': 'on', 'outlet': 0}, {'switch': 'off', 'outlet': 1}, {'switch': 'on', 'outlet': 2}, {'switch': 'off', 'outlet': 3}], 'ssid': 'ssid', 'bssid': 'bssid'} | 560
    Line 2108: 2024-09-11 15:38:15.396 DEBUG (MainThread) [custom_components.sonoff.core.ewelink.local] 100204d9a9 => Local4 | 192.168.100.106:8081 | {'switches': [{'outlet': 2, 'switch': 'off'}]} <= {'seq': 561, 'sequence': '1726058293309', 'error': 0}
    Line 2109: 2024-09-11 15:38:15.423 DEBUG (MainThread) [custom_components.sonoff.core.ewelink] 100204d9a9 <= Local3 | 192.168.100.106:8081 | {'sledOnline': 'on', 'configure': [{'startup': 'off', 'outlet': 0}, {'startup': 'off', 'outlet': 1}, {'startup': 'off', 'outlet': 2}, {'startup': 'off', 'outlet': 3}], 'pulses': [{'pulse': 'off', 'width': 1000, 'outlet': 0}, {'pulse': 'off', 'width': 1000, 'outlet': 1}, {'pulse': 'off', 'width': 1000, 'outlet': 2}, {'pulse': 'off', 'width': 1000, 'outlet': 3}], 'switches': [{'switch': 'on', 'outlet': 0}, {'switch': 'off', 'outlet': 1}, {'switch': 'off', 'outlet': 2}, {'switch': 'off', 'outlet': 3}], 'ssid': 'ssid', 'bssid': 'bssid'} | 561
    Line 2120: 2024-09-11 15:38:20.724 DEBUG (MainThread) [custom_components.sonoff.core.ewelink.local] 100204d9a9 => Local4 | 192.168.100.106:8081 | {'switches': [{'outlet': 0, 'switch': 'off'}]} <= {'seq': 562, 'sequence': '1726058296505', 'error': 0}
    Line 2121: 2024-09-11 15:38:20.752 DEBUG (MainThread) [custom_components.sonoff.core.ewelink] 100204d9a9 <= Local3 | 192.168.100.106:8081 | {'sledOnline': 'on', 'configure': [{'startup': 'off', 'outlet': 0}, {'startup': 'off', 'outlet': 1}, {'startup': 'off', 'outlet': 2}, {'startup': 'off', 'outlet': 3}], 'pulses': [{'pulse': 'off', 'width': 1000, 'outlet': 0}, {'pulse': 'off', 'width': 1000, 'outlet': 1}, {'pulse': 'off', 'width': 1000, 'outlet': 2}, {'pulse': 'off', 'width': 1000, 'outlet': 3}], 'switches': [{'switch': 'off', 'outlet': 0}, {'switch': 'off', 'outlet': 1}, {'switch': 'off', 'outlet': 2}, {'switch': 'off', 'outlet': 3}], 'ssid': 'ssid', 'bssid': 'bssid'} | 562
    Line 2123: 2024-09-11 15:38:21.281 DEBUG (MainThread) [custom_components.sonoff.core.ewelink.local] 100204d9a9 => Local4 | 192.168.100.106:8081 | None <= {'seq': 563, 'sequence': '1726058301026', 'error': 0}
    Line 2167: 2024-09-11 15:39:11.508 DEBUG (MainThread) [custom_components.sonoff.core.ewelink] 100204d9a9 <= Local3 | 192.168.100.106:8081 | {'sledOnline': 'on', 'configure': [{'startup': 'off', 'outlet': 0}, {'startup': 'off', 'outlet': 1}, {'startup': 'off', 'outlet': 2}, {'startup': 'off', 'outlet': 3}], 'pulses': [{'pulse': 'off', 'width': 1000, 'outlet': 0}, {'pulse': 'off', 'width': 1000, 'outlet': 1}, {'pulse': 'off', 'width': 1000, 'outlet': 2}, {'pulse': 'off', 'width': 1000, 'outlet': 3}], 'switches': [{'switch': 'off', 'outlet': 0}, {'switch': 'off', 'outlet': 1}, {'switch': 'off', 'outlet': 2}, {'switch': 'off', 'outlet': 3}], 'ssid': 'ssid', 'bssid': 'bssid'} | 562
    Line 2177: 2024-09-11 15:39:32.828 DEBUG (MainThread) [custom_components.sonoff.core.ewelink.local] 100204d9a9 => Local4 | 192.168.100.106:8081 | {'switches': [{'outlet': 3, 'switch': 'on'}]} !! Timeout 5
    Line 2178: 2024-09-11 15:39:37.048 DEBUG (MainThread) [custom_components.sonoff.core.ewelink.local] 100204d9a9 => Local4 | 192.168.100.106:8081 | None <= {'seq': 563, 'sequence': '1726058372829', 'error': 0}
    Line 2215: 2024-09-11 15:53:29.501 DEBUG (MainThread) [custom_components.sonoff.core.ewelink] 100204d9a9 <= Local3 | 192.168.100.106:8081 | {'sledOnline': 'on', 'configure': [{'startup': 'off', 'outlet': 0}, {'startup': 'off', 'outlet': 1}, {'startup': 'off', 'outlet': 2}, {'startup': 'off', 'outlet': 3}], 'pulses': [{'pulse': 'off', 'width': 1000, 'outlet': 0}, {'pulse': 'off', 'width': 1000, 'outlet': 1}, {'pulse': 'off', 'width': 1000, 'outlet': 2}, {'pulse': 'off', 'width': 1000, 'outlet': 3}], 'switches': [{'switch': 'off', 'outlet': 0}, {'switch': 'off', 'outlet': 1}, {'switch': 'off', 'outlet': 2}, {'switch': 'off', 'outlet': 3}], 'ssid': 'ssid', 'bssid': 'bssid'} | 562
    Line 2256: 2024-09-11 15:55:50.694 DEBUG (MainThread) [custom_components.sonoff.core.ewelink.local] 100204d9a9 => Local4 | 192.168.100.106:8081 | {'switches': [{'outlet': 2, 'switch': 'on'}]} <= {'seq': 563, 'sequence': '1726059349654', 'error': 0}
    Line 2257: 2024-09-11 15:55:50.729 DEBUG (MainThread) [custom_components.sonoff.core.ewelink] 100204d9a9 <= Local3 | 192.168.100.106:8081 | {'sledOnline': 'on', 'configure': [{'startup': 'off', 'outlet': 0}, {'startup': 'off', 'outlet': 1}, {'startup': 'off', 'outlet': 2}, {'startup': 'off', 'outlet': 3}], 'pulses': [{'pulse': 'off', 'width': 1000, 'outlet': 0}, {'pulse': 'off', 'width': 1000, 'outlet': 1}, {'pulse': 'off', 'width': 1000, 'outlet': 2}, {'pulse': 'off', 'width': 1000, 'outlet': 3}], 'switches': [{'switch': 'off', 'outlet': 0}, {'switch': 'off', 'outlet': 1}, {'switch': 'on', 'outlet': 2}, {'switch': 'off', 'outlet': 3}], 'ssid': 'ssid', 'bssid': 'bssid'} | 563
    Line 2258: 2024-09-11 15:55:56.261 DEBUG (MainThread) [custom_components.sonoff.core.ewelink.local] 100204d9a9 => Local4 | 192.168.100.106:8081 | {'switches': [{'outlet': 2, 'switch': 'off'}]} <= {'seq': 564, 'sequence': '1726059355232', 'error': 0}
    Line 2259: 2024-09-11 15:55:56.298 DEBUG (MainThread) [custom_components.sonoff.core.ewelink] 100204d9a9 <= Local3 | 192.168.100.106:8081 | {'sledOnline': 'on', 'configure': [{'startup': 'off', 'outlet': 0}, {'startup': 'off', 'outlet': 1}, {'startup': 'off', 'outlet': 2}, {'startup': 'off', 'outlet': 3}], 'pulses': [{'pulse': 'off', 'width': 1000, 'outlet': 0}, {'pulse': 'off', 'width': 1000, 'outlet': 1}, {'pulse': 'off', 'width': 1000, 'outlet': 2}, {'pulse': 'off', 'width': 1000, 'outlet': 3}], 'switches': [{'switch': 'off', 'outlet': 0}, {'switch': 'off', 'outlet': 1}, {'switch': 'off', 'outlet': 2}, {'switch': 'off', 'outlet': 3}], 'ssid': 'ssid', 'bssid': 'bssid'} | 564
    Line 2260: 2024-09-11 15:56:48.828 DEBUG (MainThread) [custom_components.sonoff.core.ewelink.local] 100204d9a9 => Local4 | 192.168.100.106:8081 | {'switches': [{'outlet': 0, 'switch': 'on'}]} !! Timeout 5
    Line 2261: 2024-09-11 15:56:51.038 DEBUG (MainThread) [custom_components.sonoff.core.ewelink.local] 100204d9a9 => Local4 | 192.168.100.106:8081 | None <= {'seq': 565, 'sequence': '1726059408829', 'error': 0}
    Line 2264: 2024-09-11 15:57:05.835 DEBUG (MainThread) [custom_components.sonoff.core.ewelink.local] 100204d9a9 => Local4 | 192.168.100.106:8081 | {'switches': [{'outlet': 0, 'switch': 'on'}]} <= {'seq': 565, 'sequence': '1726059422694', 'error': 0}
    Line 2265: 2024-09-11 15:57:05.872 DEBUG (MainThread) [custom_components.sonoff.core.ewelink] 100204d9a9 <= Local3 | 192.168.100.106:8081 | {'sledOnline': 'on', 'configure': [{'startup': 'off', 'outlet': 0}, {'startup': 'off', 'outlet': 1}, {'startup': 'off', 'outlet': 2}, {'startup': 'off', 'outlet': 3}], 'pulses': [{'pulse': 'off', 'width': 1000, 'outlet': 0}, {'pulse': 'off', 'width': 1000, 'outlet': 1}, {'pulse': 'off', 'width': 1000, 'outlet': 2}, {'pulse': 'off', 'width': 1000, 'outlet': 3}], 'switches': [{'switch': 'on', 'outlet': 0}, {'switch': 'off', 'outlet': 1}, {'switch': 'off', 'outlet': 2}, {'switch': 'off', 'outlet': 3}], 'ssid': 'ssid', 'bssid': 'bssid'} | 565
    Line 2268: 2024-09-11 15:57:25.828 DEBUG (MainThread) [custom_components.sonoff.core.ewelink.local] 100204d9a9 => Local4 | 192.168.100.106:8081 | {'switches': [{'outlet': 0, 'switch': 'off'}]} !! Timeout 5
    Line 2269: 2024-09-11 15:57:25.854 DEBUG (MainThread) [custom_components.sonoff.core.ewelink.local] 100204d9a9 => Local4 | 192.168.100.106:8081 | None <= {'seq': 566, 'sequence': '1726059445829', 'error': 0}
AlexxIT commented 2 months ago

Bad connection...

paulius2k commented 2 months ago

I don't have any issues with my many DUALR3.

Why could there be bad connection with only that particular device?

All of the devices are in the same location and are connected to the same AP and vlan network. RSSI of 4CHPROR3 is -46.

AlexxIT commented 2 months ago

Lots of reasons. It's hard to know the cause remotely.

paulius2k commented 2 months ago

any ideas how I could debug deeper? or should I just better flash the device with ESPHome?

AlexxIT commented 2 months ago
  1. Reboot device
  2. Temporary move device to another place
  3. Change router WiFi settings:
    • Fixed channel from 1 to 11
    • Channel width: 20MHz (don't use 40MHz)
    • Authentication: WPA2 (don't use WPA3)

If nothing helps - try to flash the ESPHome. But if the problem is with the radio, ESPHome won't help.

paulius2k commented 2 months ago

Thank you. You were right about bad connection.

For future ref: