Additional attributes and services of the Xiaomi Air Purifier introduced (#4254)

* New attributes average_aqi and purify_volume introduced and service light.xiaomi_miio_set_child_lock_{on,off} added.

* Grammar issue fixed.
This commit is contained in:
Sebastian Muszynski 2018-01-19 11:40:00 +01:00 committed by Franck Nijhof
parent 4d19f4ba12
commit af6bcffd5d

View File

@ -8,36 +8,38 @@ comments: false
sharing: true sharing: true
footer: true footer: true
logo: xiaomi.png logo: xiaomi.png
ha_category: Switch ha_category: Fan
ha_version: 0.57 ha_version: 0.57
ha_iot_class: "Local Polling" ha_iot_class: "Local Polling"
--- ---
The `xiaomi_miio` fan platform allows you to control the Xiaomi Air Purifier 2, Air Purifier 2S andd Air Purifier Pro. The `xiaomi_miio` fan platform allows you to control the Xiaomi Air Purifier 2, Air Purifier 2S and Air Purifier Pro.
Currently, the supported features are Currently, the supported features are
* On, Off * On, Off
* Operation modes (auto, silent, favorite, idle) * Operation modes (auto, silent, favorite, idle)
* Buzzer (on, off) * Buzzer (on, off)
* Child lock (on, off)
* LED (on, off), LED brightness (bright, dim, off) * LED (on, off), LED brightness (bright, dim, off)
* Favorite Level * Favorite Level (0...16)
* States * Attributes
- power - power
- aqi - aqi
- average_aqi
- humidity - humidity
- temperature - temperature
- mode - mode
- favorite_level
- led - led
- led_brightness - led_brightness
- buzzer - buzzer
- child_lock - child_lock
- brightness - purify_volume
- favorite_level - filter_life_remaining
- filter1_life - filter_hours_used
- f1_hour_used - motor_speed
- use_time
- motor1_speed
## {% linkable_title Setup %} ## {% linkable_title Setup %}
@ -66,7 +68,7 @@ Turn the buzzer on.
| Service data attribute | Optional | Description | | Service data attribute | Optional | Description |
|---------------------------|----------|-------------------------------------------------------| |---------------------------|----------|-------------------------------------------------------|
| `entity_id` | yes | Only act on specific air purifier. Else targets all. | | `entity_id` | yes | Only act on a specfici air purifier. Else targets all. |
### Service fan/xiaomi_miio_set_buzzer_off ### Service fan/xiaomi_miio_set_buzzer_off
@ -74,7 +76,7 @@ Turn the buzzer off.
| Service data attribute | Optional | Description | | Service data attribute | Optional | Description |
|---------------------------|----------|-------------------------------------------------------| |---------------------------|----------|-------------------------------------------------------|
| `entity_id` | yes | Only act on specific air purifier. Else targets all. | | `entity_id` | yes | Only act on a specfici air purifier. Else targets all. |
### Service fan/xiaomi_miio_set_led_on ### Service fan/xiaomi_miio_set_led_on
@ -82,7 +84,7 @@ Turn the led on.
| Service data attribute | Optional | Description | | Service data attribute | Optional | Description |
|---------------------------|----------|-------------------------------------------------------| |---------------------------|----------|-------------------------------------------------------|
| `entity_id` | yes | Only act on specific air purifier. Else targets all. | | `entity_id` | yes | Only act on a specfici air purifier. Else targets all. |
### Service fan/xiaomi_miio_set_led_off ### Service fan/xiaomi_miio_set_led_off
@ -90,7 +92,23 @@ Turn the led off.
| Service data attribute | Optional | Description | | Service data attribute | Optional | Description |
|---------------------------|----------|-------------------------------------------------------| |---------------------------|----------|-------------------------------------------------------|
| `entity_id` | yes | Only act on specific air purifier. Else targets all. | | `entity_id` | yes | Only act on a specfici air purifier. Else targets all. |
### Service fan/xiaomi_miio_set_child_lock_on
Turn the child lock on.
| Service data attribute | Optional | Description |
|---------------------------|----------|-------------------------------------------------------|
| `entity_id` | yes | Only act on a specfici air purifier. Else targets all. |
### Service fan/xiaomi_miio_set_child_lock_off
Turn the child lock off.
| Service data attribute | Optional | Description |
|---------------------------|----------|-------------------------------------------------------|
| `entity_id` | yes | Only act on a specfici air purifier. Else targets all. |
### Service fan/xiaomi_miio_set_led_brightness ### Service fan/xiaomi_miio_set_led_brightness
@ -98,7 +116,7 @@ Set the led brightness. Supported values are 0 (Bright), 1 (Dim), 2 (Off).
| Service data attribute | Optional | Description | | Service data attribute | Optional | Description |
|---------------------------|----------|-------------------------------------------------------| |---------------------------|----------|-------------------------------------------------------|
| `entity_id` | yes | Only act on specific air purifier. Else targets all. | | `entity_id` | yes | Only act on a specfici air purifier. Else targets all. |
| `brightness` | no | Brightness, between 0 and 2. | | `brightness` | no | Brightness, between 0 and 2. |
### Service fan/xiaomi_miio_set_favorite_level ### Service fan/xiaomi_miio_set_favorite_level
@ -107,5 +125,5 @@ Set the favorite level of the operation mode "favorite".
| Service data attribute | Optional | Description | | Service data attribute | Optional | Description |
|---------------------------|----------|-------------------------------------------------------| |---------------------------|----------|-------------------------------------------------------|
| `entity_id` | yes | Only act on specific air purifier. Else targets all. | | `entity_id` | yes | Only act on a specfici air purifier. Else targets all. |
| `level` | no | Level, between 0 and 16. | | `level` | no | Level, between 0 and 16. |