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.73k stars 672 forks source link

Unable to discover the device #1884

Open khaisilk1910 opened 2 months ago

khaisilk1910 commented 2 months ago

Device model / 设备型号

zhimi.airp.rma3

Component version / 插件版本

0.7.20

HA core version / HA版本

2024.10.0

Integrated mode / 集成方式

Local (本地模式)

The problem / 问题详情

This error originated from a custom integration when don't plug power the device

Logger: custom_components.xiaomi_miot.fan Source: custom_components/xiaomi_miot/init.py:1445 integration: Xiaomi Miot Auto (documentation, issues) First occurred: 10:44:41 (1892 occurrences) Last logged: 16:00:21

Xiaomi Smart Air Purifier 4 Lite(zhimi.airp.rma3): Got MiioException while fetching the state: Unable to discover the device 192.168.31.42, mapping: {'air_purifier.on': {'siid': 2, 'piid': 1}, 'air_purifier.fault': {'siid': 2, 'piid': 2}, 'air_purifier.mode': {'siid': 2, 'piid': 4}, 'aqi.aqi_updata_heartbeat': {'siid': 10, 'piid': 1}, 'custom_service.moto_speed_rpm': {'siid': 9, 'piid': 1}, 'filter_used_time_dbg-9-2': {'siid': 9, 'piid': 2}, 'air_purifier_favorite.fan_level': {'siid': 11, 'piid': 1}, 'physical_controls_locked': {'siid': 8, 'piid': 1}, 'screen.brightness': {'siid': 7, 'piid': 2}, 'alarm': {'siid': 6, 'piid': 1}, 'filter.filter_life_level': {'siid': 4, 'piid': 1}, 'filter.filter_used_time': {'siid': 4, 'piid': 3}, 'filter.filter_left_time': {'siid': 4, 'piid': 4}, 'environment.relative_humidity': {'siid': 3, 'piid': 1}, 'environment.pm2_5_density': {'siid': 3, 'piid': 4}, 'environment.temperature': {'siid': 3, 'piid': 7}, 'environment.air_quality': {'siid': 3, 'piid': 8}}, max_properties: 9/17

Entity attributes / 实体属性

Unable to discover the device

Home Assistant Logs / 系统日志

This error originated from a custom integration.

Logger: custom_components.xiaomi_miot.fan Source: custom_components/xiaomi_miot/init.py:1445 integration: Xiaomi Miot Auto (documentation, issues) First occurred: 10:44:41 (1892 occurrences) Last logged: 16:00:21

Xiaomi Smart Air Purifier 4 Lite(zhimi.airp.rma3): Got MiioException while fetching the state: Unable to discover the device 192.168.31.42, mapping: {'air_purifier.on': {'siid': 2, 'piid': 1}, 'air_purifier.fault': {'siid': 2, 'piid': 2}, 'air_purifier.mode': {'siid': 2, 'piid': 4}, 'aqi.aqi_updata_heartbeat': {'siid': 10, 'piid': 1}, 'custom_service.moto_speed_rpm': {'siid': 9, 'piid': 1}, 'filter_used_time_dbg-9-2': {'siid': 9, 'piid': 2}, 'air_purifier_favorite.fan_level': {'siid': 11, 'piid': 1}, 'physical_controls_locked': {'siid': 8, 'piid': 1}, 'screen.brightness': {'siid': 7, 'piid': 2}, 'alarm': {'siid': 6, 'piid': 1}, 'filter.filter_life_level': {'siid': 4, 'piid': 1}, 'filter.filter_used_time': {'siid': 4, 'piid': 3}, 'filter.filter_left_time': {'siid': 4, 'piid': 4}, 'environment.relative_humidity': {'siid': 3, 'piid': 1}, 'environment.pm2_5_density': {'siid': 3, 'piid': 4}, 'environment.temperature': {'siid': 3, 'piid': 7}, 'environment.air_quality': {'siid': 3, 'piid': 8}}, max_properties: 9/17

KitHubek commented 1 month ago

the same here, all devices are always connected to wifi and Ap;a logs not shows any disconnect.

devices: zhimi.fan.za5 zhimi.airpurifier.mb3 zhimi.airpurifier.v7

Rejestrator: homeassistant.helpers.entity
Źródło: helpers/entity.py:1270
Pierwsze zdarzenie: 24 października 2024 17:16:32 (353 zdarzenia)
Ostatnio zalogowany: 19:12:36

