question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Xiaomi Air Purifier 3C custom support

See original GitHub issue

Describe the bug Since the Xiaomi Air Purifier 3C doesn’t have native support, I am trying to add it manually. I have all the information in the card from custom attributes, but there is no option to control the device with custom entities/attributes. From what I could find, this card is design to work with fan entities and not climate entities and that’s the reason why it doesn’t work.

Is there a way to control this device manually, or do I have to wait for native support?

I am using the following code: `type: custom:purifier-card entity: climate.air_purifier_air_purifier aqi: attribute: environment.pm2_5_density unit: null stats:

  • attribute: filter.filter_life_level unit: ‘%’ subtitle: Filter Remaining
  • attribute: custom_service.moto_speed_rpm unit: RPM subtitle: Motor Speed actions:
  • name: Sleep icon: mdi:weather-night speed: Sleep
  • name: Auto icon: mdi:brightness-auto speed: Auto show_name: true show_state: true show_toolbar: true compact_view: true`

Steps to reproduce If you click the on/off, auto, sleep, etc. you get a spinning wheel like in the screenshot above.

Expected behavior Turning the device on/off.

Screenshots image

Versions:

  • Release: v0.11.1 and older versions
  • Browser: Chrome or any other
  • HomeAssistant version: core-2021.9.0.dev20210818 (but had the same issue with 2021.8)

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
foglietticommented, Oct 19, 2021

This is my configuration. Works, but currently is not showing AQI value.

type: custom:purifier-card
entity: fan.mi_air_purifier_3c
aqui:
  - entity_id: sensor.mi_air_purifier_3c_pm2_5
stats:
  - entity_id: sensor.mi_air_purifier_3c_filter_life_remaining
    unit: '%'
    subtitle: Filtro Restante
  - entity_id: sensor.mi_air_purifier_3c_motor_speed
    unit: rpm
    subtitle: Velocidad del Motor
actions:
  - name: Silent
    icon: mdi:weather-night
    preset_mode: Silent
  - name: 25%
    icon: mdi:circle-slice-2
    preset_mode: Favorite
    service: number.set_value
    service_data:
      entity_id: number.mi_air_purifier_3c_favorite_motor_speed
      value: '750'
  - name: 50%
    icon: mdi:circle-slice-4
    preset_mode: Favorite
    service: number.set_value
    service_data:
      entity_id: number.mi_air_purifier_3c_favorite_motor_speed
      value: '1250'
  - name: 75%
    icon: mdi:circle-slice-6
    preset_mode: Favorite
    service: number.set_value
    service_data:
      entity_id: number.mi_air_purifier_3c_favorite_motor_speed
      value: '1700'
  - name: 100%
    icon: mdi:circle-slice-8
    preset_mode: Favorite
    service: number.set_value
    service_data:
      entity_id: number.mi_air_purifier_3c_favorite_motor_speed
      value: '2200'
  - name: Auto
    icon: mdi:brightness-auto
    preset_mode: Auto
show_name: false
show_state: false
show_toolbar: true
1reaction
denysdovhancommented, Dec 2, 2021

fan_set_favorite_level is removed in the latest version of purifier-card. Hopefully this issue is resolved.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Mi Air Purifier 3C - Xiaomi United States
Mi Air Purifier 3C. Breath at ease with efficient Mi High Efficiency Filter purification. The highly efficient three-layer filter core with built-in Xiaomi...
Read more >
Support for Xiaomi Air purifier 3C · Issue #888 - GitHub
After a quick investigation, it looks like the specification for Xiaomi Air purifier 3C is a little bit different than the one used ......
Read more >
Xiaomi air purifier 3C support : r/homeassistant - Reddit
The Xiaomi integration mentions support for Xiaomi Air Purifier 3h but I can only find proper deals for 3C model. Can anyone confirm...
Read more >
Mi Air Purifier 3C, 3-Layer Integrated 360° cylindrical ...
Support button operation and intelligent control. In addition to voice and smart assistants control, Xiaomi air purifier provides Display/Wi-Fi Reset Button/ ...
Read more >
Xiaomi Air Purifier 3c still missing? - Home Assistant Community
Dear, I saw a pull request on the core, and its closed: Xiaomi Air Purifier 3C support is added by abrilevskiy · Pull...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found