I gave this component another try, but I can’t get it to work. This is my config (the # is the ones I tried to turn on and off, but no luck). Can anyone see what I am doing wrong?
device_tracker:
#device tracker experia
- platform: experiaboxv10a
host: mijnmodem.kpn
# host:
username: admin
password: !secret routerwachtwoord
# new_device_defaults:
# track_new_devices: true
# hide_if_away: False
Log Details (ERROR)
Wed Apr 22 2020 20:58:28 GMT+0200 (Midden-Europese zomertijd)
Error setting up platform legacy
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/urllib3/connection.py", line 157, in _new_conn
(self._dns_host, self.port), self.timeout, **extra_kw
File "/usr/local/lib/python3.7/site-packages/urllib3/util/connection.py", line 61, in create_connection
for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
File "/usr/local/lib/python3.7/socket.py", line 748, in getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name does not resolve
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/urllib3/connectionpool.py", line 672, in urlopen
chunked=chunked,
File "/usr/local/lib/python3.7/site-packages/urllib3/connectionpool.py", line 376, in _make_request
self._validate_conn(conn)
File "/usr/local/lib/python3.7/site-packages/urllib3/connectionpool.py", line 994, in _validate_conn
conn.connect()
File "/usr/local/lib/python3.7/site-packages/urllib3/connection.py", line 334, in connect
conn = self._new_conn()
File "/usr/local/lib/python3.7/site-packages/urllib3/connection.py", line 169, in _new_conn
self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x703d78f0>: Failed to establish a new connection: [Errno -2] Name does not resolve
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 720, in urlopen
method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
File "/usr/local/lib/python3.7/site-packages/urllib3/util/retry.py", line 436, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='mijnmodem.kpn', port=443): Max retries exceeded with url: /login.htm (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x703d78f0>: Failed to establish a new connection: [Errno -2] Name does not resolve'))
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 65, in async_setup_legacy
self.platform.get_scanner, hass, {DOMAIN: self.config}
File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/config/custom_components/experiaboxv10a/device_tracker.py", line 32, in get_scanner
return ExperiaBoxV10ADeviceScanner(config[DOMAIN])
File "/config/custom_components/experiaboxv10a/device_tracker.py", line 58, in __init__
self.success_init = self._update_info()
File "/config/custom_components/experiaboxv10a/device_tracker.py", line 96, in _update_info
page_initial = session.get(login_url_initial, timeout = 10, verify = self.ca_cert_bundle)
File "/usr/local/lib/python3.7/site-packages/requests/sessions.py", line 546, in get
return self.request('GET', 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 516, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='mijnmodem.kpn', port=443): Max retries exceeded with url: /login.htm (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x703d78f0>: Failed to establish a new connection: [Errno -2] Name does not resolve'))