ha0y / xiaomi_miot_raw

All-in-one & Easy-to-use. Integrate all your Xiaomi Smart Home - with a single integration and NO YAML files - into Home Assistant.
Apache License 2.0
2.19k stars 232 forks source link

请教下报错的日志是什么原因? #214

Closed sujiayin0 closed 3 years ago

sujiayin0 commented 3 years ago

此错误来自自定义集成。

Logger: homeassistant Source: custom_components/xiaomi_miot_raw/sensor.py:429 Integration: Xiaomi MIoT (documentation, issues) First occurred: 上午11:58:03 (2 occurrences) Last logged: 下午4:07:26

Error doing job: Task exception was never retrieved Traceback (most recent call last): File "/data/data/com.termux/files/home/homeassistant/lib/python3.8/site-packages/homeassistant/helpers/update_coordinator.py", line 127, in _handle_refresh_interval await self._async_refresh(log_failures=True, scheduled=True) File "/data/data/com.termux/files/home/homeassistant/lib/python3.8/site-packages/homeassistant/helpers/update_coordinator.py", line 259, in _async_refresh update_callback() File "/data/data/com.termux/files/home/.homeassistant/custom_components/xiaomi_miot_raw/sensor.py", line 464, in _handle_coordinator_update self.async_write_ha_state() File "/data/data/com.termux/files/home/homeassistant/lib/python3.8/site-packages/homeassistant/helpers/entity.py", line 334, in async_write_ha_state self._async_write_ha_state() File "/data/data/com.termux/files/home/homeassistant/lib/python3.8/site-packages/homeassistant/helpers/entity.py", line 368, in _async_write_ha_state state = self._stringify_state() File "/data/data/com.termux/files/home/homeassistant/lib/python3.8/site-packages/homeassistant/helpers/entity.py", line 340, in _stringify_state state = self.state File "/data/data/com.termux/files/home/.homeassistant/custom_components/xiaomi_miot_raw/sensor.py", line 429, in state return self.coordinator.data[0][0] KeyError: 0

此错误来自自定义集成。

Logger: custom_components.xiaomi_miot_raw.deps.xiaomi_cloud_new Source: custom_components/xiaomi_miot_raw/deps/xiaomi_cloud_new.py:205 Integration: Xiaomi MIoT (documentation, issues) First occurred: 上午11:58:03 (7 occurrences) Last logged: 下午4:07:26

Response of /user/get_user_device_data from cloud: {'code': -4, 'message': 'Critical infrasture error [DB]: host ["10.108.234.78","10.108.234.78","10.108.234.78","10.108.234.78","10.108.234.78"]:, call from: IDC-c4 10.126.208.133All Mysql instances failed! Last error: ', 'result': ''} Response of /miotspec/prop/get from cloud: {'code': -12, 'message': 'throttle deny'} Response of /user/get_user_device_data from cloud: {'code': -4, 'message': 'Critical infrasture error [DB]: host ["10.108.234.78","10.108.234.78","10.108.234.78","10.108.234.78","10.108.234.78"]:, call from: IDC-c3 10.119.96.205All Mysql instances failed! Last error: ', 'result': ''}

此错误来自自定义集成。

Logger: custom_components.xiaomi_miot_raw.deps.xiaomi_cloud_new Source: custom_components/xiaomi_miot_raw/deps/xiaomi_cloud_new.py:164 Integration: Xiaomi MIoT (documentation, issues) First occurred: 上午11:43:56 (1 occurrences) Last logged: 上午11:43:56

Timeout while loading MiCloud device list 2021-08-16 11:43:56 ERROR (MainThread) [custom_components.xiaomi_miot_raw.deps.xiaomi_cloud_new] Timeout while loading MiCloud device list

ha0y commented 3 years ago

第一个:获取到的数据错误。是由第二个错误导致的。 第二个:小米的服务器出现临时性故障。 第三个:加载小米账号设备列表超时