SonoffLAN
SonoffLAN copied to clipboard
The "sonoff" devices of a remote network are available in ewelink but not in home assistant (after 3.0 update)
Have you read the new README carefully?
I think I have the same issue, the devices are greyed out and shown as unavailable, i do not see a reason why in the logs and despite reading the README in the repo i don't see anything that tells why - can you clarify what part of the readme are you referring to?
Me too. Devices are unavailable when "mode" is local. When I set "mode" to cloud it is able to connect but some entities are now not binary switches (on/off).
@DennyBevilaqua you need to read docs about problems with LAN
@antoniofainella do you have multiple Homes in ewelink app?
@EvilItalianK you need to provide any device or integration diagnostics
Mine decided to go back to work after the latest HA update, only to stop working again now
The integration diagnostic:
{
"home_assistant": {
"installation_type": "Home Assistant Supervised",
"version": "2022.9.5",
"dev": false,
"hassio": true,
"virtualenv": false,
"python_version": "3.10.5",
"docker": true,
"arch": "aarch64",
"timezone": "Europe/Rome",
"os_name": "Linux",
"os_version": "5.15.0-1017-oracle",
"supervisor": "2022.09.1",
"host_os": "Ubuntu 22.04.1 LTS",
"docker_version": "20.10.18",
"chassis": "vm",
"run_as_root": true
},
"custom_components": {
"tapo": {
"version": "1.2.16-rc1",
"requirements": [
"plugp100==2.1.18"
]
},
"asusrouter": {
"version": "0.8.0",
"requirements": [
"asusrouter==0.9.1"
]
},
"meross_cloud": {
"version": "1.2.6",
"requirements": [
"meross_iot==0.4.5.0"
]
},
"skyq": {
"version": "v2.9.10",
"requirements": [
"pyskyqremote==0.3.16"
]
},
"files": {
"version": "1.5",
"requirements": []
},
"nodered": {
"version": "1.0.9",
"requirements": []
},
"hacs": {
"version": "1.27.2",
"requirements": [
"aiogithubapi>=22.2.4"
]
},
"sonoff": {
"version": "3.2.0",
"requirements": [
"pycryptodome>=3.6.6"
]
},
"openweathermap_all": {
"version": "0.0.1",
"requirements": [
"owm2json==0.1.89"
]
},
"garbage_collection": {
"version": "4.8.3",
"requirements": [
"python-dateutil>=2.8.2"
]
},
"holidays": {
"version": "1.8.0",
"requirements": [
"python-dateutil>=2.8.2",
"holidays>=0.14.2"
]
},
"dpc": {
"version": "2022.3.0",
"requirements": []
}
},
"integration_manifest": {
"domain": "sonoff",
"name": "Sonoff",
"config_flow": true,
"documentation": "https://github.com/AlexxIT/SonoffLAN",
"issue_tracker": "https://github.com/AlexxIT/SonoffLAN/issues",
"codeowners": [
"@AlexxIT"
],
"dependencies": [
"http",
"zeroconf"
],
"requirements": [
"pycryptodome>=3.6.6"
],
"version": "3.2.0",
"iot_class": "local_push",
"is_built_in": false
},
"data": {
"version": "38856d1",
"cloud_auth": true,
"config": null,
"options": {
"mode": "auto",
"debug": false,
"homes": 0
},
"errors": [
{
"name": "custom_components.sonoff.core.ewelink.cloud",
"message": [
"Cloud WS Connection error: Cannot connect to host eu-dispa.coolkit.cc:443 ssl:default [Try again]"
],
"level": "WARNING",
"source": [
"custom_components/sonoff/core/ewelink/cloud.py",
268
],
"timestamp": 1663861734.6093888,
"exception": "",
"count": 27,
"first_occurred": 1663781129.4482388
}
],
"devices": {
"10013ae655": {
"uiid": 126,
"params": {
"bindInfos": "***",
"version": 7,
"workMode": 2,
"motorSwMode": 2,
"motorSwReverse": 0,
"outputReverse": 0,
"motorTurn": 0,
"calibState": 1,
"currLocation": 85,
"location": 85,
"sledBright": 0,
"staMac": "***",
"rssi": -85,
"overload_00": {
"minActPow": {
"enabled": 0,
"value": 10
},
"maxVoltage": {
"enabled": 0,
"value": 24000
},
"minVoltage": {
"enabled": 0,
"value": 10
},
"maxCurrent": {
"enabled": 0,
"value": 1500
},
"maxActPow": {
"enabled": 0,
"value": 360000
}
},
"overload_01": {
"minActPow": {
"enabled": 0,
"value": 10
},
"maxVoltage": {
"enabled": 0,
"value": 24000
},
"minVoltage": {
"enabled": 0,
"value": 10
},
"maxCurrent": {
"enabled": 0,
"value": 1500
},
"maxActPow": {
"enabled": 0,
"value": 360000
}
},
"oneKwhState_00": 0,
"startTime_00": "",
"endTime_00": "",
"oneKwhState_01": 0,
"startTime_01": "",
"endTime_01": "",
"oneKwhData_00": 0,
"oneKwhData_01": 0,
"current_00": 0,
"voltage_00": 23369,
"actPow_00": 0,
"reactPow_00": 0,
"apparentPow_00": 0,
"current_01": 0,
"voltage_01": 23369,
"actPow_01": 0,
"reactPow_01": 0,
"apparentPow_01": 0,
"fwVersion": "1.4.0",
"timeZone": 1,
"zyx_clear_timers": true,
"initSetting": 1,
"only_device": {
"ota": "success",
"ota_fail_reason": 0
},
"calibration": 1,
"getKwh_00": 2,
"getKwh_01": 2,
"uiActive": {
"all": 1,
"time": 7200
},
"demNextFetchTime": 1663628400000
},
"model": "DUALR3",
"online": true,
"localtype": null
},
"10013addcd": {
"uiid": 126,
"params": {
"bindInfos": "***",
"version": 7,
"workMode": 2,
"motorSwMode": 2,
"motorSwReverse": 0,
"outputReverse": 0,
"motorTurn": 0,
"calibState": 1,
"currLocation": 15,
"location": 15,
"sledBright": 0,
"staMac": "***",
"rssi": -77,
"overload_00": {
"minActPow": {
"enabled": 0,
"value": 10
},
"maxVoltage": {
"enabled": 0,
"value": 24000
},
"minVoltage": {
"enabled": 0,
"value": 10
},
"maxCurrent": {
"enabled": 0,
"value": 1500
},
"maxActPow": {
"enabled": 0,
"value": 360000
}
},
"overload_01": {
"minActPow": {
"enabled": 0,
"value": 10
},
"maxVoltage": {
"enabled": 0,
"value": 24000
},
"minVoltage": {
"enabled": 0,
"value": 10
},
"maxCurrent": {
"enabled": 0,
"value": 1500
},
"maxActPow": {
"enabled": 0,
"value": 360000
}
},
"oneKwhState_00": 0,
"startTime_00": "",
"endTime_00": "",
"oneKwhState_01": 0,
"startTime_01": "",
"endTime_01": "",
"oneKwhData_00": 0,
"oneKwhData_01": 0,
"current_00": 0,
"voltage_00": 22922,
"actPow_00": 0,
"reactPow_00": 0,
"apparentPow_00": 0,
"current_01": 0,
"voltage_01": 22922,
"actPow_01": 0,
"reactPow_01": 0,
"apparentPow_01": 0,
"fwVersion": "1.4.0",
"timeZone": 1,
"zyx_clear_timers": true,
"initSetting": 1,
"only_device": {
"ota": "success",
"ota_fail_reason": 0
},
"calibration": 1,
"uiActive": {
"all": 1,
"time": 7200
},
"getKwh_00": 2,
"getKwh_01": 2,
"demNextFetchTime": 1663628400000
},
"model": "DUALR3",
"online": true,
"localtype": null
},
"10013ae6d0": {
"uiid": 126,
"params": {
"bindInfos": "***",
"version": 7,
"workMode": 2,
"motorSwMode": 2,
"motorSwReverse": 0,
"outputReverse": 0,
"motorTurn": 0,
"calibState": 1,
"currLocation": 100,
"location": 100,
"sledBright": 0,
"staMac": "***",
"rssi": -66,
"overload_00": {
"minActPow": {
"enabled": 0,
"value": 10
},
"maxVoltage": {
"enabled": 0,
"value": 24000
},
"minVoltage": {
"enabled": 0,
"value": 10
},
"maxCurrent": {
"enabled": 0,
"value": 1500
},
"maxActPow": {
"enabled": 0,
"value": 360000
}
},
"overload_01": {
"minActPow": {
"enabled": 0,
"value": 10
},
"maxVoltage": {
"enabled": 0,
"value": 24000
},
"minVoltage": {
"enabled": 0,
"value": 10
},
"maxCurrent": {
"enabled": 0,
"value": 1500
},
"maxActPow": {
"enabled": 0,
"value": 360000
}
},
"oneKwhState_00": 0,
"startTime_00": "",
"endTime_00": "",
"oneKwhState_01": 0,
"startTime_01": "",
"endTime_01": "",
"oneKwhData_00": 0,
"oneKwhData_01": 0,
"current_00": 0,
"voltage_00": 23351,
"actPow_00": 0,
"reactPow_00": 0,
"apparentPow_00": 0,
"current_01": 0,
"voltage_01": 23351,
"actPow_01": 0,
"reactPow_01": 0,
"apparentPow_01": 0,
"fwVersion": "1.4.0",
"timeZone": 1,
"zyx_clear_timers": true,
"initSetting": 1,
"only_device": {
"ota": "success",
"ota_fail_reason": 0
},
"getKwh_00": 2,
"getKwh_01": 2,
"calibration": 1,
"uiActive": {
"all": 1,
"time": 7200
},
"demNextFetchTime": 1663628400000
},
"model": "DUALR3",
"online": true,
"localtype": null
}
}
}
}
You have problems with internet. And non of your device works locally. So both cloud and local not available
What is the problem exactly tho?
All outbound connections are allowed and this server is hosted in a datacenter, I'd not expect network issues and testing outbound connections seems to work fine
Cannot connect to host eu-dispa.coolkit.cc:443
, 27 times. Component can't do anything with this.
@AlexxIT which devices does not work local? I suspected this was an issue.
"localtype": null
means device doesn't work locally.
Please reopen the issue if it is still relevant