Hello,
I recently bought xiaomi 3c Air Purifier and I can’t find a good card to use with it. Only for 3H model. It seems to me that there is a big difference between them, since the cards for the 3H model use percentage and my 3c model uses rpm. I can turn it on and off, see the air quality, put it in night and automatic mode. I wanted to change the speeds too, but I can’t insert it in the code. I also can’t get the percentage bar to work.
Here is the code:
type: custom:purifier-card
aqi:
entity_id: sensor.purificador_de_ar_pm2_5
unit: µg/m³
stats:
- entity_id: sensor.purificador_de_ar_motor_speed
unit: RPM
subtitle: Speed
- entity_id: sensor.zhimi_airpurifier_mb3_temperature
unit: ºC
subtitle: Temperature
- entity_id: sensor.temperatura_da_suite_temperature
unit: '%'
subtitle: Humidity
- entity_id: sensor.temperatura_da_suite_humidity
subtitle: Filter
unit: '%'
actions:
- name: Silent
icon: mdi:weather-night
preset_mode: Silent
- name: 25%
icon: mdi:circle-slice-2
preset_mode: Favorite
number.purificador_de_ar_favorite_motor_speed: 3
- name: 50%
icon: mdi:circle-slice-4
preset_mode: Favorite
number.purificador_de_ar_favorite_motor_speed: 7
- name: 75%
icon: mdi:circle-slice-6
preset_mode: Favorite
number.purificador_de_ar_favorite_motor_speed: 10
- name: 100%
icon: mdi:circle-slice-8
preset_mode: Favorite
number.purificador_de_ar_favorite_motor_speed: 14
- name: Auto
icon: mdi:refresh-auto
preset_mode: Auto
shortcuts:
- name: Silent
icon: mdi:weather-night
preset_mode: Silent
- name: 25%
icon: mdi:circle-slice-2
percentage: 25
- name: 50%
icon: mdi:circle-slice-4
percentage: 50
- name: 75%
icon: mdi:circle-slice-6
percentage: 100
- name: Auto
icon: mdi:refresh-auto
preset_mode: Auto
show_name: true
show_status: true
show_state: true
show_toolbar: true
compact_view: false
entity: fan.purificador_de_ar
Just to be clear: it’s a code copied here from the forum.