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.19k stars 585 forks source link

lumi.sensor_smoke.mcn02小米烟雾报警器homekit无响应 #543

Open befantasy opened 2 years ago

befantasy commented 2 years ago

型号是lumi.sensor_smoke.mcn02。 HA中看起来也正常,但是在homekit中总是无响应,每次重启HA之后都要手动重载homekit bridge才能恢复正常,也没有什么报错。

al-one commented 2 years ago

实体日志中是否出现过不可用状态,以及配置-日志中有无该设备相关报错日志。

farukonfly commented 2 years ago

Aqara烟雾报警器(NB-IoT版) 请问这一款烟雾报警器无法接入么

befantasy commented 2 years ago

实体日志中是否出现过不可用状态,以及配置-日志中有无该设备相关报错日志。

又持续观察了一段时间,重启HA之后必然出现这种情况,设备生成的三个实体sensor.lumi_mcn02_ce8c_smoke_sensor/binary_sensor.lumi_mcn02_ce8c_smoke_status/sensor.lumi_mcn02_ce8c_battery_level状态都是正常的,只有重启过程是不可用,日志中没有任何warn级别的信息。在homekit中也可以正常显示出来报警器的实体,告警状态,电量。。。但是会多出来一个没有响应的实体,点进去也是和正常的那个一样能显示告警状态和电量。。。

手动重载homekit bridge之后都可以恢复正常,只要不重启HA,好像就不会再出现。

befantasy commented 2 years ago

对了,HA里面sensor.lumi_mcn02_ce8c_smoke_sensor的状态是busy。但我看小米spec里这个busy是正常的,https://home.miot-spec.com/spec/lumi.sensor_smoke.mcn02

al-one commented 2 years ago

请提供开发者工具中该设备的所有实体的状态属性。

befantasy commented 2 years ago

image

befantasy commented 2 years ago

image