XiaoMi Air Quality Monitor(PM2.5 sensor) component for Home Assistant.
- Copy custom_components/sensor/mi_air_quality_moitor.py to .homeassistant/custom_components/sensor.
- Get the IP of your sensor.
- Follow Retrieving the Access Token guide to get the token of your sensor
sensor:
- platform: mi_air_quality_monitor
host: YOUR_SENSOR_IP
token: YOUR_SENSOR_TOKEN
name: YOUT_SENSOR_NAME