nbogojevic/homeassistant-midea-air-appliances-lan

Add current_humidity attribute for dehumidifiers

Closed this issue · 4 comments

yuejon commented

Is your feature request related to a problem? Please describe.
The currenty humidity attribute was added as part of Home Assistant 2023.7 core but it has yet to be implemented with this integration:

https://www.home-assistant.io/blog/2023/07/05/release-20237/#other-noteworthy-changes

image

The current humidity is currently an entity of it's own, but it should perhaps be included in the humidifier's attribute so that the current versions of the humidifier cards would display it.

Describe the solution you'd like
Currently the default humidifier card does not show the current humidity:
image

However, if the current_humidity attribute was added, the built in humidifier card would work perfectly
image

Describe alternatives you've considered
I've tried using a python script to update the current_humidity attribute but it always gets blanked out after a few seconds.

I made a PR (#128 ) for this issue, it`s only one line in the custom_components/midea_dehumidifier_lan/humidifier.py

image

yuejon commented

Awesome. Thank you! I copied that line of code into my humidifier.py. Hope this will get merged at some point.

yuejon commented

Whoops... accidentally closed the issue.

Integrated