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.65k stars 664 forks source link

Got MiioException while fetching the state: Unable to discover the device #1386

Open SergeevDeAl opened 1 year ago

SergeevDeAl commented 1 year ago

Device model / 设备型号

cgllc.airm.cgd1st

Component version / 插件版本

0.7.13

HA core version / HA版本

2023.11.1

Integrated mode / 集成方式

Local (本地模式)

The problem / 问题详情

One of my 5 air monitor lite became unavailable some time ago, after a reboot (power outage in the house). Before this, all devices worked. I did not install updates or change the location of the devices. Ping to the device from the HA server is successful. The device is available in MiHome app. There are such entries in the logs: 2023-11-10 10:28:54.118 ERROR (MainThread) [custom_components.xiaomi_miot.sensor] Air ChildRoom(cgllc.airm.cgd1st): Got MiioException while fetching the state: Unable to discover the device 192.168.1.75, mapping: {'environment.relative_humidity': {'siid': 3, 'piid': 1}, 'environment.pm2_5_density': {'siid': 3, 'piid': 4}, 'environment.pm10_density': {'siid': 3, 'piid': 5}, 'environment.temperature': {'siid': 3, 'piid': 7}, 'environment.co2_density': {'siid': 3, 'piid': 8}, 'battery_level': {'siid': 4, 'piid': 1}, 'battery.charging_state': {'siid': 4, 'piid': 2}, 'battery.voltage': {'siid': 4, 'piid': 3}}, max_properties: 9/8

Entity attributes / 实体属性

sensor.cgllc_cgd1st_42d4_battery_level Air ChildRoom Battery Level unavailable restored: true state_class: measurement device_class: battery friendly_name: Air ChildRoom Battery Level supported_features: 0 unit_of_measurement: % sensor.cgllc_cgd1st_42d4_charging_state Air ChildRoom Battery Charging State unavailable restored: true friendly_name: Air ChildRoom Battery Charging State supported_features: 0 sensor.cgllc_cgd1st_42d4_co2_density Air ChildRoom Environment CO2 Density unavailable restored: true state_class: measurement device_class: carbon_dioxide icon: mdi:molecule-co2 friendly_name: Air ChildRoom Environment CO2 Density supported_features: 0 unit_of_measurement: ppm sensor.cgllc_cgd1st_42d4_environment Air ChildRoom Environment Relative Humidity unavailable state_class: measurement unit_of_measurement: % device_class: humidity friendly_name: Air ChildRoom Environment Relative Humidity supported_features: 0 sensor.cgllc_cgd1st_42d4_pm10_density Air ChildRoom Environment PM10 Density unavailable restored: true device_class: pm10 friendly_name: Air ChildRoom Environment PM10 Density supported_features: 0 unit_of_measurement: µg/m³ sensor.cgllc_cgd1st_42d4_pm25_density Air ChildRoom Environment PM2.5 Density unavailable restored: true state_class: measurement device_class: pm25 icon: mdi:air-filter friendly_name: Air ChildRoom Environment PM2.5 Density supported_features: 0 unit_of_measurement: µg/m³ sensor.cgllc_cgd1st_42d4_temperature Air ChildRoom Environment Temperature unavailable restored: true state_class: measurement device_class: temperature friendly_name: Air ChildRoom Environment Temperature supported_features: 0 unit_of_measurement: °C sensor.cgllc_cgd1st_42d4_voltage Air ChildRoom Battery Voltage unavailable restored: true device_class: voltage friendly_name: Air ChildRoom Battery Voltage supported_features: 0 unit_of_measurement: V

Home Assistant Logs / 系统日志

2023-11-10 10:28:54.118 ERROR (MainThread) [custom_components.xiaomi_miot.sensor] Air ChildRoom(cgllc.airm.cgd1st): Got MiioException while fetching the state: Unable to discover the device 192.168.1.75, mapping: {'environment.relative_humidity': {'siid': 3, 'piid': 1}, 'environment.pm2_5_density': {'siid': 3, 'piid': 4}, 'environment.pm10_density': {'siid': 3, 'piid': 5}, 'environment.temperature': {'siid': 3, 'piid': 7}, 'environment.co2_density': {'siid': 3, 'piid': 8}, 'battery_level': {'siid': 4, 'piid': 1}, 'battery.charging_state': {'siid': 4, 'piid': 2}, 'battery.voltage': {'siid': 4, 'piid': 3}}, max_properties: 9/8

SergeyPomelov commented 7 months ago

Devices offline Some devices cannot be connected in the LAN, please check their IP and make sure they are in the same subnet as the HA.

一些设备无法通过局域网连接,请检查它们的IP,并确保它们和HA在同一子网。

Qingping Air(cgllc.airmonitor.s1): 192.168.1.3