denysdovhan/purifier-card

Support for Xiaomi 3C

grambas opened this issue · 7 comments

Is Xiaomi 3C Air purifier supported? If so, then it could be added to readme file in supported device list

Well not entirely. Looks like you can't set speed of the fan via percentage but you need to use rpm instead. That means the round slider is not showing any value and you cannot control the purifier with it.

At least I have managed to get the shortcuts from readme to work:

shortcuts:
  - 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: '780'
  - 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: '1730'
  - 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'

I'll try to get the slider working as well.

Here is the configuration I needed to use to get this card working with the Xiaomi 3C.

entity: fan.zhimi_airpurifier_mb4
aqi:
  entity_id: sensor.zhimi_airpurifier_mb4_pm2_5
stats:
  - entity_id: sensor.zhimi_airpurifier_mb4_filter_life_remaining
    unit: '%'
    subtitle: Filter Life
  - entity_id: sensor.zhimi_airpurifier_mb4_motor_speed
    attribute: motor_speed
    unit: RPM
    subtitle: Motor Speed
shortcuts:
  - 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: '780'
  - 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: '1730'
  - 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'
show_name: true
show_state: true
show_toolbar: true
compact_view: false

image

Anyway to get rid of the slider?

PHLAK commented

Anyway to get rid of the slider?

I also have a 3C and would like to remove the slider since it doesn't work. Adding a show_slider option we could set to false would be good enough for me.

Anyway to get rid of the slider?

I also have a 3C and would like to remove the slider since it doesn't work. Adding a show_slider option we could set to false would be good enough for me.

You can allways hide it by Styling via theme or Styling via card-mod like says in the Purifier Card Read Me file says.
I'm using card-mod and this worked nice for me:

type: custom:purifier-card style: | ha-card { --pc-background: none; --pc-slider-bar-color: none; --pc-slider-path-color: none; --pc-toolbar-background: none; }
Captura de ecrã 2023-03-11, às 01 15 22

There hasn't been any activity on this issue recently. This issue has now been marked as stale and will be closed if no further activity occurs. Please, update to the latest version and check if that solves the issue. Thank you for your contributions!

This issue was closed because it has been stalled for 30 days with no activity. Please open a new issue if the issue is still relevant, linking to this one.