Skip to content

Commit af6bcff

Browse files
syssifrenck
authored andcommitted
Additional attributes and services of the Xiaomi Air Purifier introduced (home-assistant#4254)
* New attributes average_aqi and purify_volume introduced and service light.xiaomi_miio_set_child_lock_{on,off} added. * Grammar issue fixed.
1 parent 4d19f4b commit af6bcff

File tree

1 file changed

+34
-16
lines changed

1 file changed

+34
-16
lines changed

source/_components/fan.xiaomi_miio.markdown

Lines changed: 34 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -8,36 +8,38 @@ comments: false
88
sharing: true
99
footer: true
1010
logo: xiaomi.png
11-
ha_category: Switch
11+
ha_category: Fan
1212
ha_version: 0.57
1313
ha_iot_class: "Local Polling"
1414
---
1515

16-
The `xiaomi_miio` fan platform allows you to control the Xiaomi Air Purifier 2, Air Purifier 2S andd Air Purifier Pro.
16+
The `xiaomi_miio` fan platform allows you to control the Xiaomi Air Purifier 2, Air Purifier 2S and Air Purifier Pro.
1717

1818
Currently, the supported features are
1919

2020
* On, Off
2121
* Operation modes (auto, silent, favorite, idle)
2222
* Buzzer (on, off)
23+
* Child lock (on, off)
2324
* LED (on, off), LED brightness (bright, dim, off)
24-
* Favorite Level
25-
* States
25+
* Favorite Level (0...16)
26+
* Attributes
2627
- power
2728
- aqi
29+
- average_aqi
2830
- humidity
2931
- temperature
3032
- mode
33+
- favorite_level
3134
- led
3235
- led_brightness
3336
- buzzer
3437
- child_lock
35-
- brightness
36-
- favorite_level
37-
- filter1_life
38-
- f1_hour_used
39-
- use_time
40-
- motor1_speed
38+
- purify_volume
39+
- filter_life_remaining
40+
- filter_hours_used
41+
- motor_speed
42+
4143

4244
## {% linkable_title Setup %}
4345

@@ -66,39 +68,55 @@ Turn the buzzer on.
6668
6769
| Service data attribute | Optional | Description |
6870
|---------------------------|----------|-------------------------------------------------------|
69-
| `entity_id` | yes | Only act on specific air purifier. Else targets all. |
71+
| `entity_id` | yes | Only act on a specfici air purifier. Else targets all. |
7072

7173
### Service fan/xiaomi_miio_set_buzzer_off
7274

7375
Turn the buzzer off.
7476

7577
| Service data attribute | Optional | Description |
7678
|---------------------------|----------|-------------------------------------------------------|
77-
| `entity_id` | yes | Only act on specific air purifier. Else targets all. |
79+
| `entity_id` | yes | Only act on a specfici air purifier. Else targets all. |
7880

7981
### Service fan/xiaomi_miio_set_led_on
8082

8183
Turn the led on.
8284

8385
| Service data attribute | Optional | Description |
8486
|---------------------------|----------|-------------------------------------------------------|
85-
| `entity_id` | yes | Only act on specific air purifier. Else targets all. |
87+
| `entity_id` | yes | Only act on a specfici air purifier. Else targets all. |
8688

8789
### Service fan/xiaomi_miio_set_led_off
8890

8991
Turn the led off.
9092

9193
| Service data attribute | Optional | Description |
9294
|---------------------------|----------|-------------------------------------------------------|
93-
| `entity_id` | yes | Only act on specific air purifier. Else targets all. |
95+
| `entity_id` | yes | Only act on a specfici air purifier. Else targets all. |
96+
97+
### Service fan/xiaomi_miio_set_child_lock_on
98+
99+
Turn the child lock on.
100+
101+
| Service data attribute | Optional | Description |
102+
|---------------------------|----------|-------------------------------------------------------|
103+
| `entity_id` | yes | Only act on a specfici air purifier. Else targets all. |
104+
105+
### Service fan/xiaomi_miio_set_child_lock_off
106+
107+
Turn the child lock off.
108+
109+
| Service data attribute | Optional | Description |
110+
|---------------------------|----------|-------------------------------------------------------|
111+
| `entity_id` | yes | Only act on a specfici air purifier. Else targets all. |
94112

95113
### Service fan/xiaomi_miio_set_led_brightness
96114

97115
Set the led brightness. Supported values are 0 (Bright), 1 (Dim), 2 (Off).
98116

99117
| Service data attribute | Optional | Description |
100118
|---------------------------|----------|-------------------------------------------------------|
101-
| `entity_id` | yes | Only act on specific air purifier. Else targets all. |
119+
| `entity_id` | yes | Only act on a specfici air purifier. Else targets all. |
102120
| `brightness` | no | Brightness, between 0 and 2. |
103121

104122
### Service fan/xiaomi_miio_set_favorite_level
@@ -107,5 +125,5 @@ Set the favorite level of the operation mode "favorite".
107125

108126
| Service data attribute | Optional | Description |
109127
|---------------------------|----------|-------------------------------------------------------|
110-
| `entity_id` | yes | Only act on specific air purifier. Else targets all. |
128+
| `entity_id` | yes | Only act on a specfici air purifier. Else targets all. |
111129
| `level` | no | Level, between 0 and 16. |

0 commit comments

Comments
 (0)