Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

部分设备在重启HA时会短暂地从unavailable变为unknown #818

Open
NXY666 opened this issue Mar 3, 2025 · 1 comment
Open

部分设备在重启HA时会短暂地从unavailable变为unknown #818

NXY666 opened this issue Mar 3, 2025 · 1 comment

Comments

@NXY666
Copy link

NXY666 commented Mar 3, 2025

Describe the Bug / 描述问题

部分设备(尤其是一些纯蓝牙设备),在重启HA时实体会出现从unavailable变为unknown的状态变化,导致大量自动化同时触发。

How to Reproduce / 复现步骤

  1. 重启HA

Expected Behavior / 预期结果

重启时不触发事件

Reproduce Time / 问题复现的时间点

2025-03-03 22:04:10

Home Assistant Logs / 系统日志

重启可能导致自动化批量执行(因为这个问题),家人都在家不方便调试。

如果需要日志,请和我说,我找时间测试。

Log Timezone / 日志时区

Asia/Shanghai

Home Assistant Core Version / Home Assistant Core 版本

2025.2.5

Home Assistant Operation System Version / Home Assistant Operation System 版本

Docker安装

Xiaomi Home Integration Version / 米家集成版本

v0.2.0

Additional Context / 其他说明

Image

Image

Image

以上截图是重启时产生的部分触发记录。

not_from:
  - unavailable
not_to:
  - unavailable
  - unknown

目前只能通过这个玩意规避问题,但是如果新建自动化很容易忘记加上,而且加上就不能用可视化编辑器了,不是长久之计。

@jiafengwang
Copy link

我也发现一个相似的情况,导致自动化大量被触发。查看日志,主要是一些zigbee设备,在宽带运营商pppoe强制更换动态ip时会有一瞬间断开互联网连接(只是那一瞬间),这时会产生unavailable的事件变化。自动化检测到实体状态发生变化,立即被误触发。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants