Has anyone been able to integrate the Awair air quality sensor to their HA?
I believe there is now an API available but not skilled enough to do anything with it!!
Awair does work with IFTTT but also unsure if its possible to send the sensor readings to HA.
Any help or suggestions much appreciated.
I have obtained an API key from Awair - and have their API documentation - but problem is I am struggling to know what to do with it. Iâm sure there is a way but it will take someone with a bit more know-how that me to make it work. Hoping to see it in future releases also as it would be great to have the Awair sensor data displayed on my HA instance, and to be able to build some automations based on the sensor data.
2019-01-13 20:46:09 ERROR (MainThread) [homeassistant.components.sensor] Error while setting up platform awair
Traceback (most recent call last):
File "/home/homeassistant/homeassistant/lib64/python3.6/site-packages/homeassistant/helpers/entity_platform.py", line 128, in _async_setup_platform
SLOW_SETUP_MAX_WAIT, loop=hass.loop)
File "/opt/rh/rh-python36/root/usr/lib64/python3.6/asyncio/tasks.py", line 358, in wait_for
return fut.result()
File "/home/homeassistant/homeassistant/lib64/python3.6/site-packages/homeassistant/components/sensor/awair.py", line 104, in async_setup_platform
devices = config.get(CONF_DEVICES, await client.devices())
File "/home/homeassistant/homeassistant/lib64/python3.6/site-packages/python_awair/__init__.py", line 29, in devices
return (yield from self._query(const.DEVICE_QUERY))['Devices']['devices']
TypeError: 'GenericError' object is not subscriptable
This is what I see in the console when I try to setup an awair device in my configuration.
Hi takje,
Your component has been working flawlessly, but Iâve recently upgraded to hass.io 0.94 and now see this error in the logs - could you advise please - many thanks!
2019-06-07 06:11:08 ERROR (MainThread) [homeassistant.components.sensor] Error while setting up platform myawair
Traceback (most recent call last):
File â/usr/src/homeassistant/homeassistant/helpers/entity_platform.pyâ, line 126, in _async_setup_platform
SLOW_SETUP_MAX_WAIT)
File â/usr/local/lib/python3.7/asyncio/tasks.pyâ, line 416, in wait_for
return fut.result()
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/myawair/sensor.pyâ, line 56, in setup_platform
from pyawair.auth import AwairAuth
ModuleNotFoundError: No module named âpyawairâ