Xiaomi Air Quality Monitor


The xiaomi_miio sensor platform is observing your Xiaomi Mi Air Quality Monitor (PM2.5) and reporting the air quality index.

Currently, the supported features are:

  • Air Quality Index (AQI)
  • Attributes
    • power
    • charging
    • battery
    • time_stat

Please follow the instructions on Retrieving the Access Token to get the API token.

To add a Xiaomi Mi Air Quality Monitor to your installation, add the following to your configuration.yaml file:

# Example configuration.yaml entry
sensor:
  - platform: xiaomi_miio
    name: Xiaomi Air Quality Monitor
    host: 192.168.130.73
    token: YOUR_TOKEN

Configuration Variables

host

(string)(Required)The IP address of your miio device.

token

(string)(Required)The API token of your miio device.

name

(string)(Optional)The name of your miio device.

Default value: Xiaomi Miio Sensor