Hey all, I had stability issues with my DietPi installation (lost connections randomly) so decided to do a clean install of Dietpi + HA.
Since I did, I am having below issues with Wink. It sometimes won’t initialize or somewhere during the day it will stop working.
As you can see there are some networking issues. I have rebooted the router and Wink hub as well to no avail.
If I reboot the device, it will work sometimes for a while but eventually the Wink integration starts to fail.
I suspect it started after I updated the Raspberry Pi firmware to the latest version, but I am not 100% sure.
Here is the full log:
17-01-03 07:40:01 homeassistant.bootstrap: Error during setup of component wink
Traceback (most recent call last):
** File “/srv/hass/lib/python3.4/site-packages/requests/packages/urllib3/connection.py”, line 138, in _new_conn**
** (self.host, self.port), self.timeout, extra_kw)
** File “/srv/hass/lib/python3.4/site-packages/requests/packages/urllib3/util/connection.py”, line 75, in create_connection**
** for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):**
** File “/usr/lib/python3.4/socket.py”, line 530, in getaddrinfo**
** for res in _socket.getaddrinfo(host, port, family, type, proto, flags):**
socket.gaierror: [Errno -2] Name or service not known
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
** File “/srv/hass/lib/python3.4/site-packages/requests/packages/urllib3/connectionpool.py”, line 594, in urlopen**
** chunked=chunked)**
** File “/srv/hass/lib/python3.4/site-packages/requests/packages/urllib3/connectionpool.py”, line 350, in _make_request**
** self._validate_conn(conn)**
** File “/srv/hass/lib/python3.4/site-packages/requests/packages/urllib3/connectionpool.py”, line 835, in _validate_conn**
** conn.connect()**
** File “/srv/hass/lib/python3.4/site-packages/requests/packages/urllib3/connection.py”, line 281, in connect**
** conn = self._new_conn()**
** File “/srv/hass/lib/python3.4/site-packages/requests/packages/urllib3/connection.py”, line 147, in _new_conn**
** self, “Failed to establish a new connection: %s” % e)**
requests.packages.urllib3.exceptions.NewConnectionError: <requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x6f9677f0>: Failed to establish a new connection: [Errno -2] Name or service not known
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
** File “/srv/hass/lib/python3.4/site-packages/requests/adapters.py”, line 423, in send**
** timeout=timeout**
** File “/srv/hass/lib/python3.4/site-packages/requests/packages/urllib3/connectionpool.py”, line 643, in urlopen**
** _stacktrace=sys.exc_info()[2])**
** File “/srv/hass/lib/python3.4/site-packages/requests/packages/urllib3/util/retry.py”, line 363, in increment**
** raise MaxRetryError(_pool, url, error or ResponseError(cause))**
requests.packages.urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host=‘api.wink.com’, port=443): Max retries exceeded with url: /users/me/wink_devices (Caused by NewConnectionError(’<requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x6f9677f0>: Failed to establish a new connection: [Errno -2] Name or service not known’,))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
** File “/srv/hass/lib/python3.4/site-packages/homeassistant/bootstrap.py”, line 151, in _async_setup_component**
** None, component.setup, hass, config)**
** File “/usr/lib/python3.4/asyncio/futures.py”, line 388, in iter**
** yield self # This tells Task to wait for completion.**
** File “/usr/lib/python3.4/asyncio/tasks.py”, line 286, in _wakeup**
** value = future.result()**
** File “/usr/lib/python3.4/asyncio/futures.py”, line 277, in result**
** raise self._exception**
** File “/usr/lib/python3.4/concurrent/futures/thread.py”, line 54, in run**
** result = self.fn(self.args, self.kwargs)
** File “/srv/hass/lib/python3.4/site-packages/homeassistant/components/wink.py”, line 82, in setup*
** pywink.get_subscription_key(),**
** File “/home/hass/.homeassistant/deps/pywink/api.py”, line 190, in get_subscription_key**
** response_dict = wink_api_fetch()**
** File “/home/hass/.homeassistant/deps/pywink/api.py”, line 204, in wink_api_fetch**
** response = requests.get(arequest_url, headers=API_HEADERS)**
** File “/srv/hass/lib/python3.4/site-packages/requests/api.py”, line 70, in get**
** return request(‘get’, url, params=params, kwargs)
** File “/srv/hass/lib/python3.4/site-packages/requests/api.py”, line 56, in request**
** return session.request(method=method, url=url, kwargs)
** File “/srv/hass/lib/python3.4/site-packages/requests/sessions.py”, line 488, in request**
** resp = self.send(prep, send_kwargs)
** File “/srv/hass/lib/python3.4/site-packages/requests/sessions.py”, line 609, in send**
** r = adapter.send(request, kwargs)
** File “/srv/hass/lib/python3.4/site-packages/requests/adapters.py”, line 487, in send**
** raise ConnectionError(e, request=request)**
requests.exceptions.ConnectionError: HTTPSConnectionPool(host=‘api.wink.com’, port=443): Max retries exceeded with url: /users/me/wink_devices (Caused by NewConnectionError(’<requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x6f9677f0>: Failed to establish a new connection: [Errno -2] Name or service not known’,))
17-01-03 07:40:02 homeassistant.components.device_tracker: Error setting up platform ddwrt
Traceback (most recent call last):
** File “/srv/hass/lib/python3.4/site-packages/requests/packages/urllib3/connection.py”, line 138, in _new_conn**
** (self.host, self.port), self.timeout, extra_kw)
** File “/srv/hass/lib/python3.4/site-packages/requests/packages/urllib3/util/connection.py”, line 98, in create_connection**
** raise err**
** File “/srv/hass/lib/python3.4/site-packages/requests/packages/urllib3/util/connection.py”, line 88, in create_connection**
** sock.connect(sa)**
OSError: [Errno 101] Network is unreachable
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
** File “/srv/hass/lib/python3.4/site-packages/requests/packages/urllib3/connectionpool.py”, line 594, in urlopen**
** chunked=chunked)**
** File “/srv/hass/lib/python3.4/site-packages/requests/packages/urllib3/connectionpool.py”, line 361, in _make_request**
** conn.request(method, url, httplib_request_kw)
** File “/usr/lib/python3.4/http/client.py”, line 1090, in request**
** self._send_request(method, url, body, headers)**
** File “/usr/lib/python3.4/http/client.py”, line 1128, in _send_request**
** self.endheaders(body)**
** File “/usr/lib/python3.4/http/client.py”, line 1086, in endheaders**
** self._send_output(message_body)**
** File “/usr/lib/python3.4/http/client.py”, line 924, in _send_output**
** self.send(msg)**
** File “/usr/lib/python3.4/http/client.py”, line 859, in send**
** self.connect()**
** File “/srv/hass/lib/python3.4/site-packages/requests/packages/urllib3/connection.py”, line 163, in connect**
** conn = self._new_conn()**
** File “/srv/hass/lib/python3.4/site-packages/requests/packages/urllib3/connection.py”, line 147, in _new_conn**
** self, “Failed to establish a new connection: %s” % e)**
requests.packages.urllib3.exceptions.NewConnectionError: <requests.packages.urllib3.connection.HTTPConnection object at 0x6f806ef0>: Failed to establish a new connection: [Errno 101] Network is unreachable
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
** File “/srv/hass/lib/python3.4/site-packages/requests/adapters.py”, line 423, in send**
** timeout=timeout**
** File “/srv/hass/lib/python3.4/site-packages/requests/packages/urllib3/connectionpool.py”, line 643, in urlopen**
** _stacktrace=sys.exc_info()[2])**
** File “/srv/hass/lib/python3.4/site-packages/requests/packages/urllib3/util/retry.py”, line 363, in increment**
** raise MaxRetryError(_pool, url, error or ResponseError(cause))**
requests.packages.urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host=‘192.168.11.1’, port=80): Max retries exceeded with url: /Status_Wireless.live.asp (Caused by NewConnectionError(’<requests.packages.urllib3.connection.HTTPConnection object at 0x6f806ef0>: Failed to establish a new connection: [Errno 101] Network is unreachable’,))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
** File “/srv/hass/lib/python3.4/site-packages/homeassistant/components/device_tracker/init.py”, line 148, in async_setup_platform**
** None, platform.get_scanner, hass, {DOMAIN: p_config})**
** File “/usr/lib/python3.4/asyncio/futures.py”, line 388, in iter**
** yield self # This tells Task to wait for completion.**
** File “/usr/lib/python3.4/asyncio/tasks.py”, line 286, in _wakeup**
** value = future.result()**
** File “/usr/lib/python3.4/asyncio/futures.py”, line 277, in result**
** raise self._exception**
** File “/usr/lib/python3.4/concurrent/futures/thread.py”, line 54, in run**
** result = self.fn(self.args, self.kwargs)
** File “/srv/hass/lib/python3.4/site-packages/homeassistant/components/device_tracker/ddwrt.py”, line 39, in get_scanner*
** return DdWrtDeviceScanner(config[DOMAIN])**
** File “/srv/hass/lib/python3.4/site-packages/homeassistant/components/device_tracker/ddwrt.py”, line 60, in init**
** data = self.get_ddwrt_data(url)**
** File “/srv/hass/lib/python3.4/site-packages/homeassistant/components/device_tracker/ddwrt.py”, line 141, in get_ddwrt_data**
** timeout=4)**
** File “/srv/hass/lib/python3.4/site-packages/requests/api.py”, line 70, in get**
** return request(‘get’, url, params=params, kwargs)
** File “/srv/hass/lib/python3.4/site-packages/requests/api.py”, line 56, in request**
** return session.request(method=method, url=url, kwargs)
** File “/srv/hass/lib/python3.4/site-packages/requests/sessions.py”, line 488, in request**
** resp = self.send(prep, send_kwargs)
** File “/srv/hass/lib/python3.4/site-packages/requests/sessions.py”, line 609, in send**
** r = adapter.send(request, kwargs)
** File “/srv/hass/lib/python3.4/site-packages/requests/adapters.py”, line 487, in send**
** raise ConnectionError(e, request=request)**
requests.exceptions.ConnectionError: HTTPConnectionPool(host=‘192.168.11.1’, port=80): Max retries exceeded with url: /Status_Wireless.live.asp (Caused by NewConnectionError(’<requests.packages.urllib3.connection.HTTPConnection object at 0x6f806ef0>: Failed to establish a new connection: [Errno 101] Network is unreachable’,))
17-01-03 07:40:11 netdisco.ssdp: Error fetching description at https://192.168.11.140:8888
17-01-03 07:41:24 hbmqtt.broker: [MQTT-3.1.0-1] (client @=127.0.0.1:39899): Can’t read first packet an CONNECT: No more data
17-01-03 08:40:04 homeassistant.components.updater: Got unexpected response: None