Netatmo is suddenly dead

Hello everybody,
my life was perfect, I could check temperature every day and suddenly netatmo is dead.

I made an update, reinstalled the integration - nothing helps. Just for info, I use HACS, but I don’t think, that this can affect netatmo integration.

Here is the log:

2021-07-16 22:22:03 WARNING (MainThread) [homeassistant.components.camera] Platform netatmo not ready yet: None; Retrying in background in 30 seconds

2021-07-16 22:22:03 WARNING (MainThread) [homeassistant.components.climate] Platform netatmo not ready yet: None; Retrying in background in 30 seconds

2021-07-16 22:22:03 WARNING (MainThread) [homeassistant.components.light] Platform netatmo not ready yet: None; Retrying in background in 30 seconds

2021-07-16 22:22:04 ERROR (MainThread) [homeassistant.components.sensor] Error while setting up netatmo platform for sensor

Traceback (most recent call last):

File "/home/ivan/homeassistant/lib/python3.8/site-packages/homeassistant/helpers/entity_platform.py", line 250, in _async_setup_platform

await asyncio.shield(task)

File "/home/ivan/homeassistant/lib/python3.8/site-packages/homeassistant/components/netatmo/sensor.py", line 250, in async_setup_entry

await add_public_entities(False)

File "/home/ivan/homeassistant/lib/python3.8/site-packages/homeassistant/components/netatmo/sensor.py", line 220, in add_public_entities

await data_handler.register_data_class(

File "/home/ivan/homeassistant/lib/python3.8/site-packages/homeassistant/components/netatmo/data_handler.py", line 181, in register_data_class

await self.async_fetch_data(data_class_entry)

File "/home/ivan/homeassistant/lib/python3.8/site-packages/homeassistant/components/netatmo/data_handler.py", line 139, in async_fetch_data

await self.data[data_class_entry].async_update()

File "/home/ivan/homeassistant/lib/python3.8/site-packages/pyatmo/public_data.py", line 248, in async_update

self.process(resp_data)

File "/home/ivan/homeassistant/lib/python3.8/site-packages/pyatmo/public_data.py", line 49, in process

self.time_exec = to_time_string(resp["time_exec"])

KeyError: 'time_exec'

For your help I will be very gratefull!

This is a bug caused by changes in the API. It has already been fixed upstream and should be merged soon.

1 Like

A lot of thanks!

1 Like

Hello cgtobi
same issue fo me, do you know when the fix will be released ? following update ?

I don’t know whether there will be a .5 release. If so, this should be included.

Hello @cgtobi just updated my HASSIO to 2021.06.08 but the access to Netatmo is not working, any idea about what is wrong? I created my dev account and added key in configuration.yaml, Davide

You have to expose your instance and configure the external URL accordingly.

Okay, thanks, I supposed not needed for thermovalves…

It’s not required but it improves responsiveness dramatically.

If not mandatory why I get time out from the netatmo platform? I don’t see any entity in Hassio

Good question. Please upgrade to the latest stable release and try again.

Completed ! but same result. I’m trying to integrate use homekit, seems working

Netatmo thermostat (not homekit integration and webhook working), unavaiulable state since latest 4 release :confused:

also for me netatmo thermostat 1st generation sometimes not work in home assistant.
how is it possible resolve this problem?

This is a known bug. It happens as far as I can tell when the Netatmo relay becomes unavailable. Subsequently the thermostats and valves attached to it will be rendered unavailable and wont be able to recover unless you reload the integration or restart HA. I am working on a fix but right know I don’t have quick solution that wont be a regression in other parts. Please be patient. I’ll notify when this is fixed.

3 Likes

it is possible to relaod integration without restart home assistant? this proble, for me, was born with the installation of the 2021.11 version.
now when i replenish netatmo, only the smart valves appear and not the weather station

Dettagli registro (ERRORE)
Logger: homeassistant.config_entries
Source: components/netatmo/init.py:220
First occurred: 10:40:18 (1 occurrences)
Last logged: 10:40:18

Error setting up entry Home Assistant Cloud for netatmo
Traceback (most recent call last):
File “/usr/src/homeassistant/homeassistant/config_entries.py”, line 304, 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 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 1117, in aenter
self._resp = await self._coro
File “/usr/local/lib/python3.9/site-packages/aiohttp/client.py”, line 619, in _request
break
File “/usr/local/lib/python3.9/site-packages/aiohttp/helpers.py”, line 656, in exit
raise asyncio.TimeoutError from None
asyncio.exceptions.TimeoutError

I can confirm i am having the same issue as of today

A fix for this is available in the latest beta and will be shipped with the next release (2021.12).

3 Likes

This is fantastic news, thank you! It had gotten pretty annoying, as I have an open/closed window automation and sometimes the heat would not start back up after closing the window because of this issue.

Since yesterday, my netatmo integration does not work.

Just says “Configuration failed”

I can see indoor/outdoor temperature, windspeed and direction and rain gauge in the netatmp app on the phone, so the unit seems to be working.

Am i the only one ?

Here is the log entry (I updated to latest version 2021.12.3 yesterday)

Logger: homeassistant.config_entries
Source: helpers/config_entry_oauth2_flow.py:373
First occurred: 17. december 2021 19.40.41 (1 occurrences)
Last logged: 17. december 2021 19.40.41
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 109, in async_setup_entry
    await config_entry_oauth2_flow.async_get_config_entry_implementation(
  File "/usr/src/homeassistant/homeassistant/helpers/config_entry_oauth2_flow.py", line 373, in async_get_config_entry_implementation
    raise ValueError("Implementation not available")
ValueError: Implementation not available
2 Likes