Netatmo webhook not working anymore after upgrade to 2021.12.8

Since the upgrade to 2021.12.8, the netatmo webhook does not work anymore!

Logger: homeassistant.components.select
Source: components/netatmo/select.py:122
Integration: Auswählen (documentation, issues)
First occurred: 12. Januar 2022, 23:39:00 (1 occurrences)
Last logged: 12. Januar 2022, 23:39:00

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
    entities = [
  File "/usr/src/homeassistant/homeassistant/components/netatmo/select.py", line 66, in <listcomp>
    NetatmoScheduleSelect(
  File "/usr/src/homeassistant/homeassistant/components/netatmo/select.py", line 122, in __init__
    self._attr_current_option = getattr(self._home.get_selected_schedule(), "name")
AttributeError: 'NoneType' object has no attribute 'name'

Are there similar experiences? Does somebody have a hint?

Trying to setup Netatmo webhook for the first time. Not working. Version 2021.12.8. Same problem?

This should not affect webhook functionality. It is a separate issue nonetheless.

I‘m on the latest versions and the Netatmo integration works just fine (8 Netatmo weather devices, 53 entities) for me.

There is a GitHub issue on that. I just have to gather debug data as I can’t reproduce it with my environments.

1 Like

There is a second message in the log file which is obviously a consequence of the first one. For the sake of completeness I also post this dump here

Logger: homeassistant
Source: components/netatmo/__init__.py:220
First occurred: 12. Januar 2022, 23:39:00 (1 occurrences)
Last logged: 12. Januar 2022, 23:39:00
Error doing job: Task exception was never retrieved

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/netatmo/__init__.py", line 220, in register_webhook
    await hass.data[DOMAIN][entry.entry_id][AUTH].async_addwebhook(webhook_url)
  File "/usr/local/lib/python3.9/site-packages/pyatmo/auth.py", line 381, in async_addwebhook
    resp = await self.async_post_request(WEBHOOK_URL_ADD, {"url": webhook_url})
  File "/usr/local/lib/python3.9/site-packages/pyatmo/auth.py", line 339, in async_post_request
    async with self.websession.post(
  File "/usr/local/lib/python3.9/site-packages/aiohttp/client.py", line 1138, in __aenter__
    self._resp = await self._coro
  File "/usr/local/lib/python3.9/site-packages/aiohttp/client.py", line 634, in _request
    break
  File "/usr/local/lib/python3.9/site-packages/aiohttp/helpers.py", line 721, in __exit__
    raise asyncio.TimeoutError from None
asyncio.exceptions.TimeoutError


Can you please give some information about your setup? What Netatmo devices do you have registered with your account? Can you further please raise the log level for the Netatmo integration to debug and provide me those messages? Feel free to contact me via PM or Discord for privacy reasons as those debug logs might contain sensitive data.

Hello,

Having the same problem, netatmo integration broken. Healthy home coach is working getting data, but thermostat not.

Can you please provide more details and debug log entries?

I even reinstalle my Home Assistant, added some integrations ant then Netatmo. Still not working. Logs:

2022-01-22 20:41:02 WARNING (SyncWorker_1) [homeassistant.loader] We found a custom integration ble_monitor which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant

2022-01-22 20:41:02 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration hacs which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant

2022-01-22 20:41:02 WARNING (SyncWorker_2) [homeassistant.loader] We found a custom integration tesla_custom which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant

2022-01-22 20:49:15 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry Home Assistant Cloud for netatmo

Traceback (most recent call last):

File "/usr/src/homeassistant/homeassistant/config_entries.py", line 313, in async_setup

result = await component.async_setup_entry(hass, self) # type: ignore

File "/usr/src/homeassistant/homeassistant/components/netatmo/__init__.py", line 230, in async_setup_entry

await register_webhook(None)

File "/usr/src/homeassistant/homeassistant/components/netatmo/__init__.py", line 181, in register_webhook

webhook_url = hass.components.webhook.async_generate_url(

File "/usr/src/homeassistant/homeassistant/components/webhook/__init__.py", line 69, in async_generate_url

get_url(hass, prefer_external=True, allow_cloud=False),

File "/usr/src/homeassistant/homeassistant/helpers/network.py", line 116, in get_url

raise NoURLAvailableError

homeassistant.helpers.network.NoURLAvailableError

2022-01-22 20:49:15 WARNING (MainThread) [homeassistant.components.light] Platform netatmo not ready yet: None; Retrying in background in 30 seconds

2022-01-22 20:49:15 WARNING (MainThread) [homeassistant.components.select] Platform netatmo not ready yet: None; Retrying in background in 30 seconds

2022-01-22 20:49:15 ERROR (MainThread) [homeassistant.components.climate] 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 139, in async_setup_entry

await data_handler.register_data_class(

File "/usr/src/homeassistant/homeassistant/components/netatmo/data_handler.py", line 198, in register_data_class

await self.async_fetch_data(data_class_entry)

File "/usr/src/homeassistant/homeassistant/components/netatmo/data_handler.py", line 154, in async_fetch_data

await self.data[data_class_entry].async_update()

File "/usr/local/lib/python3.9/site-packages/pyatmo/climate.py", line 341, in async_update

self.process(raw_data)

File "/usr/local/lib/python3.9/site-packages/pyatmo/climate.py", line 299, in process

if self.home_id != raw_data["home"]["id"]:

KeyError: 'id'

2022-01-22 20:49:45 ERROR (MainThread) [homeassistant.components.select] 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 52, in async_setup_entry

await data_handler.register_data_class(

File "/usr/src/homeassistant/homeassistant/components/netatmo/data_handler.py", line 198, in register_data_class

await self.async_fetch_data(data_class_entry)

File "/usr/src/homeassistant/homeassistant/components/netatmo/data_handler.py", line 154, in async_fetch_data

await self.data[data_class_entry].async_update()

File "/usr/local/lib/python3.9/site-packages/pyatmo/climate.py", line 341, in async_update

self.process(raw_data)

File "/usr/local/lib/python3.9/site-packages/pyatmo/climate.py", line 299, in process

if self.home_id != raw_data["home"]["id"]:

KeyError: 'id'

2022-01-22 20:50:10 WARNING (Recorder) [homeassistant.components.sensor.recorder] sensor.gas_meter_gas_consumption has unit m³/h which is unsupported for device_class gas
1 Like