Canary Sensors State Unknown

Hello,

I have been using HASS for a couple of months and I am completely amazed by its power and versatility. Every week I add a new device or some sort of automation.

I have had a Canary All-In-One device for some weeks now, but it recently stopped showing the sensors (humidity, temperature and air quality) data. I only shows “unknown” and shows no history. I have reseted HA and the device multiple times and still nothing. I can see the camera.

If I go to the Canary app, I see the sensors are uploading the data.

Any ideas on how to fix this?

Thank you.

Look in the Developer tools States panel. Are your sensors still there?

Are their entity IDs what you expect?

Thank you for your reply.

The sensors are there, entity IDs are correct and their State is Unknown.

any errors in the log? I’m not familiar with canary, but typically if something is unknown, home assistant is having trouble communicating with the device.

Yes, the only error I get is that update for sensor.XXXX fails components/canary.py (ERROR)

Fri Oct 05 2018 15:48:56 GMT-0300 (-03)

Update for sensor.casa_lechugakaid__living_room_air_quality fails
Traceback (most recent call last):
File “/usr/local/lib/python3.6/site-packages/urllib3/connection.py”, line 171, in _new_conn
(self._dns_host, self.port), self.timeout, **extra_kw)
File “/usr/local/lib/python3.6/site-packages/urllib3/util/connection.py”, line 56, in create_connection
for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
File “/usr/local/lib/python3.6/socket.py”, line 745, in getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Try again

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File “/usr/local/lib/python3.6/site-packages/urllib3/connectionpool.py”, line 600, in urlopen
chunked=chunked)
File “/usr/local/lib/python3.6/site-packages/urllib3/connectionpool.py”, line 343, in _make_request
self._validate_conn(conn)
File “/usr/local/lib/python3.6/site-packages/urllib3/connectionpool.py”, line 849, in _validate_conn
conn.connect()
File “/usr/local/lib/python3.6/site-packages/urllib3/connection.py”, line 314, in connect
conn = self._new_conn()
File “/usr/local/lib/python3.6/site-packages/urllib3/connection.py”, line 180, in _new_conn
self, “Failed to establish a new connection: %s” % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.VerifiedHTTPSConnection object at 0x6c976450>: Failed to establish a new connection: [Errno -3] Try again

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File “/usr/local/lib/python3.6/site-packages/requests/adapters.py”, line 445, in send
timeout=timeout
File “/usr/local/lib/python3.6/site-packages/urllib3/connectionpool.py”, line 638, in urlopen
_stacktrace=sys.exc_info()[2])
File “/usr/local/lib/python3.6/site-packages/urllib3/util/retry.py”, line 398, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host=‘api.canaryis.com’, port=443): Max retries exceeded with url: /v1/locations/ (Caused by NewConnectionError(’<urllib3.connection.VerifiedHTTPSConnection object at 0x6c976450>: Failed to establish a new connection: [Errno -3] Try again’,))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File “/usr/local/lib/python3.6/site-packages/homeassistant/helpers/entity.py”, line 223, in async_update_ha_state
yield from self.async_device_update()
File “/usr/local/lib/python3.6/site-packages/homeassistant/helpers/entity.py”, line 352, in async_device_update
yield from self.hass.async_add_job(self.update)
File “/usr/local/lib/python3.6/concurrent/futures/thread.py”, line 56, in run
result = self.fn(*self.args, **self.kwargs)
File “/usr/local/lib/python3.6/site-packages/homeassistant/components/sensor/canary.py”, line 114, in update
self._data.update()
File “/usr/local/lib/python3.6/site-packages/homeassistant/util/init.py”, line 324, in wrapper
result = method(*args, **kwargs)
File “/usr/local/lib/python3.6/site-packages/homeassistant/components/canary.py”, line 85, in update
for location in self._api.get_locations():
File “/usr/local/lib/python3.6/site-packages/canary/api.py”, line 86, in get_locations
json = self._call_api(“get”, URL_LOCATIONS_API).json()[“objects”]
File “/usr/local/lib/python3.6/site-packages/canary/api.py”, line 152, in _call_api
headers=self._api_headers(), **kwargs)
File “/usr/local/lib/python3.6/site-packages/requests/api.py”, line 58, in request
return session.request(method=method, url=url, **kwargs)
File “/usr/local/lib/python3.6/site-packages/requests/sessions.py”, line 512, in request
resp = self.send(prep, **send_kwargs)
File “/usr/local/lib/python3.6/site-packages/requests/sessions.py”, line 622, in send
r = adapter.send(request, **kwargs)
File “/usr/local/lib/python3.6/site-packages/requests/adapters.py”, line 513, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host=‘api.canaryis.com’, port=443): Max retries exceeded with url: /v1/locations/ (Caused by NewConnectionError(’<urllib3.connection.VerifiedHTTPSConnection object at 0x6c976450>: Failed to establish a new connection: [Errno -3] Try again’,))

did your router change the internal address to the device or home assistant? It can’t find the host.