I am trying to setup an integration with netatmo, but I don't get any entities.
arch | x86_64
-- | --
dev | false
docker | true
hassio | false
installation_type | Home Assistant Container
os_name | Linux
os_version | 5.4.0-48-generic
python_version | 3.8.5
timezone | Europe/Brussels
version | 0.116.2
virtualenv | false
configuration.yamlnetatmo:
client_id: !secret netatmo_client_id
client_secret: !secret netatmo_client_secret
Logger: homeassistant.components.sensor
Source: components/netatmo/sensor.py:248
Integration: Sensor (documentation, issues)
First occurred: 10:25:44 PM (3 occurrences)
Last logged: 10:28:41 PM
Error while setting up netatmo platform for sensor
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 193, in _async_setup_platform
await asyncio.shield(task)
File "/usr/src/homeassistant/homeassistant/components/netatmo/sensor.py", line 160, in async_setup_entry
async_add_entities(await find_entities(data_class_name), True)
File "/usr/src/homeassistant/homeassistant/components/netatmo/sensor.py", line 151, in find_entities
NetatmoSensor(data_handler, data_class_name, module, condition)
File "/usr/src/homeassistant/homeassistant/components/netatmo/sensor.py", line 248, in __init__
self._device_name = module_info["station_name"]
KeyError: 'station_name'
2020-10-09 22:28:41 INFO (MainThread) [homeassistant.components.netatmo.config_flow] Successfully authenticated
2020-10-09 22:28:41 INFO (MainThread) [homeassistant.components.camera] Setting up camera.netatmo
2020-10-09 22:28:41 INFO (MainThread) [homeassistant.components.climate] Setting up climate.netatmo
2020-10-09 22:28:41 INFO (MainThread) [homeassistant.components.sensor] Setting up sensor.netatmo
2020-10-09 22:28:41 DEBUG (MainThread) [homeassistant.components.netatmo.data_handler] Data class HomeData added
2020-10-09 22:28:41 DEBUG (MainThread) [homeassistant.components.netatmo.data_handler] Data class CameraData added
2020-10-09 22:28:41 DEBUG (MainThread) [homeassistant.components.netatmo.data_handler] Data class WeatherStationData added
2020-10-09 22:28:41 DEBUG (MainThread) [homeassistant.components.netatmo.sensor] Adding module Living xx:xx:xx:xx:xx:xx
2020-10-09 22:28:41 ERROR (MainThread) [homeassistant.components.sensor] Error while setting up netatmo platform for sensor
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 193, in _async_setup_platform
await asyncio.shield(task)
File "/usr/src/homeassistant/homeassistant/components/netatmo/sensor.py", line 160, in async_setup_entry
async_add_entities(await find_entities(data_class_name), True)
File "/usr/src/homeassistant/homeassistant/components/netatmo/sensor.py", line 151, in find_entities
NetatmoSensor(data_handler, data_class_name, module, condition)
File "/usr/src/homeassistant/homeassistant/components/netatmo/sensor.py", line 248, in __init__
self._device_name = module_info["station_name"]
KeyError: 'station_name'
2020-10-09 22:28:41 INFO (MainThread) [homeassistant.components.netatmo] Register Netatmo webhook: https://hooks.nabu.casa/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
2020-10-09 22:28:41 INFO (MainThread) [homeassistant.components.light] Setting up light.netatmo
2020-10-09 22:28:41 DEBUG (MainThread) [homeassistant.components.netatmo.webhook] Got webhook data: {'user_id': 'xxxxxxxxxxxxxxxxx', 'user': {'id': 'xxxxxxxxxxxxxxxxx', 'email': '[email protected]'}, 'push_type': 'webhook_activation'}
2020-10-09 22:28:41 DEBUG (MainThread) [homeassistant.components.netatmo.webhook] None: {'user_id': 'xxxxxxxxxxxxxxxxx', 'user': {'id': 'xxxxxxxxxxxxxxxxx', 'email': '[email protected]'}, 'push_type': 'webhook_activation'}
2020-10-09 22:28:41 INFO (MainThread) [homeassistant.components.netatmo.data_handler] Netatmo webhook successfully registered
I tried the integration with configuration.yaml and nabu casa, both give the same result.
A fix is in the making.
@cgtobi whats the Status here, can we support you with some tests?
Just waiting for upstream release.
Just waiting for upstream release.
in which release it will be included?
I hope soon. Unfortunately not much I can do about except mailing the maintainer again.
I assume you are waiting for an pyatmo update?
Exactly. I can provide an unofficial wheel for those who want to fumble with their system.
@cgtobi , could you please share with us the wheel ?
It's up on pypi.
Most helpful comment
A fix is in the making.