-
Notifications
You must be signed in to change notification settings - Fork 908
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
小米门窗传感器2(isa.magnet.dw2hl)的状态反了 #741
Comments
这个问题我之前提过,#236 |
@dldui-captain 创建辅助元素 → Template → 二元传感器模板 可选:再链接到这个设备,就是我图里的效果 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the Bug / 描述问题
小米门窗传感器2(isa.magnet.dw2hl)的 contact-state 被直接返回为 is_on 属性的状态,导致 HA 中的状态不对,桥接到 HomeKit 中的状态也不对
How to Reproduce / 复现步骤
关门时,sensor 的文本状态描述无误,为“接触”。但是二进制状态不对:
Expected Behavior / 预期结果
contact-state 为 True 时,binary_sensor 的状态应该是 off
Reproduce Time / 问题复现的时间点
2025-02-08 11:32:24
Home Assistant Logs / 系统日志
No response
Log Timezone / 日志时区
Asia/Shanghai
Home Assistant Core Version / Home Assistant Core 版本
2025.2.1
Home Assistant Operation System Version / Home Assistant Operation System 版本
N/A
Xiaomi Home Integration Version / 米家集成版本
v0.1.5b2
Additional Context / 其他说明
HA 文档中对于 binary_sensor 的 ON/OFF 状态的说明:
The text was updated successfully, but these errors were encountered: