device.type
:air-purifier
- Models: Mi Air Purifier 1 & 2, Pro
- Model identifiers:
zhimi.airpurifier.m1
,zhimi.airpurifier.v1
,zhimi.airpurifier.v2
, ,zhimi.airpurifier.v6
power
, boolean indicating the power state of the devicemode
, string indicating the current modetemperature
, number indicating the temperature in Celsiushumidity
, number indicating the relative humidity in percentaqi
, number indicating the air quality index (based on PM2.5)
device.power
, read-only boolean indicating if the device is powered ondevice.setPower(boolean)
, change the power state of the device, returns a promise
The air purifiers have different modes that controls their speed.
device.mode
, read-only string indicating the current modedevice.modes
, read-only array indicating the modes supports by the devicedevice.setMode(string)
, set the current mode of the device, returns a promise
The modes are currently:
idle
, turn the device offauto
, set the device to automatic mode where it controls the speed itselfsilent
, lowest speed, for silent operation or night timelow
, low speedmedium
, medium speedhigh
, high speed
device.temperature
- number indicating the temperature in Celsiusdevice.humidity
- number indicating the relative humidity in percentdevice.aqi
- number indicating the Air Quality Index (based on PM2.5)
device.buzzer
- boolean indicating if the buzzer (beep) is activedevice.setBuzzer(boolean)
- switch the buzzer on or offdevice.led
- if the LED is on or offdevice.setLed(boolean)
- switch the LED on or offdevice.ledBrightness
- the LED brightness,bright
,dim
oroff
device.setLedBrightness(string)
- set the brightness of the LEDdevice.favoriteLevel
- set the speed the device should run at when mode isfavorite
. Between 0 and 16.device.setFavoriteLevel(number)
- set the speed for modefavorite