hass-xiaomi-miot icon indicating copy to clipboard operation
hass-xiaomi-miot copied to clipboard

启动时有 warning 日志(lumi_mcn02_f582_air_conditioner 和 cuco_cp2d_e7a6_electric_power)

Open he-sb opened this issue 10 months ago • 1 comments

每次启动后会提示以下三条 warning 日志以及一条 error 日志:

WARNING (MainThread) [homeassistant.components.climate] Entity xiaomi_miot.lumi_mcn02_f582_air_conditioner (<class 'custom_components.xiaomi_miot.climate.MiotClimateEntity'>) does not set ClimateEntityFeature.TURN_OFF but implements the turn_off method. Please create a bug report at https://github.com/al-one/hass-xiaomi-miot/issues
WARNING (MainThread) [homeassistant.components.climate] Entity xiaomi_miot.lumi_mcn02_f582_air_conditioner (<class 'custom_components.xiaomi_miot.climate.MiotClimateEntity'>) does not set ClimateEntityFeature.TURN_ON but implements the turn_on method. Please create a bug report at https://github.com/al-one/hass-xiaomi-miot/issues
WARNING (MainThread) [homeassistant.components.climate] Entity xiaomi_miot.lumi_mcn02_f582_air_conditioner (<class 'custom_components.xiaomi_miot.climate.MiotClimateEntity'>) implements HVACMode(s): auto, off and therefore implicitly supports the turn_on/turn_off methods without setting the proper ClimateEntityFeature. Please create a bug report at https://github.com/al-one/hass-xiaomi-miot/issues
ERROR (MainThread) [homeassistant.components.sensor] Platform xiaomi_miot does not generate unique IDs. ID 10:b7:13:f5:e7:a6-4976b09ee7a763d5f9ad24a05b8327f2-power_consumption-3.electric_power-4 is already used by sensor.cuco_cp2d_e7a6_electric_power - ignoring sensor.cuco_cp2d_e7a6_electric_power

暂不影响使用,但每次重启 ha 或重启本插件时都会有这四条日志。

版本信息:

  • HA: 2024.4.2
  • Xiaomi Miot Auto: 0.7.17

he-sb avatar Apr 12 '24 05:04 he-sb

根据 https://github.com/al-one/hass-xiaomi-miot/issues/1562#issuecomment-1988788443 的提示,删除了 .storage/core.entity_registry10:b7:13:f5:e7:a6-4976b09ee7a763d5f9ad24a05b8327f2-power_consumption-3.electric_power-4 所在的行,然后重启 HA,未再出现第四条 error 日志,但前三条 warning 日志还是会出现。

he-sb avatar Apr 21 '24 16:04 he-sb