NickWaterton / eWeLink-mqtt

Bridge to control Sonoff Devices via MQTT
MIT License
19 stars 5 forks source link

KeyError: 'familyList' #11

Open Remendado opened 4 months ago

Remendado commented 4 months ago

suddenly after more than a year of stable work

{'error': 407, 'msg': 'the path of request is not allowed with appid:4s1FXKC9FaGfoqXhmXSJneb3qcm1gOak', 'data': {}}

[2024-03-29 10:09:15,328]ERROR 'familyList' Traceback (most recent call last): File "/root/eWeLink-mqtt/./ewelink.py", line 297, in start_connection homes = await self.get_homes() File "/root/eWeLink-mqtt/custom_components/sonoff/core/ewelink/cloud.py", line 180, in get_homes return {i["id"]: i["name"] for i in resp["data"]["familyList"]} KeyError: 'familyList'

NickWaterton commented 4 months ago

The appID secrets expire after one year, and have to be renewed.

Are you running the latest version? The appID’s were updated a while back.

I may have to upload the latest version though.

Remendado commented 3 months ago

with clear install of latest version i see this:

Installed custom_components Traceback (most recent call last): File "/root/eWeLink-mqtt/./ewelink.py", line 189, in from custom_components.sonoff.core.ewelink.init import XRegistry, SIGNAL_ADD_ENTITIES File "/root/eWeLink-mqtt/custom_components/sonoff/init.py", line 29, in from .core import devices as core_devices File "/root/eWeLink-mqtt/custom_components/sonoff/core/devices.py", line 22, in from ..climate import XClimateNS, XClimateTH, XThermostat File "/root/eWeLink-mqtt/custom_components/sonoff/climate.py", line 6, in from homeassistant.const import UnitOfTemperature, MAJOR_VERSION, MINOR_VERSION ImportError: cannot import name 'UnitOfTemperature' from 'homeassistant.const' (/root/eWeLink-mqtt/homeassistant/const.py)