Core: Netatmo fresh install, not entities

Created on 9 Oct 2020  路  9Comments  路  Source: home-assistant/core

The problem

I am trying to setup an integration with netatmo, but I don't get any entities.

Environment

  • Home Assistant Core release with the issue:

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

  • Last working Home Assistant Core release (if known):
  • Operating environment (OS/Container/Supervised/Core): Container
  • Integration causing this issue: Netatmo
  • Link to integration documentation on our website: https://www.home-assistant.io/integrations/netatmo/

Problem-relevant configuration.yaml

netatmo:
  client_id: !secret netatmo_client_id
  client_secret: !secret netatmo_client_secret

Traceback/Error logs

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

Additional information

I tried the integration with configuration.yaml and nabu casa, both give the same result.

netatmo

Most helpful comment

A fix is in the making.

All 9 comments

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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Ciqsky picture Ciqsky  路  129Comments

raccettura picture raccettura  路  142Comments

Gio76 picture Gio76  路  223Comments

McGiverGim picture McGiverGim  路  124Comments

soldag picture soldag  路  143Comments