device.type
:humidifier
- Models: Mi Humidifier
- Model identifiers:
zhimi.humidifier.v1
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 percent
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 humidifiers 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:
silent
, lower 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.ledBrightness
- the LED brightness,bright
,dim
oroff
device.setLedBrightness(string)
- set the brightness of the LED