Update of fan.zhimi_mb3_c97a_air_purifier is taking over 10 seconds
Update of sensor.wielicka_256 is taking over 10 seconds
Update of fan.zhimi_mb3_e0af_air_purifier is taking over 10 seconds
Update of fan.zhimi_fan_za5_3 is taking over 10 seconds
Update of fan.zhimi_fan_za5 is taking over 10 seconds

AND

Ten błąd pochodzi z niestandardowej integracji.

Rejestrator: custom_components.xiaomi_miot.fan
Źródło: custom_components/xiaomi_miot/__init__.py:1456
integracja: Xiaomi Miot Auto (dokumentacja, Problemy)
Pierwsze zdarzenie: 24 października 2024 17:21:03 (2344 zdarzenia)
Ostatnio zalogowany: 18:51:06

Oczyszczacz one(zhimi.airpurifier.mb3): Got MiioException while fetching the state: Unable to discover the device 192.168.100.10, mapping: {'air_purifier.fault': {'siid': 2, 'piid': 1}, 'air_purifier.on': {'siid': 2, 'piid': 2}, 'air_purifier.fan_level': {'siid': 2, 'piid': 4}, 'air_purifier.mode': {'siid': 2, 'piid': 5}, 'aqi.purify_volume': {'siid': 13, 'piid': 1}, 'aqi.average_aqi': {'siid': 13, 'piid': 2}, 'aqi.aqi_updata_heartbeat': {'siid': 13, 'piid': 9}, 'use_time': {'siid': 12, 'piid': 1}, 'motor_speed': {'siid': 10, 'piid': 8}, 'motor_speed.favorite_fan_level': {'siid': 10, 'piid': 10}, 'physical_controls_locked': {'siid': 7, 'piid': 1}, 'indicator_light.brightness': {'siid': 6, 'piid': 1}, 'indicator_light.on': {'siid': 6, 'piid': 6}, 'alarm': {'siid': 5, 'piid': 1}, 'filter.filter_life_level': {'siid': 4, 'piid': 3}, 'filter.filter_used_time': {'siid': 4, 'piid': 5}, 'environment.pm2_5_density': {'siid': 3, 'piid': 6}, 'environment.relative_humidity': {'siid': 3, 'piid': 7}, 'environment.temperature': {'siid': 3, 'piid': 8}}, max_properties: 10/19
Wentylator one(zhimi.fan.za5): Got MiioException while fetching the state: Unable to discover the device 192.168.100.14, mapping: {'fan.on': {'siid': 2, 'piid': 1}, 'fan.fan_level': {'siid': 2, 'piid': 2}, 'fan.horizontal_swing': {'siid': 2, 'piid': 3}, 'fan.horizontal_angle': {'siid': 2, 'piid': 5}, 'fan.mode': {'siid': 2, 'piid': 7}, 'fan.off_delay': {'siid': 2, 'piid': 10}, 'fan.anion': {'siid': 2, 'piid': 11}, 'custom_service.button_press': {'siid': 6, 'piid': 1}, 'custom_service.battery_state': {'siid': 6, 'piid': 2}, 'custom_service.speed_now': {'siid': 6, 'piid': 4}, 'custom_service.ac_state': {'siid': 6, 'piid': 5}, 'custom_service.speed_level': {'siid': 6, 'piid': 8}, 'custom_service.country_code': {'siid': 6, 'piid': 9}, 'custom_service.temp_sens': {'siid': 6, 'piid': 10}, 'environment.relative_humidity': {'siid': 7, 'piid': 1}, 'environment.temperature': {'siid': 7, 'piid': 7}, 'alarm': {'siid': 5, 'piid': 1}, 'indicator_light.brightness': {'siid': 4, 'piid': 3}, 'physical_controls_locked': {'siid': 3, 'piid': 1}}, max_properties: 10/19
Oczyszczacz two(zhimi.airpurifier.mb3): Got MiioException while fetching the state: Unable to discover the device 192.168.100.11, mapping: {'air_purifier.fault': {'siid': 2, 'piid': 1}, 'air_purifier.on': {'siid': 2, 'piid': 2}, 'air_purifier.fan_level': {'siid': 2, 'piid': 4}, 'air_purifier.mode': {'siid': 2, 'piid': 5}, 'aqi.purify_volume': {'siid': 13, 'piid': 1}, 'aqi.average_aqi': {'siid': 13, 'piid': 2}, 'aqi.aqi_updata_heartbeat': {'siid': 13, 'piid': 9}, 'use_time': {'siid': 12, 'piid': 1}, 'motor_speed': {'siid': 10, 'piid': 8}, 'motor_speed.favorite_fan_level': {'siid': 10, 'piid': 10}, 'physical_controls_locked': {'siid': 7, 'piid': 1}, 'indicator_light.brightness': {'siid': 6, 'piid': 1}, 'indicator_light.on': {'siid': 6, 'piid': 6}, 'alarm': {'siid': 5, 'piid': 1}, 'filter.filter_life_level': {'siid': 4, 'piid': 3}, 'filter.filter_used_time': {'siid': 4, 'piid': 5}, 'environment.pm2_5_density': {'siid': 3, 'piid': 6}, 'environment.relative_humidity': {'siid': 3, 'piid': 7}, 'environment.temperature': {'siid': 3, 'piid': 8}}, max_properties: 10/19
Wentylator two(zhimi.fan.za5): Got MiioException while fetching the state: Unable to discover the device 192.168.100.12, mapping: {'fan.on': {'siid': 2, 'piid': 1}, 'fan.fan_level': {'siid': 2, 'piid': 2}, 'fan.horizontal_swing': {'siid': 2, 'piid': 3}, 'fan.horizontal_angle': {'siid': 2, 'piid': 5}, 'fan.mode': {'siid': 2, 'piid': 7}, 'fan.off_delay': {'siid': 2, 'piid': 10}, 'fan.anion': {'siid': 2, 'piid': 11}, 'custom_service.button_press': {'siid': 6, 'piid': 1}, 'custom_service.battery_state': {'siid': 6, 'piid': 2}, 'custom_service.speed_now': {'siid': 6, 'piid': 4}, 'custom_service.ac_state': {'siid': 6, 'piid': 5}, 'custom_service.speed_level': {'siid': 6, 'piid': 8}, 'custom_service.country_code': {'siid': 6, 'piid': 9}, 'custom_service.temp_sens': {'siid': 6, 'piid': 10}, 'environment.relative_humidity': {'siid': 7, 'piid': 1}, 'environment.temperature': {'siid': 7, 'piid': 7}, 'alarm': {'siid': 5, 'piid': 1}, 'indicator_light.brightness': {'siid': 4, 'piid': 3}, 'physical_controls_locked': {'siid': 3, 'piid': 1}}, max_properties: 10/19
Wentylator three(zhimi.fan.za5): Got MiioException while fetching the state: Unable to discover the device 192.168.100.13, mapping: {'fan.on': {'siid': 2, 'piid': 1}, 'fan.fan_level': {'siid': 2, 'piid': 2}, 'fan.horizontal_swing': {'siid': 2, 'piid': 3}, 'fan.horizontal_angle': {'siid': 2, 'piid': 5}, 'fan.mode': {'siid': 2, 'piid': 7}, 'fan.off_delay': {'siid': 2, 'piid': 10}, 'fan.anion': {'siid': 2, 'piid': 11}, 'custom_service.button_press': {'siid': 6, 'piid': 1}, 'custom_service.battery_state': {'siid': 6, 'piid': 2}, 'custom_service.speed_now': {'siid': 6, 'piid': 4}, 'custom_service.ac_state': {'siid': 6, 'piid': 5}, 'custom_service.speed_level': {'siid': 6, 'piid': 8}, 'custom_service.country_code': {'siid': 6, 'piid': 9}, 'custom_service.temp_sens': {'siid': 6, 'piid': 10}, 'environment.relative_humidity': {'siid': 7, 'piid': 1}, 'environment.temperature': {'siid': 7, 'piid': 7}, 'alarm': {'siid': 5, 'piid': 1}, 'indicator_light.brightness': {'siid': 4, 'piid': 3}, 'physical_controls_locked': {'siid': 3, 'piid': 1}}, max_properties: 10/19
al-one commented 1 month ago

Try:

# configuration.yaml
xiaomi_miot:
  device_customizes:
    zhimi.airp.rma3:
      chunk_properties: 1
KitHubek commented 1 month ago

for me, with my device id ofc, this changing nothing