accessory: Must always be "XiaomiAirPurifier3" (required)
name: Name that will be displayed in your home app (required)
did: The device id of the air purifier (required)
ip: Ip address of the air purifier (required)
token: The device token of the air purifier (required)
pm25_breakpoints: PM2.5 aqi breakpoints for air quality levels (optional)
Device id (did) and IP Address (ip)
IMPORTANT: I recommend that you assign a static ip address in order to avoid having your router change the ip address of the device on reboot or when the lease expires.
Is install the miio npm package
npm install -g miio
Make sure your computer is on the same network with your air purifier, then run following command.
miio discover
You may need to wait few minutes until you get the response similar to below:
This is no so straight forward but it shouldn't be to hard either. I don't plan to keep and updated tutorial on this but there a lot of good ones online so you can use google to find them.
请发表评论