home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
72.55k stars 30.35k forks source link

Netatmo Climate values not working #62836

Closed quitsch15 closed 2 years ago

quitsch15 commented 2 years ago

The problem

The Climate integration to manage the Values of the Netatmo Energy integration are unavailable. after reinstalling the Netamo Integration they do not show up anymore.

What version of Home Assistant Core has the issue?

core-2021.12.5

What was the last working version of Home Assistant Core?

unkowen

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Netatmo

Link to integration documentation on our website

https://www.home-assistant.io/integrations/netatmo/

Example YAML snippet

netatmo:
  client_id: xxxxxxx
  client_secret: xxxxxxxx

Anything in the logs that might be useful for us?

Logger: homeassistant.components.climate
Source: components/netatmo/climate.py:147
Integration: Climate (documentation, issues)
First occurred: 09:44:01 (1 occurrences)
Last logged: 09:44:01

Error while setting up netatmo platform for climate
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 249, in _async_setup_platform
    await asyncio.shield(task)
  File "/usr/src/homeassistant/homeassistant/components/netatmo/climate.py", line 147, in async_setup_entry
    climate_topology.register_handler(home_id, climate_state.process_topology)
  File "/usr/local/lib/python3.9/site-packages/pyatmo/climate.py", line 463, in register_handler
    self.publish()
  File "/usr/local/lib/python3.9/site-packages/pyatmo/climate.py", line 473, in publish
    self.subscriptions[home_id](home)
  File "/usr/local/lib/python3.9/site-packages/pyatmo/climate.py", line 314, in process_topology
    self.homes[self.home_id] = NetatmoHome(raw_data=raw_data)
  File "/usr/local/lib/python3.9/site-packages/pyatmo/climate.py", line 81, in __init__
    self.schedules = {
  File "/usr/local/lib/python3.9/site-packages/pyatmo/climate.py", line 82, in <dictcomp>
    s["id"]: NetatmoSchedule(home_id=self.entity_id, raw_data=s)
  File "/usr/local/lib/python3.9/site-packages/pyatmo/climate.py", line 226, in __init__
    self.name = raw_data["name"]
KeyError: 'name'

Logger: homeassistant.components.select
Source: components/netatmo/select.py:65
Integration: Select (documentation, issues)
First occurred: 09:44:31 (1 occurrences)
Last logged: 09:44:31

Error while setting up netatmo platform for select
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 249, in _async_setup_platform
    await asyncio.shield(task)
  File "/usr/src/homeassistant/homeassistant/components/netatmo/select.py", line 65, in async_setup_entry
    hass.data[DOMAIN][DATA_SCHEDULES][home_id] = climate_state.homes[
KeyError: 'xxxxxxxxx'

Additional information

System Health

version core-2021.12.5
installation_type Home Assistant OS
dev false
hassio true
docker true
user root
virtualenv false
python_version 3.9.7
os_name Linux
os_version 5.10.63-v8
arch aarch64
timezone Europe/Vienna
Home Assistant Cloud logged_in | false -- | -- can_reach_cert_server | ok can_reach_cloud_auth | ok can_reach_cloud | failed to load: timeout
Home Assistant Supervisor host_os | Home Assistant OS 7.0 -- | -- update_channel | stable supervisor_version | supervisor-2021.12.2 docker_version | 20.10.9 disk_total | xxx disk_used | xxx healthy | true supported | true board | rpi4-64 supervisor_api | ok version_api | ok installed_addons | File editor (5.3.3), Duck DNS (1.14.0), Portainer (2.0.0), deCONZ (6.11.1), Terminal & SSH (9.2.2), Matrix (0.10.0), Remote Backup (2021.12.0), Grocy (0.16.0), UniFi Network Application (1.1.3), ESPHome (2021.12.1), AppDaemon 4 (0.7.1)
Lovelace dashboards | 1 -- | -- resources | 0 views | 5 mode | storage
probot-home-assistant[bot] commented 2 years ago

netatmo documentation netatmo source (message by IssueLinks)

probot-home-assistant[bot] commented 2 years ago

Hey there @cgtobi, mind taking a look at this issue as it has been labeled with an integration (netatmo) you are listed as a code owner for? Thanks! (message by CodeOwnersMention)

cgtobi commented 2 years ago

Thanks for reporting. I'll take a look shortly.

cgtobi commented 2 years ago

I have a fix for this. To validate it I'd need you to gather data from dev.netatmo.com. Please don't post the data here and send it to me either via PM on Discord or our forums.