Can anyone share successful Linksys device_tracker configuration?

I follow the steps in (https://www.home-assistant.io/integrations/linksys_smart/ ) and try to create device_tracker using on linksys_smart platform. However, nothing shows up after I restarted my hass server.

I did a little research and found some people also experience issue when try to connect to Linksys routers for device tracking. Anyone can help with sharing your successful configuration?

I also tried to add username and password fields to the configuration but it returns the following error. Does this integration requires username and password?

Invalid config for [device_tracker.linksys_smart]: [password] is an invalid option for [device_tracker.linksys_smart]. Check: device_tracker.linksys_smart->password. (See ?, line ?).

Please share your config.

It should be only this:

device_tracker:
  - platform: linksys_smart
    host: 192.168.1.1

no password, the docs you link mention nothing about a password.

My config is changed to the following:

# Presence Detection
device_tracker:
  - platform: linksys_smart
    host: !secret router_ip
    new_device_defaults:
    track_new_devices: true

The config is validated but nothing happened. I check the log and there are a bunch of errors …

Logger: homeassistant.components.device_tracker
Source: components/linksys_smart/device_tracker.py:102
Integration: Device Tracker (documentation, issues)
First occurred: 28 November 2020, 1:36:24 (1 occurrences)
Last logged: 28 November 2020, 1:36:24

Error setting up platform legacy
Traceback (most recent call last):
  File "/usr/local/lib/python3.8/site-packages/urllib3/connection.py", line 169, in _new_conn
    conn = connection.create_connection(
  File "/usr/local/lib/python3.8/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/usr/local/lib/python3.8/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
socket.timeout: timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 699, in urlopen
    httplib_response = self._make_request(
  File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/local/lib/python3.8/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/local/lib/python3.8/http/client.py", line 1255, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/local/lib/python3.8/http/client.py", line 1301, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/local/lib/python3.8/http/client.py", line 1250, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/local/lib/python3.8/http/client.py", line 1010, in _send_output
    self.send(msg)
  File "/usr/local/lib/python3.8/http/client.py", line 950, in send
    self.connect()
  File "/usr/local/lib/python3.8/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/usr/local/lib/python3.8/site-packages/urllib3/connection.py", line 174, in _new_conn
    raise ConnectTimeoutError(
urllib3.exceptions.ConnectTimeoutError: (<urllib3.connection.HTTPConnection object at 0xafd60268>, 'Connection to 192.168.1.1 timed out. (connect timeout=10)')

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.8/site-packages/requests/adapters.py", line 439, in send
    resp = conn.urlopen(
  File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 755, in urlopen
    retries = retries.increment(
  File "/usr/local/lib/python3.8/site-packages/urllib3/util/retry.py", line 573, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='192.168.1.1', port=80): Max retries exceeded with url: /JNAP/ (Caused by ConnectTimeoutError(<urllib3.connection.HTTPConnection object at 0xafd60268>, 'Connection to 192.168.1.1 timed out. (connect timeout=10)'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/device_tracker/setup.py", line 63, in async_setup_legacy
    scanner = await hass.async_add_executor_job(
  File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/src/homeassistant/homeassistant/components/linksys_smart/device_tracker.py", line 25, in get_scanner
    return LinksysSmartWifiDeviceScanner(config[DOMAIN])
  File "/usr/src/homeassistant/homeassistant/components/linksys_smart/device_tracker.py", line 39, in __init__
    response = self._make_request()
  File "/usr/src/homeassistant/homeassistant/components/linksys_smart/device_tracker.py", line 102, in _make_request
    return requests.post(
  File "/usr/local/lib/python3.8/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.8/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.8/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.8/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.8/site-packages/requests/adapters.py", line 504, in send
    raise ConnectTimeout(e, request=request)
requests.exceptions.ConnectTimeout: HTTPConnectionPool(host='192.168.1.1', port=80): Max retries exceeded with url: /JNAP/ (Caused by ConnectTimeoutError(<urllib3.connection.HTTPConnection object at 0xafd60268>, 'Connection to 192.168.1.1 timed out. (connect timeout=10)'))

Did you follow these steps of the docs?

Yes, I did

I too am having the same issue

Logger: homeassistant.components.device_tracker
Source: components/linksys_smart/device_tracker.py:102
Integration: Device Tracker (documentation, issues)
First occurred: 8:38:49 (1 occurrences)
Last logged: 8:38:49

Error setting up platform legacy
Traceback (most recent call last):
  File "/usr/local/lib/python3.8/site-packages/urllib3/connection.py", line 169, in _new_conn
    conn = connection.create_connection(
  File "/usr/local/lib/python3.8/site-packages/urllib3/util/connection.py", line 96, in create_connection
    raise err
  File "/usr/local/lib/python3.8/site-packages/urllib3/util/connection.py", line 86, in create_connection
    sock.connect(sa)
socket.timeout: timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 699, in urlopen
    httplib_response = self._make_request(
  File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 394, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "/usr/local/lib/python3.8/site-packages/urllib3/connection.py", line 234, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "/usr/local/lib/python3.8/http/client.py", line 1255, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/local/lib/python3.8/http/client.py", line 1301, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/local/lib/python3.8/http/client.py", line 1250, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/local/lib/python3.8/http/client.py", line 1010, in _send_output
    self.send(msg)
  File "/usr/local/lib/python3.8/http/client.py", line 950, in send
    self.connect()
  File "/usr/local/lib/python3.8/site-packages/urllib3/connection.py", line 200, in connect
    conn = self._new_conn()
  File "/usr/local/lib/python3.8/site-packages/urllib3/connection.py", line 174, in _new_conn
    raise ConnectTimeoutError(
urllib3.exceptions.ConnectTimeoutError: (<urllib3.connection.HTTPConnection object at 0x7f6a53b74f40>, 'Connection to 192.168.1.100 timed out. (connect timeout=10)')

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.8/site-packages/requests/adapters.py", line 439, in send
    resp = conn.urlopen(
  File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 755, in urlopen
    retries = retries.increment(
  File "/usr/local/lib/python3.8/site-packages/urllib3/util/retry.py", line 573, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='192.168.1.100', port=80): Max retries exceeded with url: /JNAP/ (Caused by ConnectTimeoutError(<urllib3.connection.HTTPConnection object at 0x7f6a53b74f40>, 'Connection to 192.168.1.100 timed out. (connect timeout=10)'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/device_tracker/legacy.py", line 231, in async_setup_legacy
    scanner = await hass.async_add_executor_job(
  File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/src/homeassistant/homeassistant/components/linksys_smart/device_tracker.py", line 25, in get_scanner
    return LinksysSmartWifiDeviceScanner(config[DOMAIN])
  File "/usr/src/homeassistant/homeassistant/components/linksys_smart/device_tracker.py", line 39, in __init__
    response = self._make_request()
  File "/usr/src/homeassistant/homeassistant/components/linksys_smart/device_tracker.py", line 102, in _make_request
    return requests.post(
  File "/usr/local/lib/python3.8/site-packages/requests/api.py", line 119, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.8/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.8/site-packages/requests/sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.8/site-packages/requests/sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.8/site-packages/requests/adapters.py", line 504, in send
    raise ConnectTimeout(e, request=request)
requests.exceptions.ConnectTimeout: HTTPConnectionPool(host='192.168.1.100', port=80): Max retries exceeded with url: /JNAP/ (Caused by ConnectTimeoutError(<urllib3.connection.HTTPConnection object at 0x7f6a53b74f40>, 'Connection to 192.168.1.100 timed out. (connect timeout=10)'))

My config is exactly as per the documentation

  - platform: linksys_smart
    host: 192.168.1.100

192.168.1.100 is my router IP as per the instructions and I have turned off "Access via wireless” as required in the docs (which is a bit of a nuisance).

Anyone that has ever asked for advice has mentioned they had usernames/passwords in their config, which I do no. They have always been shot down for having even mentioned this with comments such as “no password, the docs you link mention nothing about a password.”.

HOWEVER, I do not understand from the documention how HA is passing a userid or password as per the note below, if its not being entered anywhere;

If “Access via wireless” is not disabled, a connectivity conflict arises because the Home Assistant integration is trying to pass userid and password, but the router is only expecting a password.

My Linksys router is the MX5300 Mesh system. Im aware it may not be confirmed as working on the integration page, maybe this is all peoples issue is? Is there anyway of checking if the router shoudl work?

1 Like

Your router IP is not a secret when you post the logs with it.
Not that it matters since nobody can do anything with your local IP anyways.

If any IP starts with 192 then you don’t need to make it secret.

I have been struggling with this as well. I have several other more pressing issues that I’ve been dealing with and so tabled this one for several days, but I keep coming back to it, as my device tracking is still a priority for me.
There are several entries in the forums where people have posted their configuration having considerably more than just the two lines, and claim it’s working. But those posts are about two years or more old. It would be helpful if someone could post a current configuration that is working. I am getting similar errors to Craig and Kevin, if trying to use a password, so will not re-post them here. But it simply does not appear to work without one…
Thanks to everyone in the community who is willing to provide direction and support.

Hi Bryant
Mine randomly started working a few days ago. Coinciding with a reboot of my Orbi.
I’ll dig out my current config for you tomorrow to see what it’s like.

Sorry @Bryant_Hayward, re-reading the thread this morning I have released its about Linksys!! I gave up on Linksys within 4 or 5 days of receiving it (not because of device tracking I should add) and returned it to buy a Netgear Orbi Mesh system instead.
Good luck in getting your device tracking working!

1 Like

Thanks for the reply! I think I’m going to do the same.
My ISP provided a Sagemcom router, but I already had a Linksys that was working fine, so didn’t bother using it. But…thinking now I’ll just switch to the Sagemcom, since there is integration for that router and people don’t seem to have issues with it.

I got my Linksys AC2200 Smart Mesh Wi-Fi Router and Linksys Velop Mesh Router using the following intergration.

Hi! New here. I’m getting this error with my Linksys WRT 32X.

Logger: homeassistant.components.device_tracker
Källa: components/device_tracker/legacy.py:361
integration: Enhetsspårare (dokumentation, ärenden)
Inträffade först: 14:39:26 (1 händelser)
Senast loggade: 14:39:26

Error setting up platform legacy linksys_smart

Any idea what that could be? Old router?