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
Copy file name to clipboardExpand all lines: source/_components/xiaomi.markdown
+17-16
Original file line number
Diff line number
Diff line change
@@ -129,9 +129,25 @@ Automation example
129
129
gw_mac: xxxxxxxxxxxx
130
130
```
131
131
132
+
### {% linkable_title Troubleshooting %}
133
+
134
+
**Connection problem**
135
+
136
+
```bash
137
+
2017-08-20 16:51:19 ERROR (SyncWorker_0) [homeassistant.components.xiaomi] No gateway discovered
138
+
2017-08-20 16:51:20 ERROR (MainThread) [homeassistant.setup] Setup failed for xiaomi: Component failed to initialize.
139
+
```
140
+
141
+
That means that Home Assistant is not getting any response from your Xiaomi gateway. Might be a local network problem or your firewall.
142
+
- Make sure you have enabled LAN access: https://community.home-assistant.io/t/beta-xiaomi-gateway-integration/8213/1832
143
+
- Turn off the firewall on the system where Home Assistant is running
144
+
- Try to leave the MAC address `mac:` blank.
145
+
- Try to set `discovery_retry: 10`
146
+
- Try to disable and then enable LAN access
147
+
132
148
### {% linkable_title Retrieving the Access Token %}
133
149
134
-
Follow the pairing process using your phone and Mi-Home app. You will be able to retrieve the token from a SQLite file inside your phone. This token is needed for using various `xiaomi` platforms.
150
+
Follow the pairing process using your phone and Mi-Home app. You will be able to retrieve the token from a SQLite file inside your phone. This token is needed for using various `xiaomi_*` platforms.
135
151
136
152
Before you begin you need to install `libffi-dev` by running the command below. This is needed for `python-mirobi` to be installed correctly.
4. Extract this file: **`/raw data/com.xiami.mihome/1234567_mihome.sqlite`** to your computer, where `_1234567_` is any string of numbers.
194
210
5. Open the SQLite database with a tool like SQLite Manager extension for FireFox or DB Browser. You will then see the list of all the devices in your account with their token. The token you need is in the column **`ZToken`** and looks like **`123a1234567b12345c1d123456789e12`**.
195
211
196
-
### {% linkable_title Troubleshooting %}
197
-
198
-
**Connection problem**
199
-
200
-
```bash
201
-
2017-08-20 16:51:19 ERROR (SyncWorker_0) [homeassistant.components.xiaomi] No gateway discovered
202
-
2017-08-20 16:51:20 ERROR (MainThread) [homeassistant.setup] Setup failed for xiaomi: Component failed to initialize.
203
-
```
204
-
205
-
That means that Home Assistant is not getting any response from your Xiaomi gateway. Might be a local network problem or your firewall.
206
-
- Make sure you have enabled LAN access: https://community.home-assistant.io/t/beta-xiaomi-gateway-integration/8213/1832
207
-
- Turn off the firewall on the system where Home Assistant is running
0 commit comments