Xiaomi Router


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 Variables

host

(string)(Required)The IP address of your router, e.g., 192.168.0.1.

username

(string)(Optional)The admin username.

Default value: admin

password

(string)(Required)The password for the admin account.

See the device tracker component 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.