You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 24, 2024. It is now read-only.
Copy file name to clipboardexpand all lines: README.md
+41-3
Original file line number
Diff line number
Diff line change
@@ -1,13 +1,17 @@
1
1
# homebridge-mi-air-purifier
2
2
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.
-`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
48
52
49
53
50
54
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`.
52
88
53
89
```
54
90
"accessories": [
55
91
{
56
92
"accessory": "MiAirPurifier",
57
93
"name": "Air Purifier",
94
+
"ip": "ADDRESS_OF_THE_AIR_PURIFIER",
95
+
"token": "TOKEN_FROM_STEP_3".
58
96
"showTemperature": true,
59
97
"showHumidity": true,
60
98
"showAirQuality": true
@@ -66,7 +104,7 @@ This is Xiaomi Mi Air Purifier plugin for [Homebridge](https://github.com/nfarin
66
104
67
105
68
106
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.
0 commit comments