Xiaomi Air Purifier - Show all sensors and Switches in UI and HomeKit

I have completely removed everything from my configuration files for my two Xiaomi air purifiers. They are models “zhimi.airpurifier.mc1” and “zhimi.airpurifier.mb3”.

But in the HA integration, only “zhimi.airpurifier.mc1” automatically appeared to me, the other one “zhimi.airpurifier.mb3” is not visible.

Do I need to configure anything further to see the other one as well?

Also, the switch for modes and fan speed settings did not appear in the device tab. What to do?

Can anyone help please?

Hi guys, I have problem with changing my automatizations after changes in HA. Could you help me? My action looks

  action:
    - service: fan.set_preset_mode
      entity_id: fan.zhimi_airpurifier_mc1
      data:
        preset_mode: Favorite
    - service: xiaomi_miio.fan_set_Favorite_level
      data_template:
        entity_id: fan.zhimi_airpurifier_mc1
        level: >
            {% if states('sensor.poziom_pm2_5') | int > 30 %}
              14
            {% elif states('sensor.poziom_pm2_5') | int > 25 %}
              10
            {% elif states('sensor.poziom_pm2_5') | int > 15 %}
              5
            {% elif states('sensor.poziom_pm2_5') | int > 10 %}
              3
            {% elif states('sensor.poziom_pm2_5') | int > 5 %}
              1
            {% else %}
              1
            {% endif %}
            

This works, remember to remove the additional conditions I have in there.

The services fan_set_favorite_level have been removed and number entity have been created instead.

  action:
    - service: fan.set_preset_mode
      entity_id: fan.zhimi_airpurifier_mc1
      data:
        preset_mode: Favorite
    - service: number.xiaomi_air_purifier_favorite_level
      data_template:
        entity_id: fan.zhimi_airpurifier_mc1
        value: >
            {% if states('sensor.poziom_pm2_5') | int > 30 %}
              14
            {% elif states('sensor.poziom_pm2_5') | int > 25 %}
              10
            {% elif states('sensor.poziom_pm2_5') | int > 15 %}
              5
            {% elif states('sensor.poziom_pm2_5') | int > 10 %}
              3
            {% elif states('sensor.poziom_pm2_5') | int > 5 %}
              1
            {% else %}
              1
            {% endif %}
            

Where can I find the device token of my Xiaomi Air purifier 3H ?

Hi all,
I’m using the “Pro H” and could connect it as “mb3” ( zhimi.airpurifier.mb3).

All Sensors and switches seem to show up, but:

  • The only switch, that seems not to exist is the general “power” switch.
    That means, I can switch it on by increasing fan speed to 1-3. But cannot switch it off, again.
  • And the “Operation modes (Auto, Silent, Favorite, Fan)” are also missing.

Anyone else had that or can give me some direction?

Thanks

My xiaomi air purifier pro H identifies as a fan (fan.xiaomi_miio_device). Therefore the “power” button is incorporated in the fan control. Hope that helps…

1 Like

Amazing, that was it!

There was another “unnamed device” without unique ID. Hence, it didn’t show up in the GUI.