Skip to content

Commit 52a33dd

Browse files
committed
Move instructions down
1 parent db6aa5e commit 52a33dd

File tree

1 file changed

+17
-16
lines changed

1 file changed

+17
-16
lines changed

source/_components/xiaomi.markdown

+17-16
Original file line numberDiff line numberDiff line change
@@ -129,9 +129,25 @@ Automation example
129129
gw_mac: xxxxxxxxxxxx
130130
```
131131

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+
132148
### {% linkable_title Retrieving the Access Token %}
133149

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.
135151

136152
Before you begin you need to install `libffi-dev` by running the command below. This is needed for `python-mirobi` to be installed correctly.
137153

@@ -193,18 +209,3 @@ $ java.exe -jar ../android-backup-extractor/abe.jar unpack backup.ab backup.tar
193209
4. Extract this file: **`/raw data/com.xiami.mihome/1234567_mihome.sqlite`** to your computer, where `_1234567_` is any string of numbers.
194210
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`**.
195211

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
208-
- Try to leave the MAC address `mac:` blank.
209-
- Try to set `discovery_retry: 10`
210-
- Try to disable and then enable LAN access

0 commit comments

Comments
 (0)