Replies: 1 comment
-
|
v0.2.4 已支持,需要选择 xiaomi_home > 配置 > 更新实体转换规则 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
建议存在传感器(以 xiaomi.sensor_occupy.03 为例)调整实体类型,并参照 Xiaomi BLE 集成。
目前的不便之处:
to: "有人",而不是 HA occupancy binary_sensor 标准化的onoff2分钟持续无人, 同时如果有人时会变为未知。而使用 Xiaomi BLE 中的 measurement 类型,则可以做数学判断,如{{ states(sensor.occupancy_duration_cleared) > 5 }}从而实现更灵活的自动化。同时,系统默认的 存在/测量 device 和 state class 的 icon 也更容易显示实体的类型与状态(相比 enum 的 T 字 icon)
使用
binary_sensor的 on / off ,有人 / 无人,在家 / 离家 的开闭二元,代替enum sensor,也更符合业务逻辑。🙏同设备 Xiaomi Home 与 Xiaomi BLE 实体 UI 对比
同设备 Device Class / State_Class 类型对比:
Beta Was this translation helpful? Give feedback.
All reactions