This is a card for Lovelace's Xiaomi Air Purifier that supports most devices. Currently only tested on Xiaomi devices, if other devices have problems, please welcome Issues
I need to know the following information:
Services needed fan.set_speed
, Need to provide the speed value
v1.1.3
- fix #8
Search for air filter
- Download
air-filter-card.js
- Copy to
www\community\lovelace-air-filter-card
- Add the following to your Lovelace resources
resources: - url: /community_plugin/lovelace-air-filter/air-filter-card.js type: module
- Add the following to your Lovelace config views.cards key
type: 'custom:air-filter' modes: - auto - silent - Strong entity: fan.kong_qi_jing_hua_qi title: air_filter aspect_ratio: '.6'
Name | Type | Default | Description |
---|---|---|---|
type | string | Required | custom:air-filter |
entity | entity id | Required | The entity id of climate |
modes | array | Required | Operating mode, currently includes auto,silent,favorite,strong,medium,high,low,humidity,interval |
title | string | optional | Card title entity. Example:fan.kong_qi_jing_hua_qi |
aspect_ratio | Number | optional | Aspect ratio, Ratio of height to width |