xiaomi_airpurifier icon indicating copy to clipboard operation
xiaomi_airpurifier copied to clipboard

Implement Humidifier as Humidifier Entity

Open barnabyjones opened this issue 3 years ago • 7 comments

Hi,

Would it be possible to add support for the deerma.humidifier.mjjsq climate control? I have it working as a "fan", but I can't set the target humidity value. When I configure is as "climate" I get an unsupported model error.

Cheers.

barnabyjones avatar Oct 19 '20 08:10 barnabyjones

You've to use the xiaomi_miio_airpurifier.fan_set_target_humidity service to set the target humidity. There is no nice user interface to control the target humidity right now. If the ClimateEntity provides a user interface i will move the air humidifier devices to this entity some day.

syssi avatar Oct 19 '20 08:10 syssi

Thank you! I've been able to use that service to set the target humidity in my automatons. I'm still learning HA, but I think as you say the ClimateEntity would provide a nice user interface for controlling fan speed and target humidity.

barnabyjones avatar Nov 26 '20 04:11 barnabyjones

Shouldn't humidifiers use a humidifier platform?

bieniu avatar Dec 01 '20 09:12 bieniu

I wasn't aware of this "new" platform. Thanks for the hint!

syssi avatar Dec 01 '20 09:12 syssi

@bieniu Good point about the Humidifier Platform!

Looking at the documentation, it appears that the platform supports the following services: humidifier.set_mode, humidifier.set_humidity, humidifier.turn_on, humidifier.turn_off, humidifier.toggle

If the humidifier.set_mode service can support the various fan modes (low, medium, high) in addition to a target humidity then it would be perfect.

barnabyjones avatar Dec 02 '20 02:12 barnabyjones

This would also expose the entities properly in HomeKit including humidity properties.

PizzaPino avatar Mar 08 '21 11:03 PizzaPino

If this change is done, is there anything holding back for official xiaomi_miio HA support?

dedors avatar Apr 08 '21 02:04 dedors