xiaomi_airpurifier
Xiaomi Mi Air Purifier and Xiaomi Mi Air Humidifier integration for Home Assistant
Stars: 446
This repository contains a custom component for Home Assistant that integrates various Xiaomi Mi Air Purifier and Xiaomi Mi Air Humidifier models. It provides detailed support for different devices, including power control, preset modes, child lock, LED control, favorite level adjustment, and various attributes monitoring. The custom component offers a more extensive range of supported devices compared to the official Home Assistant component, with additional features and device compatibility. Users can easily set up and configure their Xiaomi air purifiers and humidifiers within Home Assistant for enhanced control and monitoring.
README:
This is a custom component for home assistant to integrate the Xiaomi Mi Air Purifier 2, Air Purifier 2S, Air Purifier Pro, Air Humidifier, Air Fresh and Pedestal Fan.
Please follow the instructions on Retrieving the Access Token to get the API token to use in the configuration.yaml file.
Credits: Thanks to Rytilahti for all the work.
This custom component is more or less the beta version of the official component. Furthermore, this custom component supports a number of additional devices which cannot be merged into the official component at the moment. The handling/values of the fan_speed
property need to be refactored first because this and the official component don't align with some new architecture decisions.
Name | Model | Model no. | Specs |
---|---|---|---|
Air Purifier | zhimi.airpurifier.v1 | ||
Air Purifier 2 | zhimi.airpurifier.v2 | FJY4006CN, AC-M2-AA | 37m2, 310m3/h CADR, 31W |
Air Purifier V3 | zhimi.airpurifier.v3 | ||
Air Purifier V5 | zhimi.airpurifier.v5 | ||
Air Purifier Pro | zhimi.airpurifier.v6 | ||
Air Purifier Pro V7 | zhimi.airpurifier.v7 | ||
Air Purifier 2 (mini) | zhimi.airpurifier.m1 | ||
Air Purifier (mini) | zhimi.airpurifier.m2 | ||
Air Purifier MA1 | zhimi.airpurifier.ma1 | ||
Air Purifier MA2 | zhimi.airpurifier.ma2 | ||
Air Purifier 2S | zhimi.airpurifier.mc1 | XM200003(?), AC-M4-AA | 37m2, 310m3/h CADR, 66dB, 29W (max) |
Air Purifier 2H | zhimi.airpurifier.mc2 | FJY4026GL(?), AC-M9-AA | 31m2, 260m3/h CADR, 66dB, 31W (max) |
Air Purifier Super | zhimi.airpurifier.sa1 | ||
Air Purifier Super 2 | zhimi.airpurifier.sa2 | ||
Air Purifier 3 (2019) | zhimi.airpurifier.ma4 | ||
Air Purifier 3H (2019) | zhimi.airpurifier.mb3 | FJY4031GL(?), XM200017 | 45m2, 380m3/h CADR, 64dB, 38W (max) |
Air Purifier ZA1 | zhimi.airpurifier.za1 | ||
Air Dog X3 | airdog.airpurifier.x3 | ||
Air Dog X5 | airdog.airpurifier.x5 | ||
Air Dog X7SM | airdog.airpurifier.x7sm | ||
Air Humidifier | zhimi.humidifier.v1 | ||
Air Humidifier CA1 | zhimi.humidifier.ca1 | CJXJSQ02ZM, SKV6001RT | 8W, 240x240x363mm |
Smartmi Humidifier Evaporator 2 | zhimi.humidifier.ca4 | CJXJSQ04ZM | |
Smartmi Evaporative Humidifier | zhimi.humidifier.cb1 | CJXJSQ02ZM, SKV6001EU | 8W, 240x240x363mm |
Smartmi Evaporative Humidifier (Korea Version) | zhimi.humidifier.cb2 | CJXJSQ02ZM | 8W, 240x240x363mm |
Mijia Smart Sterilization Humidifier S | deerma.humidifier.mjjsq | MJJSQ03DY | 4.5L, <=39dB, 450mL/h, 40W |
Mijia Intelligent Sterilization Humidifier (EU version?) | deerma.humidifier.jsq | ZNJSQ01DEM | 4.5L, <=38dB, 300mL/h, 24W |
Mijia Smart Humidifier 2 (EU version) | deerma.humidifier.jsq2w | MJJSQ05DY | 4.5L, <=32dB, 300mL/h, 28 W |
Mijia Humidifier 4L | deerma.humidifier.jsq3 | MJJSQ04DY | 4L, <=38dB, 300mL/h, 25W |
Mijia Intelligent Sterilization Humidifier (EU version?) | deerma.humidifier.jsq5 | ZNJSQ01DEM | 4.5L, <=38dB, 300mL/h, 24W |
Mijia Smart Sterilization Humidifier S (EU version?) | deerma.humidifier.jsqs | MJJSQ03DY | 4.5L, <=39dB, 450mL/h, 40W |
Mijia Intelligent Sterilization Humidifier SCK0A45 | deerma.humidifier.jsq1 | SCKOA45, SCK0A45 | 4.5L, <=38dB, 300mL/h, 25W |
Zero Fog Humidifier | shuii.humidifier.jsq001 | ||
New Widetech Internet Dehumidifier | nwt.derh.wdh318efw1 | WDH318EFW1 | 2.7L tank, 38dB, 18L/d, 240W |
Smartmi Fresh Air System XFXT01ZM | zhimi.airfresh.va2 | XFXT01ZM | |
Smartmi Fresh Air System XFXTDFR02ZM | zhimi.airfresh.va4 | XFXTDFR02ZM | PTC/Heater support |
Mi Fresh Air Ventilator | dmaker.airfresh.t2017 | MJXFJ-300-G1**?** | 300m3/h (Air volume), 35W, 36db(A), 16kg |
Mi Fresh Air Ventilator | dmaker.airfresh.a1 | MJXFJ-150-A1 | 150m3/h (Air volume), 20W, 36db(A), 8kg |
Pedestal Fan Fan V2 | zhimi.fan.v2 | ||
Pedestal Fan Fan V3 | zhimi.fan.v3 | ||
Pedestal Fan Fan SA1 | zhimi.fan.sa1 | ||
Pedestal Fan Fan ZA1 | zhimi.fan.za1 | ||
Pedestal Fan Fan ZA3 | zhimi.fan.za3 | ||
Pedestal Fan Fan ZA4 | zhimi.fan.za4 | ||
Pedestal Fan Fan 1C | dmaker.fan.1c | ||
Pedestal Fan Fan P5 | dmaker.fan.p5 | ||
Pedestal Fan Fan P8 | dmaker.fan.p8 | ||
Pedestal Fan Fan P9 | dmaker.fan.p9 | ||
Pedestal Fan Fan P10 | dmaker.fan.p10 | ||
Mijia Pedestal Fan | dmaker.fan.p11 | BPLDS03DM | 2800mAh, 24W, <=58dB |
Rosou SS4 Ventilator | leshow.fan.ss4 |
Unsupported devices:
- Mijia Humidifer 4L (MJJSQ02LX): This device isn't smart / has no WiFi support.
- Power (on, off)
- Preset modes (auto, silent, favorite, idle)
- Buzzer (on, off)
- Child lock (on, off)
- LED (on, off), LED brightness (bright, dim, off)
- Favorite Level (0...16)
- Attributes
model
temperature
humidity
aqi
mode
filter_hours_used
filter_life_remaining
favorite_level
child_lock
led
motor_speed
average_aqi
purify_volume
learn_mode
sleep_time
sleep_mode_learn_count
extra_features
turbo_mode_supported
auto_detect
use_time
button_pressed
buzzer
led_brightness
sleep_mode
- Power (on, off)
- Preset modes (auto, silent, favorite, idle)
- Buzzer (on, off)
- Child lock (on, off)
- LED (on, off), LED brightness (bright, dim, off)
- Favorite Level (0...16)
- Attributes
model
temperature
humidity
aqi
mode
filter_hours_used
filter_life_remaining
favorite_level
child_lock
led
motor_speed
average_aqi
learn_mode
extra_features
turbo_mode_supported
buzzer
led_brightness
- Power (on, off)
- Preset modes (auto, silent, favorite)
- Child lock (on, off)
- LED (on, off)
- Favorite Level (0...16)
- Attributes
model
temperature
humidity
aqi
mode
filter_hours_used
filter_life_remaining
favorite_level
child_lock
led
motor_speed
average_aqi
purify_volume
learn_mode
sleep_time
sleep_mode_learn_count
extra_features
turbo_mode_supported
auto_detect
use_time
button_pressed
filter_rfid_product_id
filter_rfid_tag
filter_type
illuminance
motor2_speed
volume
- Power (on, off)
- Preset modes (auto, silent, favorite)
- Child lock (on, off)
- LED (on, off)
- Favorite Level (0...16)
- Attributes
model
temperature
humidity
aqi
mode
filter_hours_used
filter_life_remaining
favorite_level
child_lock
led
motor_speed
average_aqi
learn_mode
extra_features
turbo_mode_supported
button_pressed
filter_rfid_product_id
filter_rfid_tag
filter_type
illuminance
motor2_speed
volume
- Power (on, off)
- Preset modes (auto, silent, favorite)
- Buzzer (on, off)
- Child lock (on, off)
- LED (on, off)
- Favorite Level (0...16)
- Attributes
model
temperature
humidity
aqi
mode
filter_hours_used
filter_life_remaining
favorite_level
child_lock
led
motor_speed
average_aqi
learn_mode
extra_features
turbo_mode_supported
button_pressed
filter_rfid_product_id
filter_rfid_tag
filter_type
illuminance
buzzer
This model uses newer MiOT communication protocol.
- Power (on, off)
- Preset modes (auto, silent, favorite, fan)
- Buzzer (on, off)
- Child lock (on, off)
- LED (on, off)
- Favorite Level (0...16)
- Fan Level (1...3)
- Attributes
model
temperature
humidity
aqi
mode
filter_hours_used
filter_life_remaining
favorite_level
child_lock
led
motor_speed
average_aqi
purify_volume
use_time
buzzer
led_brightness
filter_rfid_product_id
filter_rfid_tag
filter_type
fan_level
- Power (on, off)
- Preset modes (auto, silent, favorite, idle, medium, high, strong)
- Child lock (on, off)
- LED (on, off)
- Attributes
model
aqi
mode
led
buzzer
child_lock
illuminance
filter_hours_used
filter_life_remaining
motor_speed
average_aqi
volume
motor2_speed
filter_rfid_product_id
filter_rfid_tag
filter_type
purify_volume
learn_mode
sleep_time
sleep_mode_learn_count
extra_features
auto_detect
use_time
button_pressed
- On, Off
- Preset modes (silent, medium, high, strong)
- Buzzer (on, off)
- Child lock (on, off)
- LED (on, off), LED brightness (bright, dim, off)
- Target humidity (30, 40, 50, 60, 70, 80)
- Attributes
model
temperature
humidity
mode
buzzer
child_lock
trans_level
target_humidity
led_brightness
button_pressed
use_time
hardware_version
- On, Off
- Preset modes (silent, medium, high, auto)
- Buzzer (on, off)
- Child lock (on, off)
- LED (on, off), LED brightness (bright, dim, off)
- Target humidity (30, 40, 50, 60, 70, 80)
- Dry mode (on, off)
- Attributes
model
temperature
humidity
mode
buzzer
child_lock
trans_level
target_humidity
led_brightness
button_pressed
use_time
hardware_version
motor_speed
depth
dry
- On, Off
- Preset modes (auto, low, mid, high)
- Buzzer (on, off)
- Child lock (on, off)
- LED brightness (off, dim, bright)
- Target humidity (30 - 80)
- Dry mode (on, off)
- Clean mode (on, off)
- Motor speed rpm (200 - 2000)
- Attributes
model
temperature
humidity
mode
buzzer
child_lock
target_humidity
led_brightness
use_time
actual_speed
button_pressed
dry
fahrenheit
motor_speed
power_time
water_level
use_time
clean_mode
- On, Off
- Preset modes (silent, medium, high, auto)
- Buzzer (on, off)
- Child lock (on, off)
- LED (on, off), LED brightness (bright, dim, off)
- Target humidity (30, 40, 50, 60, 70, 80)
- Dry mode (on, off)
- Attributes
speed
speed_list
model
temperature
humidity
mode
buzzer
child_lock
target_humidity
led_brightness
use_time
hardware_version
motor_speed
depth
dry
supported_features
- Power (on, off)
- Preset modes (Intelligent, Level1, Level2, Level3, Level4)
- Buzzer (on, off)
- Child lock (on, off)
- LED (on, off), LED brightness (high, low, off)
- Attributes
model
temperature
humidity
mode
buzzer
child_lock
led
led_brightness
no_water
lid_opened
- Power (on, off)
- Preset modes (auto, silent, interval, low, middle, strong)
- Buzzer (on, off)
- Child lock (on, off)
- LED (on, off), LED brightness (bright, dim, off)
- PTC (on, off) (zhimi.airfresh.va4 only)
- Attributes
model
aqi
average_aqi
temperature
humidity
co2
mode
led
led_brightness
buzzer
child_lock
filter_life_remaining
filter_hours_used
use_time
motor_speed
extra_features
-
ptc
(zhimi.airfresh.va4 only) -
ntc_temperature
(zhimi.airfresh.va4 only)
This paragraph was moved to docs/dmaker-airfresh-t2017.md.
Air Humidifier MJJSQ, JSQ1, JSQ5 and JSQS (deerma.humidifier.mjjsq, deerma.humidifier.jsq1, deerma.humidifier.jsq5, deerma.humidifier.jsqs)
- Power (on, off)
- Preset modes (low, medium, high, humidity)
- Buzzer (on, off)
- LED (on, off)
- Target humidity (0...99)
- Wet protection (on, off) (deerma.humidifier.jsq1 only)
- Attributes
model
temperature
humidity
mode
buzzer
target_humidity
led
no_water
water_tank_detached
-
wet_protection
(deerma.humidifier.jsq1 only)
- HVAC mode (dry, off)
- Preset modes (on, auto, dryCloth)
- Target humidity (40, 50, 60)
- Fan mode (sleep, low, medium, high, strong)
- Buzzer (on, off)
- Child lock (on, off)
- LED (on, off)
- Attributes
model
_current_temperature
humidity
mode
buzzer
child_lock
target_humidity
led
fan_speed
tank_full
compressor_status
defrost_status
fan_st
alarm
- Power (on, off)
- Preset modes (Level 1, Level 2, Level 3, Level 4)
- Speed percentage (0...100)
- Oscillate (on, off)
- Oscillation angle (30, 60, 90, 120, 140, 150)
- Natural mode (on, off)
- Rotate by 5 degrees (left, right)
- Child lock (on, off)
- LED brightness (bright, dim, off)
- Attributes
model
-
temperature
(zhimi.fan.v2 and v3 only) -
humidity
(zhimi.fan.v2 and v3 only) led_brightness
buzzer
child_lock
natural_level
oscillate
delay_off_countdown
speed
direct_speed
natural_speed
angle
use_time
ac_power
-
battery
(zhimi.fan.v2 and v3 only) -
battery_charge
(zhimi.fan.v2 & v3 only) -
button_pressed
(zhimi.fan.v2 & v3 only) -
led
(zhimi.fan.v2 only) -
battery_state
(zhimi.fan.v2 only)
-
Power (on, off)
-
Operation modes (manual, sleep, strong, natural)
-
Preset modes (Level 1, Level 2, Level 3, Level 4)
-
Speed percentage (0...100)
-
Oscillate (on, off)
-
Buzzer (on, off)
-
Delayed turn off (minutes)
-
Attributes
model
mode
speed
buzzer
oscillate
delay_off_countdown
error_detected
You can install this custom component via HACS. Search for for 'Xiaomi Mi Air Purifier and Xiaomi Mi Air Humidifier Integration' at the integration page of HACS. Alternatively, you can install it manually by copying the custom_compon ent folder to your Home Assistant configuration folder.
As next step you have to setup the custom component at your configuration.yaml
. This custom component doesn't provide a config-flow
right now. A restart of Home Assistant is required afterwards.
# configuration.yaml
fan:
- platform: xiaomi_miio_airpurifier
name: Xiaomi Air Purifier 2
host: 192.168.130.71
token: b7c4a758c251955d2c24b1d9e41ce47d
model: zhimi.airpurifier.m1
- platform: xiaomi_miio_airpurifier
name: Xiaomi Air Purifier Pro
host: 192.168.130.73
token: 70924d6fa4b2d745185fa4660703a5c0
model: zhimi.airpurifier.v6
- platform: xiaomi_miio_airpurifier
name: Xiaomi Air Humidifier
host: 192.168.130.72
token: 2b00042f7481c7b056c4b410d28f33cf
model: zhimi.humidifier.v1
- platform: xiaomi_miio_airpurifier
name: Xiaomi Air Fresh
host: 192.168.130.74
token: 91d89cf53c4090f4c653174f6737102f
model: zhimi.airfresh.va2
- platform: xiaomi_miio_airpurifier
name: Xiaomi Smart Fan
host: 192.168.130.75
token: b7c4a758c251955d2c24b1d9e41ce4ff
climate:
- platform: xiaomi_miio_airpurifier
name: Xiaomi Air Dehumidifier
host: 192.168.130.76
token: 86c4c41dc7af0e0520e170c8a1f92f62
Configuration variables:
- host (Required): The IP of your light.
- token (Required): The API token of your light.
- name (Optional): The name of your light.
- model (Optional): The model of your device. This setting can be used to bypass the device model detection and is recommended if your device isn't always available.
If your entity has another name the value xiaomi_air_purifier
and xiaomi_air_humidifier
must be updated.
# configuration.yaml
sensor:
- platform: template
sensors:
airpurifier_aqi:
friendly_name: Air Purifier Air Quality Index
value_template: '{{ states.fan.xiaomi_air_purifier.attributes.aqi }}'
icon_template: mdi:weather-windy
airpurifier_temperature:
friendly_name: Air Purifier Temperature
value_template: '{{ states.fan.xiaomi_air_purifier.attributes.temperature }}'
unit_of_measurement: '°C'
airpurifier_humidity:
friendly_name: Air Purifier Humidity
value_template: '{{ states.fan.xiaomi_air_purifier.attributes.humidity }}'
unit_of_measurement: '%'
icon_template: mdi:water-percent
airhumidifier_temperature:
friendly_name: Air Humidifier Temperature
value_template: '{{ states.fan.xiaomi_air_humidifier.attributes.temperature }}'
unit_of_measurement: '°C'
airhumidifier_humidity:
friendly_name: Air Humidifier Humidity
value_template: '{{ states.fan.xiaomi_air_humidifier.attributes.humidity }}'
unit_of_measurement: '%'
icon_template: mdi:water-percent
switch:
- platform: template
switches:
xiaomi_airpurifier_child_lock:
friendly_name: "Child lock"
value_template: "{{ is_state_attr('fan.xiaomi_air_purifier', 'child_lock', True) }}"
turn_on:
service: xiaomi_miio_airpurifier.fan_set_child_lock_on
data:
entity_id: fan.xiaomi_air_purifier
turn_off:
service: xiaomi_miio_airpurifier.fan_set_child_lock_off
data:
entity_id: fan.xiaomi_air_purifier
icon_template: "mdi:lock-outline"
xiaomi_airpurifier_buzzer:
friendly_name: "Buzzer"
value_template: "{{ is_state_attr('fan.xiaomi_air_purifier', 'buzzer', True) }}"
turn_on:
service: xiaomi_miio_airpurifier.fan_set_buzzer_on
data:
entity_id: fan.xiaomi_air_purifier
turn_off:
service: xiaomi_miio_airpurifier.fan_set_buzzer_off
data:
entity_id: fan.xiaomi_air_purifier
icon_template: "mdi:volume-off"
xiaomi_airpurifier_led:
friendly_name: "LED"
value_template: "{{ is_state_attr('fan.xiaomi_air_purifier', 'led', True) }}"
turn_on:
service: xiaomi_miio_airpurifier.fan_set_led_on
data:
entity_id: fan.xiaomi_air_purifier
turn_off:
service: xiaomi_miio_airpurifier.fan_set_led_off
data:
entity_id: fan.xiaomi_air_purifier
icon_template: "mdi:lightbulb-outline"
input_select:
airpurifier_mode:
name: Operation mode
options:
- Low
- Medium
- High
- Humidity
automation:
- alias: Select operation mode by input select
trigger:
entity_id: input_select.airpurifier_mode
platform: state
action:
service: fan.set_speed
data_template:
entity_id: fan.xiaomi_air_purifier
speed: '{{ states.input_select.airpurifier_mode.state }}'
- alias: Monitor operation mode and update input select
trigger:
platform: state
entity_id: fan.xiaomi_air_purifier
action:
service: input_select.select_option
entity_id: input_select.airpurifier_mode
data_template:
option: '{{ states.fan.xiaomi_air_purifier.attributes.speed }}'
sensor:
- platform: template
sensors:
airpurifier_favorite_level:
friendly_name: Favorite level
value_template: '{{ states.fan.xiaomi_air_purifier.attributes.favorite_level }}'
input_number:
airpurifier_favorite_level:
name: Favorite Level
initial: 1
min: 0
max: 16
step: 1
automation:
- alias: Select favorite level by slider
trigger:
platform: state
entity_id: input_number.airpurifier_favorite_level
action:
- service: xiaomi_miio_airpurifier.fan_set_favorite_level
data_template:
entity_id: fan.xiaomi_air_purifier
level: '{{ states.input_number.airpurifier_favorite_level.state|int }}'
- alias: Monitor favorite level and update slider
trigger:
platform: state
entity_id: sensor.airpurifier_favorite_level
action:
service: input_number.set_value
entity_id: input_number.airpurifier_favorite_level
data_template:
value: '{{ states.fan.xiaomi_air_purifier.attributes.favorite_level }}'
The following example can be used to setup a input_numer
entity to control the target humidity of an Air Humidifier. Make sure to replace all occurrences of fan.xiaomi_air_humidifier
with the entity_id
of your device.
sensor:
- platform: template
sensors:
airhumidifier_target_humidity:
friendly_name: Target humidity
value_template: '{{ states.fan.xiaomi_air_humidifier.attributes.target_humidity }}'
unit_of_measurement: '%'
icon_template: mdi:water-percent
input_number:
airhumidifier_target_humidity:
name: Target humidity
min: 1
max: 99
step: 1
automation:
- alias: Select target humidity by slider
trigger:
platform: state
entity_id: input_number.airhumidifier_target_humidity
action:
- service: xiaomi_miio_airpurifier.fan_set_target_humidity
data_template:
entity_id: fan.xiaomi_air_humidifier
humidity: '{{ states.input_number.airhumidifier_target_humidity.state|int }}'
- alias: Monitor target humidity and update slider
trigger:
platform: state
entity_id: sensor.airhumidifier_target_humidity
action:
service: input_number.set_value
entity_id: input_number.airhumidifier_target_humidity
data_template:
value: '{{ states.fan.xiaomi_air_humidifier.attributes.target_humidity }}'
If the custom component doesn't work out of the box for your device please update your configuration to increase the log level:
logger:
default: warn
logs:
custom_components.xiaomi_miio_airpurifier: debug
miio: debug
Set the fan operation/preset mode.
Service data attribute | Optional | Description |
---|---|---|
entity_id |
no | Only act on a specific Xiaomi miIO fan entity. |
preset_mode |
no | Preset mode. Valid values are Auto , Silent , Favorite and Idle . Valid values of the Pedestal Fan are Level 1 , Level 2 , Level 3 and Level 4 . |
Set the fan speed percentage.
Service data attribute | Optional | Description |
---|---|---|
entity_id |
no | Only act on a specific Xiaomi miIO fan entity. |
percentage |
no | Percentage speed setting. Valid values are between 0 and 100. |
Turn the buzzer on.
Service data attribute | Optional | Description |
---|---|---|
entity_id |
no | Only act on a specific Xiaomi miIO fan entity. |
Turn the buzzer off.
Service data attribute | Optional | Description |
---|---|---|
entity_id |
no | Only act on a specific Xiaomi miIO fan entity. |
Turn the led on.
Service data attribute | Optional | Description |
---|---|---|
entity_id |
no | Only act on a specific Xiaomi miIO fan entity. |
Turn the led off.
Service data attribute | Optional | Description |
---|---|---|
entity_id |
no | Only act on a specific Xiaomi miIO fan entity. |
Turn the child lock on.
Service data attribute | Optional | Description |
---|---|---|
entity_id |
no | Only act on a specific Xiaomi miIO fan entity. |
Turn the child lock off.
Service data attribute | Optional | Description |
---|---|---|
entity_id |
no | Only act on a specific Xiaomi miIO fan entity. |
Set the scheduled turn off time. Supported values are 0, 60, 120, 180, 240, 300, 360, 420, 480 minutes. When 0 is passed, delay_off is disabled.
Service data attribute | Optional | Description |
---|---|---|
entity_id |
no | Only act on a specific Xiaomi miIO fan entity. |
delay_off_countdown |
no | Time in minutes. Valid values are 0 , 60 , 120 , 180 , 240 , 300 , 240 , 300 , 360 , 420 , 480 minutes. |
Set the led brightness. Supported values are 0 (Bright), 1 (Dim), 2 (Off).
Service data attribute | Optional | Description |
---|---|---|
entity_id |
no | Only act on a specific Xiaomi miIO fan entity. |
brightness |
no | Brightness, between 0 and 2. |
Set the favorite level of the operation mode "favorite".
Service data attribute | Optional | Description |
---|---|---|
entity_id |
no | Only act on a specific Xiaomi miIO fan entity. |
level |
no | Level, between 0 and 16. |
Turn the auto detect on.
Service data attribute | Optional | Description |
---|---|---|
entity_id |
no | Only act on a specific Xiaomi miIO fan entity. |
Turn the auto detect off.
Service data attribute | Optional | Description |
---|---|---|
entity_id |
no | Only act on a specific Xiaomi miIO fan entity. |
Turn the learn mode on.
Service data attribute | Optional | Description |
---|---|---|
entity_id |
no | Only act on a specific Xiaomi miIO fan entity. |
Turn the learn mode off.
Service data attribute | Optional | Description |
---|---|---|
entity_id |
no | Only act on a specific Xiaomi miIO fan entity. |
Set the sound volume.
Service data attribute | Optional | Description |
---|---|---|
entity_id |
no | Only act on a specific Xiaomi miIO fan entity. |
volume |
no | Volume, between 0 and 100. |
Reset the filter lifetime and usage.
Service data attribute | Optional | Description |
---|---|---|
entity_id |
no | Only act on a specific Xiaomi miIO fan entity. |
Set the extra features.
Service data attribute | Optional | Description |
---|---|---|
entity_id |
no | Only act on a specific Xiaomi miIO fan entity. |
features |
no | Integer, known values are 0 and 1. |
Set the target humidity.
Service data attribute | Optional | Description |
---|---|---|
entity_id |
no | Only act on a specific Xiaomi miIO fan entity. |
humidity |
no | Target humidity. The allowed values varies by model. |
Turn the dry mode on.
Service data attribute | Optional | Description |
---|---|---|
entity_id |
no | Only act on a specific Xiaomi miIO fan entity. |
Turn the dry mode off.
Service data attribute | Optional | Description |
---|---|---|
entity_id |
no | Only act on a specific Xiaomi miIO fan entity. |
Oscillates the fan.
Service data attribute | Optional | Description |
---|---|---|
entity_id |
no | Only act on a specific Xiaomi miIO fan entity. |
oscillating |
no | Flag to turn on/off oscillation. Valid values are True and False . |
Rotates the fan 5 degrees to the left/right.
Service data attribute | Optional | Description |
---|---|---|
entity_id |
no | Only act on a specific Xiaomi miIO fan entity. |
direction |
no | Rotate the fan 5 degrees. Valid values are left and right . |
Set the oscillation angle. Supported values are 30, 60, 90 and 120 degrees.
Service data attribute | Optional | Description |
---|---|---|
entity_id |
no | Only act on a specific Xiaomi miIO fan entity. |
angle |
no | Angle in degrees. Valid values are 30 , 60 , 90 and 120 . |
Turn the natural mode on.
Service data attribute | Optional | Description |
---|---|---|
entity_id |
no | Only act on a specific Xiaomi miIO fan entity. |
Turn the natural mode off.
Service data attribute | Optional | Description |
---|---|---|
entity_id |
no | Only act on a specific Xiaomi miIO fan entity. |
Set motor speed RPM.
Service data attribute | Optional | Description |
---|---|---|
entity_id |
no | Only act on a specific Xiaomi miIO fan entity. |
motor_speed |
no | Motor speed RPM. Allowed values are between 200 and 2000 |
Turn the clean mode on.
Service data attribute | Optional | Description |
---|---|---|
entity_id |
no | Only act on a specific Xiaomi miIO fan entity. |
Turn the clean mode off.
Service data attribute | Optional | Description |
---|---|---|
entity_id |
no | Only act on a specific Xiaomi miIO fan entity. |
Set the level when on fan mode.
Service data attribute | Optional | Description |
---|---|---|
entity_id |
no | Only act on a specific Xiaomi miIO fan entity. |
level |
no | Valid values are 1 , 2 and 3 . |
Turn the ptc on.
Service data attribute | Optional | Description |
---|---|---|
entity_id |
no | Only act on a specific Xiaomi miIO fan entity. |
Turn the ptc off.
Service data attribute | Optional | Description |
---|---|---|
entity_id |
no | Only act on a specific Xiaomi miIO fan entity. |
Set the favorite speed.
Service data attribute | Optional | Description |
---|---|---|
entity_id |
no | Only act on a specific Xiaomi miIO fan entity. |
speed |
no | Volume, between 60 and 300. |
Set the ptc level.
Service data attribute | Optional | Description |
---|---|---|
entity_id |
no | Only act on a specific Xiaomi miIO fan entity. |
level |
no | PTC level. Valid values are Low , Medium , High . |
Set the display orientation.
Service data attribute | Optional | Description |
---|---|---|
entity_id |
no | Only act on a specific Xiaomi miIO fan entity. |
display_orientation |
no | Display orientation. Valid values are Portrait , LandscapeLeft and LandscapeRight . |
Turn the display on.
Service data attribute | Optional | Description |
---|---|---|
entity_id |
no | Only act on a specific Xiaomi miIO fan entity. |
Turn the display off.
Service data attribute | Optional | Description |
---|---|---|
entity_id |
no | Only act on a specific Xiaomi miIO fan entity. |
Turn the wet protection on.
Service data attribute | Optional | Description |
---|---|---|
entity_id |
no | Only act on a specific Xiaomi miIO fan entity. |
Turn the wet protection off.
Service data attribute | Optional | Description |
---|---|---|
entity_id |
no | Only act on a specific Xiaomi miIO fan entity. |
For Tasks:
Click tags to check more tools for each tasksFor Jobs:
Alternative AI tools for xiaomi_airpurifier
Similar Open Source Tools
xiaomi_airpurifier
This repository contains a custom component for Home Assistant that integrates various Xiaomi Mi Air Purifier and Xiaomi Mi Air Humidifier models. It provides detailed support for different devices, including power control, preset modes, child lock, LED control, favorite level adjustment, and various attributes monitoring. The custom component offers a more extensive range of supported devices compared to the official Home Assistant component, with additional features and device compatibility. Users can easily set up and configure their Xiaomi air purifiers and humidifiers within Home Assistant for enhanced control and monitoring.
ChatTTS-Forge
ChatTTS-Forge is a powerful text-to-speech generation tool that supports generating rich audio long texts using a SSML-like syntax and provides comprehensive API services, suitable for various scenarios. It offers features such as batch generation, support for generating super long texts, style prompt injection, full API services, user-friendly debugging GUI, OpenAI-style API, Google-style API, support for SSML-like syntax, speaker management, style management, independent refine API, text normalization optimized for ChatTTS, and automatic detection and processing of markdown format text. The tool can be experienced and deployed online through HuggingFace Spaces, launched with one click on Colab, deployed using containers, or locally deployed after cloning the project, preparing models, and installing necessary dependencies.
api-for-open-llm
This project provides a unified backend interface for open large language models (LLMs), offering a consistent experience with OpenAI's ChatGPT API. It supports various open-source LLMs, enabling developers to seamlessly integrate them into their applications. The interface features streaming responses, text embedding capabilities, and support for LangChain, a tool for developing LLM-based applications. By modifying environment variables, developers can easily use open-source models as alternatives to ChatGPT, providing a cost-effective and customizable solution for various use cases.
fittencode.nvim
Fitten Code AI Programming Assistant for Neovim provides fast completion using AI, asynchronous I/O, and support for various actions like document code, edit code, explain code, find bugs, generate unit test, implement features, optimize code, refactor code, start chat, and more. It offers features like accepting suggestions with Tab, accepting line with Ctrl + Down, accepting word with Ctrl + Right, undoing accepted text, automatic scrolling, and multiple HTTP/REST backends. It can run as a coc.nvim source or nvim-cmp source.
gollama
Gollama is a tool designed for managing Ollama models through a Text User Interface (TUI). Users can list, inspect, delete, copy, and push Ollama models, as well as link them to LM Studio. The application offers interactive model selection, sorting by various criteria, and actions using hotkeys. It provides features like sorting and filtering capabilities, displaying model metadata, model linking, copying, pushing, and more. Gollama aims to be user-friendly and useful for managing models, especially for cleaning up old models.
aiosmb
aiosmb is a fully asynchronous SMB library written in pure Python, supporting Python 3.7 and above. It offers various authentication methods such as Kerberos, NTLM, SSPI, and NEGOEX. The library supports connections over TCP and QUIC protocols, with proxy support for SOCKS4 and SOCKS5. Users can specify an SMB connection using a URL format, making it easier to authenticate and connect to SMB hosts. The project aims to implement DCERPC features, VSS mountpoint operations, and other enhancements in the future. It is inspired by Impacket and AzureADJoinedMachinePTC projects.
Speech-AI-Forge
Speech-AI-Forge is a project developed around TTS generation models, implementing an API Server and a WebUI based on Gradio. The project offers various ways to experience and deploy Speech-AI-Forge, including online experience on HuggingFace Spaces, one-click launch on Colab, container deployment with Docker, and local deployment. The WebUI features include TTS model functionality, speaker switch for changing voices, style control, long text support with automatic text segmentation, refiner for ChatTTS native text refinement, various tools for voice control and enhancement, support for multiple TTS models, SSML synthesis control, podcast creation tools, voice creation, voice testing, ASR tools, and post-processing tools. The API Server can be launched separately for higher API throughput. The project roadmap includes support for various TTS models, ASR models, voice clone models, and enhancer models. Model downloads can be manually initiated using provided scripts. The project aims to provide inference services and may include training-related functionalities in the future.
DownEdit
DownEdit is a powerful program that allows you to download videos from various social media platforms such as TikTok, Douyin, Kuaishou, and more. With DownEdit, you can easily download videos from user profiles and edit them in bulk. You have the option to flip the videos horizontally or vertically throughout the entire directory with just a single click. Stay tuned for more exciting features coming soon!
Langchain-Chatchat
LangChain-Chatchat is an open-source, offline-deployable retrieval-enhanced generation (RAG) large model knowledge base project based on large language models such as ChatGLM and application frameworks such as Langchain. It aims to establish a knowledge base Q&A solution that is friendly to Chinese scenarios, supports open-source models, and can run offline.
chatglm.cpp
ChatGLM.cpp is a C++ implementation of ChatGLM-6B, ChatGLM2-6B, ChatGLM3-6B and more LLMs for real-time chatting on your MacBook. It is based on ggml, working in the same way as llama.cpp. ChatGLM.cpp features accelerated memory-efficient CPU inference with int4/int8 quantization, optimized KV cache and parallel computing. It also supports P-Tuning v2 and LoRA finetuned models, streaming generation with typewriter effect, Python binding, web demo, api servers and more possibilities.
chatgpt-web
ChatGPT Web is a web application that provides access to the ChatGPT API. It offers two non-official methods to interact with ChatGPT: through the ChatGPTAPI (using the `gpt-3.5-turbo-0301` model) or through the ChatGPTUnofficialProxyAPI (using a web access token). The ChatGPTAPI method is more reliable but requires an OpenAI API key, while the ChatGPTUnofficialProxyAPI method is free but less reliable. The application includes features such as user registration and login, synchronization of conversation history, customization of API keys and sensitive words, and management of users and keys. It also provides a user interface for interacting with ChatGPT and supports multiple languages and themes.
nexa-sdk
Nexa SDK is a comprehensive toolkit supporting ONNX and GGML models for text generation, image generation, vision-language models (VLM), and text-to-speech (TTS) capabilities. It offers an OpenAI-compatible API server with JSON schema mode and streaming support, along with a user-friendly Streamlit UI. Users can run Nexa SDK on any device with Python environment, with GPU acceleration supported. The toolkit provides model support, conversion engine, inference engine for various tasks, and differentiating features from other tools.
xiaogpt
xiaogpt is a tool that allows you to play ChatGPT and other LLMs with Xiaomi AI Speaker. It supports ChatGPT, New Bing, ChatGLM, Gemini, Doubao, and Tongyi Qianwen. You can use it to ask questions, get answers, and have conversations with AI assistants. xiaogpt is easy to use and can be set up in a few minutes. It is a great way to experience the power of AI and have fun with your Xiaomi AI Speaker.
Muice-Chatbot
Muice-Chatbot is an AI chatbot designed to proactively engage in conversations with users. It is based on the ChatGLM2-6B and Qwen-7B models, with a training dataset of 1.8K+ dialogues. The chatbot has a speaking style similar to a 2D girl, being somewhat tsundere but willing to share daily life details and greet users differently every day. It provides various functionalities, including initiating chats and offering 5 available commands. The project supports model loading through different methods and provides onebot service support for QQ users. Users can interact with the chatbot by running the main.py file in the project directory.
moonpalace
MoonPalace is a debugging tool for API provided by Moonshot AI. It supports all platforms (Mac, Windows, Linux) and is simple to use by replacing 'base_url' with 'http://localhost:9988'. It captures complete requests, including 'accident scenes' during network errors, and allows quick retrieval and viewing of request information using 'request_id' and 'chatcmpl_id'. It also enables one-click export of BadCase structured reporting data to help improve Kimi model capabilities. MoonPalace is recommended for use as an API 'supplier' during code writing and debugging stages to quickly identify and locate various issues related to API calls and code writing processes, and to export request details for submission to Moonshot AI to improve Kimi model.
ovos-installer
The ovos-installer is a simple and multilingual tool designed to install Open Voice OS and HiveMind using Bash, Whiptail, and Ansible. It supports various Linux distributions and provides an automated installation process. Users can easily start and stop services, update their Open Voice OS instance, and uninstall the tool if needed. The installer also allows for non-interactive installation through scenario files. It offers a user-friendly way to set up Open Voice OS on different systems.
For similar tasks
xiaomi_airpurifier
This repository contains a custom component for Home Assistant that integrates various Xiaomi Mi Air Purifier and Xiaomi Mi Air Humidifier models. It provides detailed support for different devices, including power control, preset modes, child lock, LED control, favorite level adjustment, and various attributes monitoring. The custom component offers a more extensive range of supported devices compared to the official Home Assistant component, with additional features and device compatibility. Users can easily set up and configure their Xiaomi air purifiers and humidifiers within Home Assistant for enhanced control and monitoring.
AirCasting
AirCasting is a platform for gathering, visualizing, and sharing environmental data. It aims to provide a central hub for environmental data, making it easier for people to access and use this information to make informed decisions about their environment.
airgradient_esphome
ESPHome yaml files for AirGradient devices to maintain the research and accuracy of AirGradient sensors, while also gaining the benefits of ESPHome/HomeAssistant for easy to use switches, buttons, configurations, and dashboards. Maintains the ability to also send data to the AirGradient Dashboard, which can also be disabled/removed to keep all data local.
AIR-1
AIR-1 is a compact sensor device designed for monitoring various environmental parameters such as gas levels, particulate matter, temperature, and humidity. It features multiple sensors for detecting gases like CO, alcohol, H2, NO2, NH3, CO2, as well as particulate matter, VOCs, NOx, and more. The device is designed with a focus on accuracy and efficient heat management in a small form factor, making it suitable for indoor air quality monitoring and environmental sensing applications.
AireLibre
AireLibre is a community response to the need for freely, collaboratively, and decentralized air quality information. It includes projects like Red Descentralizada de Aire Libre (ReDAL), Linka, Linka Firmware, LinkaBot, AQmap, and Android/iOS apps. Users can join the network with a sensor communicating with Linka. Materials and tools are needed to build a sensor. The initiative is decentralized and open for community collaboration. Users can extend or add projects to AireLibre. The license allows for creating personal networks. AireLibre is not for professional/industrial/scientific/military use, and the sensors are not calibrated in Switzerland.
For similar jobs
xiaomi_airpurifier
This repository contains a custom component for Home Assistant that integrates various Xiaomi Mi Air Purifier and Xiaomi Mi Air Humidifier models. It provides detailed support for different devices, including power control, preset modes, child lock, LED control, favorite level adjustment, and various attributes monitoring. The custom component offers a more extensive range of supported devices compared to the official Home Assistant component, with additional features and device compatibility. Users can easily set up and configure their Xiaomi air purifiers and humidifiers within Home Assistant for enhanced control and monitoring.
addon-airsonos
AirSonos is a Home Assistant Community Add-on that provides AirPlay capabilities for Sonos (and UPnP) players. It bridges the compatibility gap between Apple devices using AirPlay and Sonos players by creating virtual AirPlay devices for Sonos players in the network. The add-on may also work for other UPnP players like newer Samsung televisions. It is based on the AirConnect project, offering a solution for streaming audio to Sonos devices.
aiohomekit
aiohomekit is a Python library that implements the HomeKit protocol for controlling HomeKit accessories using asyncio. It is primarily used with Home Assistant, targeting the same versions of Python and following their code standards. The library is still under development and does not offer API guarantees yet. It aims to match the behavior of real HAP controllers, even when not strictly specified, and works around issues like JSON formatting, boolean encoding, header sensitivity, and TCP packet splitting. aiohomekit is primarily tested with Phillips Hue and Eve Extend bridges via Home Assistant, but is known to work with many more devices. It does not support BLE accessories and is intended for client-side use only.
frigate-hass-integration
Frigate Home Assistant Integration provides a rich media browser with thumbnails and navigation, sensor entities for camera FPS, detection FPS, process FPS, skipped FPS, and objects detected, binary sensor entities for object motion, camera entities for live view and object detected snapshot, switch entities for clips, detection, snapshots, and improve contrast, and support for multiple Frigate instances. It offers easy installation via HACS and manual installation options for advanced users. Users need to configure the `mqtt` integration for Frigate to work. Additionally, media browsing and a companion Lovelace card are available for enhanced user experience. Refer to the main Frigate documentation for detailed installation instructions and usage guidance.
AIR-1
AIR-1 is a compact sensor device designed for monitoring various environmental parameters such as gas levels, particulate matter, temperature, and humidity. It features multiple sensors for detecting gases like CO, alcohol, H2, NO2, NH3, CO2, as well as particulate matter, VOCs, NOx, and more. The device is designed with a focus on accuracy and efficient heat management in a small form factor, making it suitable for indoor air quality monitoring and environmental sensing applications.