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.62k stars 660 forks source link

HA core 11.0 加载后无限重启 #872

Open RayL1234 opened 2 years ago

RayL1234 commented 2 years ago

HA更新到11.0以后 每次重启HA一到加载Miot 插件 就会无限重启~目前暂时解决办法只能先关停插件 直至HA完全启动后再开启才能正常使用。望修复 谢谢 设备:树莓派3B+ 系统:HassOS 版本:11.2

al-one commented 2 years ago

是否有报错日志

RayL1234 commented 2 years ago

稍等我看一下Sent from my iPhoneOn 9 Nov 2022, at 18:25, Alone @.***> wrote: 是否有报错日志?

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.***>

RayL1234 commented 2 years ago

log里重启前的被覆盖了 Sent from my iPhoneOn 9 Nov 2022, at 18:25, Alone @.***> wrote: 是否有报错日志?

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.***>

RayL1234 commented 2 years ago

我刚才又重新还原了一遍 左下角刚出现加载miot auto 就reconnect了 此时的log 还没来的及出现报错信息 Sent from my iPhoneOn 9 Nov 2022, at 18:41, Ray Liu @.> wrote:稍等我看一下Sent from my iPhoneOn 9 Nov 2022, at 18:25, Alone @.> wrote: 是否有报错日志?

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.***>

al-one commented 2 years ago

建议重启前在宿主机使用下面的shell命令持续记录日志:

tail -F /usr/share/hassio/homeassistant/home-assistant.log >> /usr/share/hassio/homeassistant/home-assistant-bak.log

或者在Terminal & SSH加载项执行:

tail -F /config/home-assistant.log >> /config/home-assistant-bak.log
RayL1234 commented 2 years ago

ok 我晚点试试Sent from my iPhoneOn 10 Nov 2022, at 10:14, Alone @.***> wrote: 建议重启前在宿主机使用下面的shell命令持续记录日志: tail -F /usr/share/hassio/homeassistant/home-assistant.log >> /usr/share/hassio/homeassistant/home-assistant-bak.log 或者在Terminal & SSH加载项执行: tail -F /config/home-assistant.log >> /config/home-assistant-bak.log

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.***>

RayL1234 commented 2 years ago

log最后一行是这个 ip_attr: dict | None = device["ip"][0] if "ip" in device else None IndexError: list index out of range

al-one commented 1 year ago

请问现在还有此问题吗?

RayL1234 commented 1 year ago

请问现在还有此问题吗?

偶发还有 重启HA 服务后卡在Miot Auto加载然后直接reconnect 循环 不过现在利用reboot System 可以解决

signxer commented 1 year ago

请问如何解决的?同样的硬件环境我还是无限重启,导致现在不敢随便重启,每次停用Homekit设备都要重新指定房间太麻烦了

RayL1234 commented 1 year ago

将所有miot硬件删除 然后重装插件 重新登陆重新加载即可Sent from my iPhoneOn 31 Dec 2022, at 14:32, Livrestrela @.***> wrote: 请问如何解决的?同样的硬件环境我还是无限重启,导致现在不敢随便重启,每次停用Homekit设备都要重新指定房间太麻烦了

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.***>

signxer commented 1 year ago

我重装了HAOS-HACS-MIOT插件,还是遇到了同样的问题,日志如下

2023-01-18 12:39:10.928 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration hacs which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2023-01-18 12:39:10.938 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration xiaomi_miot which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2023-01-18 12:39:10.947 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration ds_air which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2023-01-18 12:39:18.361 WARNING (Recorder) [homeassistant.components.recorder.util] The system could not validate that the sqlite3 database at //config/home-assistant_v2.db was shutdown cleanly 2023-01-18 12:39:18.694 WARNING (Recorder) [homeassistant.components.recorder.util] Ended unfinished session (id=75 from 2023-01-18 04:36:24.569834) 2023-01-18 12:42:38.063 ERROR (MainThread) [homeassistant.components.hassio.handler] Timeout on /ingress/validate_session request 2023-01-18 12:42:40.913 ERROR (MainThread) [homeassistant.components.hassio] Failed to to call /ingress/validate_session - 2023-01-18 12:42:44.030 ERROR (MainThread) [homeassistant.components.hassio.handler] Timeout on /ingress/validate_session request 2023-01-18 12:43:00.963 ERROR (MainThread) [homeassistant.components.hassio] Failed to to call /ingress/validate_session -