Skip to content
This repository was archived by the owner on Oct 24, 2024. It is now read-only.

Commit fd3ab91

Browse files
committed
The device will added as Air Purifier in Home app as the release of iOS 11.
1 parent 597d86a commit fd3ab91

File tree

3 files changed

+180
-111
lines changed

3 files changed

+180
-111
lines changed

README.md

+41-3
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,17 @@
11
# homebridge-mi-air-purifier
22

3-
This is Xiaomi Mi Air Purifier plugin for [Homebridge](https://github.com/nfarina/homebridge). Since Apple Homekit is not supporting air purifier device yet, this plugin will add the air purifier as **Fan** and **Air Quality Sensor** to your Home app.
3+
This is Xiaomi Mi Air Purifier plugin for [Homebridge](https://github.com/nfarina/homebridge). This plugin will add the air purifier and **Air Quality Sensor** to your Home app. This version is working with iOS 11 to add the device as air purifier in Home app.
44

55
![mi-air-purifier](https://cloud.githubusercontent.com/assets/73107/26249685/1d0ae78c-3cda-11e7-8b64-71e8d4323a3e.jpg)
66

77
### Features
88

99
* Switch on / off.
1010

11+
* Switch auto / manual mode.
12+
13+
* Turn parental mode on / off.
14+
1115
* Control modes:
1216

1317
- `Idle / Off`: Lift fan speed to 0% from Home app.
@@ -48,13 +52,47 @@ This is Xiaomi Mi Air Purifier plugin for [Homebridge](https://github.com/nfarin
4852
4953
5054
51-
2. Add following accessory to the `config.json`.
55+
2. Make sure your Homebridge server is same network with your air purifier, then run following command to discover the token.
56+
57+
```
58+
miio --discover --sync
59+
```
60+
61+
62+
63+
3. You may need to wait few minutes until you get the response similar to below:
64+
65+
```
66+
Device ID: 49466088
67+
Model info: Unknown
68+
Address: 192.168.1.8
69+
Token: 6f7a65786550386c700a6b526666744d via auto-token
70+
Support: Unknown
71+
```
72+
73+
74+
75+
4. Record down the `Address` and `Token` values as we need it in our configuration file later.
76+
77+
5. If you are getting `??????????????` for your token value, please reset your device and connect your Homebridge server directly to the access point advertised by the device.
78+
79+
6. Then run the command again.
80+
81+
```
82+
miio --discover --sync
83+
```
84+
85+
86+
87+
7. Add following accessory to the `config.json`.
5288
5389
```
5490
"accessories": [
5591
{
5692
"accessory": "MiAirPurifier",
5793
"name": "Air Purifier",
94+
"ip": "ADDRESS_OF_THE_AIR_PURIFIER",
95+
"token": "TOKEN_FROM_STEP_3".
5896
"showTemperature": true,
5997
"showHumidity": true,
6098
"showAirQuality": true
@@ -66,7 +104,7 @@ This is Xiaomi Mi Air Purifier plugin for [Homebridge](https://github.com/nfarin
66104
67105
68106
69-
3. Restart Homebridge, and your Mi air purifier will be discovered automatically.
107+
8. Restart Homebridge, and your Mi air purifier will be added to Home app.
70108
71109
72110

0 commit comments

Comments
 (0)