Xiaomi Mi Air Quality Monitor (PM2.5)
This is a custom component for home assistant to integrate the Xiaomi Mi Air Quality Monitor (PM2.5).
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.
Features
Air Quality Monitor
- Air Quality Index (AQI)
- Attributes
- power
- charging
- battery
- time_state
Setup
# configuration.yaml
sensor:
- platform: xiaomi_miio
name: Xiaomi Air Quality Monitor
host: 192.168.130.73
token: 56197337f51f287d69a8a16cf0677379
Configuration variables:
- host (Required): The IP of your light.
- token (Required): The API token of your light.
- name (Optional): The name of your light.