Incident on the component device_tracker "Xiaomi Router R3G"

Hello,
I tried to integrate the component “device_tracker” “Xiaomi Router R3G”, according to the official documentation, but it does not work!
I am getting the following error messages:

Aug 18 11:35:13 raspi0 hass[245]: #033[31m2019-08-18 11:35:13 ERROR (SyncWorker_2) [homeassistant.components.xiaomi.device_tracker] Connection to the router timed out at URL http://192.168.1.79/cgi-bin/luci/;stok=e170291dee13120224c26be6848ae58a/api/misystem/devicelist#033[0m
Aug 18 11:35:13 raspi0 hass[245]: raise six.reraise(type(error), error, _stacktrace)
Aug 18 11:35:13 raspi0 hass[245]: raise ReadTimeoutError(self, url, “Read timed out. (read timeout=%s)” % timeout_value)
Aug 18 11:35:13 raspi0 hass[245]: urllib3.exceptions.ReadTimeoutError: HTTPConnectionPool(host=‘192.168.1.79’, port=80): Read timed out. (read timeout=5)

Can you help me ?
In advance, thank you.

PS:

  1. My router is installed with the original Xiaomi version.
  2. The documentation followed.
    https://www.home-assistant.io/components/device_tracker.xiaomi/
    . Example configuration.yaml entry
device_tracker:
  - platform: xiaomi
    host: YOUR_ROUTER_IP
    password: YOUR_ADMIN_PASSWORD

I’m not familiar with that device or component but the IP address seems unusual for a router. Most routers include DHCP servers, and DHCP servers generally take the first IP address in the subnet they’re serving (###.###.###.1).

From a cursory search it looks like Xiaomi routers typically use 192.168.31.1 as the default IP address.

I ve got the same problem. It was ok since, i think, an update on the Xiaomi device.
here’s my log:

Connection to the router timed out
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/urllib3/connectionpool.py", line 387, in _make_request
    six.raise_from(e, None)
  File "<string>", line 2, in raise_from
  File "/usr/local/lib/python3.7/site-packages/urllib3/connectionpool.py", line 383, in _make_request
    httplib_response = conn.getresponse()
  File "/usr/local/lib/python3.7/http/client.py", line 1336, in getresponse
    response.begin()
  File "/usr/local/lib/python3.7/http/client.py", line 306, in begin
    version, status, reason = self._read_status()
  File "/usr/local/lib/python3.7/http/client.py", line 267, in _read_status
    line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
  File "/usr/local/lib/python3.7/socket.py", line 589, in readinto
    return self._sock.recv_into(b)
socket.timeout: timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/local/lib/python3.7/site-packages/urllib3/connectionpool.py", line 641, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/usr/local/lib/python3.7/site-packages/urllib3/util/retry.py", line 368, in increment
    raise six.reraise(type(error), error, _stacktrace)
  File "/usr/local/lib/python3.7/site-packages/urllib3/packages/six.py", line 686, in reraise
    raise value
  File "/usr/local/lib/python3.7/site-packages/urllib3/connectionpool.py", line 603, in urlopen
    chunked=chunked)
  File "/usr/local/lib/python3.7/site-packages/urllib3/connectionpool.py", line 389, in _make_request
    self._raise_timeout(err=e, url=url, timeout_value=read_timeout)
  File "/usr/local/lib/python3.7/site-packages/urllib3/connectionpool.py", line 307, in _raise_timeout
    raise ReadTimeoutError(self, url, "Read timed out. (read timeout=%s)" % timeout_value)
urllib3.exceptions.ReadTimeoutError: HTTPConnectionPool(host='192.168.0.109', port=80): Read timed out. (read timeout=5)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/xiaomi/device_tracker.py", line 149, in _get_token
    res = requests.post(url, data=data, timeout=5)
  File "/usr/local/lib/python3.7/site-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.7/site-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.7/site-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.7/site-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.7/site-packages/requests/adapters.py", line 529, in send
    raise ReadTimeout(e, request=request)
requests.exceptions.ReadTimeout: HTTPConnectionPool(host='192.168.0.109', port=80): Read timed out. (read timeout=5)

Hello,
I gave up this idea because finally I found another presence sensor that works well thanks to the ping!
Thank you for trying to help me.
PS: Here is my solution, in the file “configuration.yaml”

  - platform: ping
    interval_seconds: 30
    consider_home: 180
    hosts:
      redmi4a_p: 192.168.x.xx