al-one / hass-xiaomi-miot

Automatic integrate all Xiaomi devices to HomeAssistant via miot-spec, support Wi-Fi, BLE, ZigBee devices. 小米米家智能家居设备接入Hass集成
https://miot-spec.com
Apache License 2.0
4.67k stars 664 forks source link

After logging into the Xiaomi account, system can't find any device or entity. 登录小米账号后找不到任何实体和设备。 #1907

Closed yjwu-leadstec closed 3 weeks ago

yjwu-leadstec commented 4 weeks ago

Device model / 设备型号

All devices under Xiaomi account

Component version / 插件版本

0.7.21

HA core version / HA版本

2024.10.4

Integrated mode / 集成方式

Automatic (自动模式)

The problem / 问题详情

In the past few days, I found that all the Xiaomi devices imported through the plugin are offline, around 99 devices. They were functioning normally before. Today, I tried to troubleshoot and found that after entering the Xiaomi account username and password, it prompted that no devices could be found under this account. I have tried restarting HA and the plugin. Still, I cannot find the devices under the account, and the password has not been changed. Please help. Thanks in advance.

最近这几天发现通过插件导入的小米设备全部都离线了,总数有几十个。之前一直都是正常使用。今天尝试排查,发现填入小米的账号密码后,提示在此账号下找不到任何的设备。重启HA和重启插件都尝试过了。还是不能找到账号下的设备,账号也没有改过密码。求帮助。

Entity attributes / 实体属性

light.lemesh_wy0c09_003d_light

Home Assistant Logs / 系统日志

image

Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 632, in async_render render_result = _render_with_context(self.template, compiled, kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 2729, in _render_with_context return template.render(kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/jinja2/environment.py", line 1304, in render self.environment.handle_exception() File "/usr/local/lib/python3.12/site-packages/jinja2/environment.py", line 939, in handle_exception raise rewrite_traceback_stack(source=source) File "