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.42k stars 616 forks source link

chunmi.health_pot.a1设备没有通过云端接入 #883

Open shawn996 opened 1 year ago

shawn996 commented 1 year ago

ha在家中,chunmi.health_pot.a1 养生壶在公司,因此先设置了一个本地模式,接入ha网络需要本地接入的设备;其次创建了一个云端模式,用于接入chunmi.health_pot.a1和小爱音响。 但问题来了,小爱音响接入没问题,可chunmi.health_pot.a1是不可用状态。怀疑chunmi.health_pot.a1还是走了本地接入。

有没有办法在选择自动模式的情况下,设置指定设备的接入模式,解决这种跨网络的问题。

al-one commented 1 year ago

我印象中,该型号的养生壶在云端接入时有点问题,所以才默认本地接入了。你可以通过自定义设备强制云端接入:

# configuration.yaml
xiaomi_miot:
  device_customizes:
    chunmi.health_pot.a1:
      miot_cloud: true
      miot_local: false
shawn996 commented 1 year ago

谢谢大佬的答复,使用上面的代码测试,还是未接入状态。 然后我打开了debug模式重新对设备进行了添加。log里面看到3条记录Remove miot device、Xiaomi cloud device、(chunmi.health_pot.a1): Initializing miot device with mapping,初始化设备后的那30秒设备状态是正确的,后面又变成了不可用。 后续log也没有chunmi.health_pot.a1的记录了。

al-one commented 1 year ago

已移除chunmi.health_pot.a1的默认云端接入自定义选项。

shawn996 commented 1 year ago

不管用呢,同步了master代码,看起来这个设备没有发起云端的请求。