SonoffLAN
SonoffLAN copied to clipboard
error 404 on locally (no cloud)
Hello everyone,
I added the AlexxIT/Sonoff Lan integration to be able to control the Sonoff DIYs.
My Sonoffs (DIY Minir R & DIY Basic R3) are in DIY format and activated locally on the lan (no cloud).
I already do this with the Sonoff DIY plugin on Jeedom, coming to HA, I would like to do the same thing.
I test with Sonoff’s DIY mode tool and it works fine.
On HA, I installed the integration and the equipment does not work, here is what I have:
I tried several versions of the integration, it does not change anything Do you have an idea ? what can I do ? THANKS
if I turn on then I turn off with the Sonoff DIY Mode tool, here is the log:
2023-05-02 20:06:54.545 DEBUG (MainThread) [custom_components.sonoff.core.ewelink] 1000f9eaad <= Local3 | 192.168.1.214:8081 | {'switch': 'on', 'startup': 'off', 'pulse': 'off', 'sledOnline': 'on', 'fwVersion': '3.6.0', 'pulseWidth': 500, 'rssi': -52} | 168
2023-05-02 20:06:56.794 DEBUG (MainThread) [custom_components.sonoff.core.ewelink] 1000f9eaad <= Local3 | 192.168.1.214:8081 | {'switch': 'off', 'startup': 'off', 'pulse': 'off', 'sledOnline': 'on', 'fwVersion': '3.6.0', 'pulseWidth': 500, 'rssi': -52} | 169
if I turn on then I turn off with the Jeedom Plugin, here is the log:
2023-05-02 20:09:58.719 DEBUG (MainThread) [custom_components.sonoff.core.ewelink] 1000f9eaad <= Local3 | 192.168.1.214:8081 | {'switch': 'on', 'startup': 'off', 'pulse': 'off', 'sledOnline': 'on', 'fwVersion': '3.6.0', 'pulseWidth': 500, 'rssi': -52} | 170
2023-05-02 20:10:04.515 DEBUG (MainThread) [custom_components.sonoff.core.ewelink] 1000f9eaad <= Local3 | 192.168.1.214:8081 | {'switch': 'off', 'startup': 'off', 'pulse': 'off', 'sledOnline': 'on', 'fwVersion': '3.6.0', 'pulseWidth': 500, 'rssi': -52} | 171
if I turn on then I turn off with the Integration HA / Donoff Lan, here is the log:
2023-05-02 20:11:27.773 DEBUG (MainThread) [custom_components.sonoff.core.ewelink.local] 1000f9eaad => Local4 | 192.168.1.214:8081 | {'switches': [{'outlet': 0, 'switch': 'on'}]} <= {'seq': 172, 'error': 404}
2023-05-02 20:11:27.811 DEBUG (MainThread) [custom_components.sonoff.core.ewelink.local] 1000f9eaad => Local4 | 192.168.1.214:8081 | None <= {'seq': 172, 'error': 404}
2023-05-02 20:11:28.918 DEBUG (MainThread) [custom_components.sonoff.core.ewelink.local] 1000f9eaad => Local4 | 192.168.1.214:8081 | {'switches': [{'outlet': 0, 'switch': 'off'}]} <= {'seq': 172, 'error': 404}
2023-05-02 20:11:28.950 DEBUG (MainThread) [custom_components.sonoff.core.ewelink.local] 1000f9eaad => Local4 | 192.168.1.214:8081 | None <= {'seq': 172, 'error': 404}
{
"home_assistant": {
"installation_type": "Home Assistant OS",
"version": "2023.4.6",
"dev": false,
"hassio": true,
"virtualenv": false,
"python_version": "3.10.10",
"docker": true,
"arch": "aarch64",
"timezone": "Europe/Paris",
"os_name": "Linux",
"os_version": "6.1.21-v8",
"supervisor": "2023.04.1",
"host_os": "Home Assistant OS 10.1",
"docker_version": "23.0.3",
"chassis": "embedded",
"run_as_root": true
},
"custom_components": {
"sonoff": {
"version": "3.5.1",
"requirements": [
"pycryptodome>=3.6.6"
]
},
"webrtc": {
"version": "v3.1.0",
"requirements": []
},
"hacs": {
"version": "1.32.1",
"requirements": [
"aiogithubapi>=22.10.1"
]
},
"alexa_media": {
"version": "4.6.2",
"requirements": [
"alexapy==1.26.5",
"packaging>=20.3",
"wrapt>=1.12.1"
]
}
},
"integration_manifest": {
"domain": "sonoff",
"name": "Sonoff",
"config_flow": true,
"documentation": "https://github.com/AlexxIT/SonoffLAN",
"issue_tracker": "/api/sonoff/2df996bf-0b82-4a9d-9b93-22fc088326e7",
"codeowners": [
"@AlexxIT"
],
"dependencies": [
"http",
"zeroconf"
],
"requirements": [
"pycryptodome>=3.6.6"
],
"version": "3.5.1",
"iot_class": "local_push",
"is_built_in": false
},
"data": {
"version": "122751c",
"cloud_auth": false,
"config": null,
"options": {},
"errors": [],
"devices": {
"10008f7a3c": {
"uiid": 138,
"params": {
"switch": "off",
"startup": "off",
"pulse": "off",
"sledOnline": "on",
"fwVersion": "3.5.0",
"pulseWidth": 500,
"rssi": -38
},
"model": "MINI DIY",
"online": null,
"local": true,
"localtype": "diy_plug",
"host": "192.168.1.224:8081"
},
"1000f9eaad": {
"uiid": 138,
"params": {
"switch": "off",
"startup": "off",
"pulse": "off",
"sledOnline": "on",
"fwVersion": "3.6.0",
"pulseWidth": 500,
"rssi": -52
},
"model": "MINI DIY",
"online": null,
"local": true,
"localtype": "diy_plug",
"host": "192.168.1.214:8081"
},
"10010540f1": {
"uiid": 138,
"params": {
"switch": "off",
"startup": "off",
"pulse": "off",
"sledOnline": "on",
"fwVersion": "3.6.0",
"pulseWidth": 500,
"rssi": -69
},
"model": "MINI DIY",
"online": null,
"local": true,
"localtype": "diy_plug",
"host": "192.168.1.217:8081"
},
"1000b56291": {
"uiid": 138,
"params": {
"switch": "off",
"startup": "off",
"pulse": "off",
"sledOnline": "on",
"fwVersion": "3.6.0",
"pulseWidth": 500,
"rssi": -62
},
"model": "MINI DIY",
"online": null,
"local": true,
"localtype": "diy_plug",
"host": "192.168.1.216:8081"
},
"1000ab1e93": {
"uiid": 138,
"params": {
"switch": "off",
"startup": "off",
"pulse": "off",
"sledOnline": "on",
"pulseWidth": 2000,
"rssi": -74
},
"model": "MINI DIY",
"online": null,
"local": true,
"localtype": "diy_plug",
"host": "192.168.1.211:8081"
},
"1000fa5f53": {
"uiid": 138,
"params": {
"switch": "off",
"startup": "on",
"pulse": "off",
"sledOnline": "on",
"fwVersion": "3.6.0",
"pulseWidth": 500,
"rssi": -66
},
"model": "MINI DIY",
"online": null,
"local": true,
"localtype": "diy_plug",
"host": "192.168.1.215:8081"
},
"10014a73e9": {
"uiid": 0,
"params": {
"current_01": 111,
"voltage_01": 22984,
"actPow_01": 19206,
"reactPow_01": 16845,
"apparentPow_01": 25513
},
"model": "diy_meter",
"online": null,
"local": true,
"localtype": "diy_meter",
"host": "192.168.1.223:8081"
}
}
}
}
Same issue with error code 422
Should be fixed in latest master version
Please reopen the issue if it is still relevant