Make sure you are running the latest version of Home Assistant before reporting an issue.
You should only file an issue if you found a bug. Feature and enhancement requests should go in the Feature Requests section of our community forum:
Home Assistant release (hass --version): 0.54
Python release (python3 --version): 3.4
Component/platform: World Air Quality Sensor
Description of problem:
Sensor don't show up.
Expected:
Problem-relevant configuration.yaml entries and steps to reproduce:
platform: waqi
token: !secret AIR_QUALITY_TOKEN
locations:
- albi
stations:
- Albi Sq. Delmas
Traceback (if applicable):
2017-09-25 14:51:48 ERROR (MainThread) [homeassistant.components.sensor.waqi] Failed to connct to WAQI servers.
Traceback (most recent call last):
File "/usr/local/lib/python3.4/dist-packages/aiohttp/connector.py", line 710, in _create_direct_connection
local_addr=self._local_addr)
File "/usr/lib/python3.4/asyncio/base_events.py", line 588, in create_connection
sock, protocol_factory, ssl, server_hostname)
File "/usr/lib/python3.4/asyncio/base_events.py", line 610, in _create_connection_transport
yield from waiter
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/asyncio/selector_events.py", line 727, in _on_handshake
self._sock.do_handshake()
File "/usr/lib/python3.4/ssl.py", line 804, in do_handshake
self._sslobj.do_handshake()
ssl.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:600)
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/local/lib/python3.4/dist-packages/aiohttp/connector.py", line 378, in connect
proto = yield from self._create_connection(req)
File "/usr/local/lib/python3.4/dist-packages/aiohttp/connector.py", line 687, in _create_connection
_, proto = yield from self._create_direct_connection(req)
File "/usr/local/lib/python3.4/dist-packages/aiohttp/connector.py", line 737, in _create_direct_connection
(req.host, req.port, exc.strerror)) from exc
aiohttp.client_exceptions.ClientConnectorError: [Errno 1] Can not connect to api.waqi.info:443 [[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:600)]
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/local/lib/python3.4/dist-packages/homeassistant/components/sensor/waqi.py", line 76, in async_setup_platform
stations = yield from client.search(location_name)
File "/home/julien/.homeassistant/deps/lib/python3.4/site-packages/waqiasync/__init__.py", line 32, in search
return (yield from self._get(SEARCH_URL, keyword=keyword))
File "/home/julien/.homeassistant/deps/lib/python3.4/site-packages/waqiasync/__init__.py", line 48, in _get
path, params=dict(self._params, **kwargs))
File "/usr/local/lib/python3.4/dist-packages/aiohttp/helpers.py", line 97, in __iter__
ret = yield from self._coro
File "/usr/local/lib/python3.4/dist-packages/aiohttp/client.py", line 231, in _request
conn = yield from self._connector.connect(req)
File "/usr/local/lib/python3.4/dist-packages/aiohttp/connector.py", line 383, in connect
.format(key, exc.strerror)) from exc
aiohttp.client_exceptions.ClientConnectorError: [Errno 1] Cannot connect to host api.waqi.info:443 ssl:True [Can not connect to api.waqi.info:443 [[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:600)]]
Additional info:
Their API domain's cert expired - you can see that in a browser: https://api.waqi.info/
So we just have to wait until they fix it.
I sent them a message yesterday about that. No response yet.
I would close this issue as it鈥檚 not related to HA only their cert.
Is this working now?
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates.
Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment :+1:
Works fine for me now. Anyone else can confirm?
this component works fine for me as well.
Most helpful comment
I would close this issue as it鈥檚 not related to HA only their cert.