purifier-card icon indicating copy to clipboard operation
purifier-card copied to clipboard

Support for Xiaomi 3C

Open grambas opened this issue 3 years ago • 3 comments

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

grambas avatar Jan 24 '22 09:01 grambas

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.

JiriFurda avatar Mar 26 '22 00:03 JiriFurda

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

Lycan-Sys-Net avatar Jun 20 '22 21:06 Lycan-Sys-Net

Anyway to get rid of the slider?

trablin45 avatar Sep 06 '22 15:09 trablin45

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.

PHLAK avatar Nov 08 '22 15:11 PHLAK

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

eaglerbits avatar Mar 11 '23 01:03 eaglerbits

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!

github-actions[bot] avatar Jun 16 '23 21:06 github-actions[bot]

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.

github-actions[bot] avatar Jul 16 '23 22:07 github-actions[bot]