home-assistant.io/source/_integrations/device_tracker.xiaomi.markdown
c0ffeeca7 4bb544e615
d and e integrations: apply sentence-style capitalization (#29901)
* d and e integrations: apply sentence-style capitalization

- add references to glossary terms

* Apply suggestions from code review

* Apply suggestions from code review

Co-authored-by: Joakim Sørensen <joasoe@gmail.com>

* Apply suggestions from code review

Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>

* Fix typo

---------

Co-authored-by: Joakim Sørensen <joasoe@gmail.com>
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
2023-11-19 14:03:36 +01:00

1.7 KiB

title, description, ha_category, ha_release, ha_domain
title description ha_category ha_release ha_domain
Xiaomi router Instructions on how to integrate Xiaomi routers into Home Assistant.
Presence detection
0.36 xiaomi

The xiaomi platform offers presence detection by looking at connected devices to a Xiaomi router.

Setup

To use an Xiaomi router in your installation, add the following to your configuration.yaml file:

# Example configuration.yaml entry
device_tracker:
  - platform: xiaomi
    host: YOUR_ROUTER_IP
    password: YOUR_ADMIN_PASSWORD

{% configuration %} host: description: "The IP address of your router, e.g., 192.168.0.1." required: true type: string username: description: The admin username. required: false default: admin type: string password: description: The password for the admin account. required: true type: string {% endconfiguration %}

See the device tracker integration page for instructions how to configure the people to be tracked.

Compatibility test

To ensure that your router is compatible, navigate to http://YOUR_ROUTER_IP/api/misystem/devicelist. You should see a listing of the device currently connected to your router.

However, some users report that even when the previous URL does not work, they have been able to integrate their Mi Router 3 in Home Assistant. E.g., some users with the Mi Router 3 and firmware version 2.10.46 Stable have integrated their routers successfully and an alternative URL to test integration with is http://YOUR_ROUTER_IP/cgi-bin/luci/api/misystem/devicelist. Navigating to this page should show the {"code":401,"msg":"Invalid token"} message.