Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

xiaomi_airpurifier not functional de humidifier with Hass V 2025.1.x - HVAC_MODE_DRY deprecated constant #395

Open
peterhoe opened this issue Jan 4, 2025 · 3 comments

Comments

@peterhoe
Copy link

peterhoe commented Jan 4, 2025

Attempted upgrade to Hass V 2025.1.0 and ran into an issue where xioami de humidifiers were coming up as unknown status
restored to HassV 2024.12.5, functions again

model: nwt.derh.wdh318efw1

Warning in log as follows

WARNING (ImportExecutor_0) [homeassistant.components.climate.const] HVAC_MODE_DRY was used from xiaomi_miio_airpurifier, this is a deprecated constant which will be removed in HA Core 2025.1. Use HVACMode.DRY instead, please report it to the author of the 'xiaomi_miio_airpurifier' custom integration

@peterhoe
Copy link
Author

peterhoe commented Jan 4, 2025

In addition I also see the following entries in my logfile of Hass V2024.12.5

WARNING (ImportExecutor_0) [homeassistant.components.climate.const] HVAC_MODE_OFF was used from xiaomi_miio_airpurifier, this is a deprecated constant which will be removed in HA Core 2025.1. Use HVACMode.OFF instead, please report it to the author of the 'xiaomi_miio_airpurifier' custom integration

WARNING (ImportExecutor_0) [homeassistant.components.climate.const] SUPPORT_FAN_MODE was used from xiaomi_miio_airpurifier, this is a deprecated constant which will be removed in HA Core 2025.1. Use ClimateEntityFeature.FAN_MODE instead, please report it to the author of the 'xiaomi_miio_airpurifier' custom integration

WARNING (ImportExecutor_0) [homeassistant.components.climate.const] SUPPORT_PRESET_MODE was used from xiaomi_miio_airpurifier, this is a deprecated constant which will be removed in HA Core 2025.1. Use ClimateEntityFeature.PRESET_MODE instead, please report it to the author of the 'xiaomi_miio_airpurifier' custom integration

WARNING (ImportExecutor_0) [homeassistant.components.climate.const] SUPPORT_TARGET_HUMIDITY was used from xiaomi_miio_airpurifier, this is a deprecated constant which will be removed in HA Core 2025.1. Use ClimateEntityFeature.TARGET_HUMIDITY instead, please report it to the author of the 'xiaomi_miio_airpurifier' custom integration

WARNING (ImportExecutor_0) [homeassistant.const] TEMP_CELSIUS was used from xiaomi_miio_airpurifier, this is a deprecated constant which will be removed in HA Core 2025.1. Use UnitOfTemperature.CELSIUS instead, please report it to the author of the 'xiaomi_miio_airpurifier' custom integration

WARNING (MainThread) [homeassistant.helpers.entity] Entity None (<class 'custom_components.xiaomi_miio_airpurifier.climate.XiaomiAirDehumidifier'>) is using deprecated supported features values which will be removed in HA Core 2025.1. Instead it should use <ClimateEntityFeature: 0>, please create a bug report at https://github.com/syssi/xiaomi_airpurifier/issues and reference https://developers.home-assistant.io/blog/2023/12/28/support-feature-magic-numbers-deprecation

WARNING (MainThread) [homeassistant.components.climate] Entity None (<class 'custom_components.xiaomi_miio_airpurifier.climate.XiaomiAirDehumidifier'>) does not set ClimateEntityFeature.TURN_OFF but implements the turn_off method. Please create a bug report at https://github.com/syssi/xiaomi_airpurifier/issues

WARNING (MainThread) [homeassistant.components.climate] Entity None (<class 'custom_components.xiaomi_miio_airpurifier.climate.XiaomiAirDehumidifier'>) does not set ClimateEntityFeature.TURN_ON but implements the turn_on method. Please create a bug report at https://github.com/syssi/xiaomi_airpurifier/issues

WARNING (MainThread) [homeassistant.components.climate] Entity None (<class 'custom_components.xiaomi_miio_airpurifier.climate.XiaomiAirDehumidifier'>) implements HVACMode(s): off, dry and therefore implicitly supports the turn_on/turn_off methods without setting the proper ClimateEntityFeature. Please create a bug report at https://github.com/syssi/xiaomi_airpurifier/issues

WARNING (MainThread) [homeassistant.helpers.entity] Entity None (<class 'custom_components.xiaomi_miio_airpurifier.climate.XiaomiAirDehumidifier'>) is using deprecated supported features values which will be removed in HA Core 2025.1. Instead it should use <ClimateEntityFeature: 0>, please create a bug report at https://github.com/syssi/xiaomi_airpurifier/issues and reference https://developers.home-assistant.io/blog/2023/12/28/support-feature-magic-numbers-deprecation

WARNING (MainThread) [homeassistant.components.climate] Entity None (<class 'custom_components.xiaomi_miio_airpurifier.climate.XiaomiAirDehumidifier'>) does not set ClimateEntityFeature.TURN_OFF but implements the turn_off method. Please create a bug report at https://github.com/syssi/xiaomi_airpurifier/issues

WARNING (MainThread) [homeassistant.components.climate] Entity None (<class 'custom_components.xiaomi_miio_airpurifier.climate.XiaomiAirDehumidifier'>) does not set ClimateEntityFeature.TURN_ON but implements the turn_on method. Please create a bug report at https://github.com/syssi/xiaomi_airpurifier/issues

WARNING (MainThread) [homeassistant.components.climate] Entity None (<class 'custom_components.xiaomi_miio_airpurifier.climate.XiaomiAirDehumidifier'>) implements HVACMode(s): off, dry and therefore implicitly supports the turn_on/turn_off methods without setting the proper ClimateEntityFeature. Please create a bug report at https://github.com/syssi/xiaomi_airpurifier/issues

WARNING (ImportExecutor_0) [py.warnings] /usr/local/lib/python3.13/site-packages/ppadb/device.py:34: SyntaxWarning: invalid escape sequence '\s'
  INSTALL_RESULT_PATTERN = "(Success|Failure|Error)\s?(.*)"

@peterhoe peterhoe changed the title xiaomi_airpurifier not functional with Hass V 2025.1.0 xiaomi_airpurifier not functional with Hass V 2025.1.x Jan 4, 2025
@peterhoe peterhoe changed the title xiaomi_airpurifier not functional with Hass V 2025.1.x xiaomi_airpurifier not functional de humidifier with Hass V 2025.1.x Jan 4, 2025
@peterhoe peterhoe changed the title xiaomi_airpurifier not functional de humidifier with Hass V 2025.1.x xiaomi_airpurifier not functional de humidifier with Hass V 2025.1.x - HVAC_MODE_DRY deprecated constant Jan 4, 2025
@syssi
Copy link
Owner

syssi commented Jan 4, 2025

I will have a look later the week! Thanks for adding the hint to the community release thread.

@klaus1956
Copy link

Same here: Xiaomi Purifier 4 light is unknown in HA since 2025.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants