bwp91 / homebridge-meross

Homebridge plugin to integrate Meross devices into HomeKit.
MIT License
194 stars 32 forks source link

Expose Humidifier as HK Humidifier (not fan) #400

Open Marfre888 opened 2 years ago

Marfre888 commented 2 years ago

I have just bought the Meross Humidifier (MSXH0). I realised that it is exposed as a fan tile. Homekit has a humidifier tile, as seen in the photo below (from a Vocolinc Flowerbud) which is very useful, as Siri works correctly, and it allows you to create the correct shortcut.

IMG_9230FBA28D5B-1

bwp91 commented 2 years ago

Hi @Marfre888

Any Homekit humidifier accessory type requires the current air humidity to be set. In this case the meross humidifier doesn’t report the current humidity, this is why I had to expose as a fan accessory type instead.

The homekit humidifier UI is based around the target and the current humidity, turning on and off when required automatically. So even hard coding a current humidity value of say 50% would seem more counter intuitive than a simple fan.

I can potentially look into exposing as a humidifier if you have another meross device sensor in the room that provides a current humidity value?

Marfre888 commented 2 years ago

Hey @bwp91

Yes, I see where you are coming from.

However, the Homebrdige Broadlink RM Pro plugin also has the same problem when exposing an HVAC system, as the IR blaster doesn't have a temperature readout.

As a workaround, they have integrated two options into homebridge (1), either the ability to set a target value (which is only for aesthetics), or you can push the room temperature to a file on the host device which the plugin will read from. I have set up through homekit automation where every time the temp changes, it collects the temp and pushes to the set file through ssh (2), however, iOS 15.0 broke the ssh command.

(1) 'pseudoDeviceTemperature': 0 OR 'temperatureFilePath': "****"

(2) cd /home/pi/Documents/ echo "Number" > temperature.txt

This would mean that the current settings of 50% for intermittent and 100% for continuous would need to be moved to a separate switch, or incorporated into a slide if that is possible.

Furthermore, the led is exposed as a slider, however in this case it is only possible to turn it on or off. Would it be possible to expose it as below?

IMG_0026

bwp91 commented 2 years ago

With regards to the led is it not possible to change the brightness or the colour?

Marfre888 commented 2 years ago

Ahh shoot, Homekit doesn't allow you to change the led colors if the tile is an on/off light right?

What do you think about the other suggestions?

stale[bot] commented 2 years ago

This issue has been automatically marked as inactive because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

sadanro100 commented 2 years ago

Is it possible to choose between Continuous or Intermittent when setting up the on/off switch?

I don't really mind about having a dedicated switch for the two states, I only want to be able to start the humidifier in Intermittent mode as it's the only mode I use.