Netatmo integration no longer works

I don’t believe this to be a Home Assistant issue, but wanted to hear if others experience the same.

I had Netatmo Weatherstation integrated through HA integrations, but about one week ago its values were unknown on my dashboard. This happened before and removing and reintegrating used to fix this. Unfortunately not anymore. The process is getting stuck at the account linking part @ https://account-link.nabucasa.com/authorize_callback?state=… with message “Please wait, we are linking your account…”. It never succeeds or times out, just stuck there.

Not sure what to try next?

Having the same (or close enough) issue. My account linking succeeds though.
The integration broke on update to 0.109.1, perhaps coincidentally.

In terms of the logs:

2020-05-03 10:36:24 WARNING (MainThread) [homeassistant.components.sensor] Setup of sensor platform netatmo is taking over 10 seconds.
2020-05-03 10:36:24 WARNING (MainThread) [homeassistant.components.climate] Setup of climate platform netatmo is taking over 10 seconds.
2020-05-03 10:36:32 ERROR (SyncWorker_16) [pyatmo.auth] Too many retries
2020-05-03 10:36:32 ERROR (MainThread) [homeassistant.components.sensor] Error while setting up netatmo platform for sensor
Traceback (most recent call last):
  File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/helpers/entity_platform.py", line 178, in _async_setup_platform
    await asyncio.wait_for(asyncio.shield(task), SLOW_SETUP_MAX_WAIT)
  File "/usr/lib/python3.7/asyncio/tasks.py", line 442, in wait_for
    return fut.result()
  File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/components/netatmo/sensor.py", line 146, in async_setup_entry
    async_add_entities(await hass.async_add_executor_job(get_entities), True)
  File "/usr/lib/python3.7/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/components/netatmo/sensor.py", line 133, in get_entities
    dc_data = data_class(auth)
  File "/srv/homeassistant/lib/python3.7/site-packages/pyatmo/weather_station.py", line 24, in __init__
    resp = self.authData.post_request(url=self.urlReq)
  File "/srv/homeassistant/lib/python3.7/site-packages/pyatmo/auth.py", line 168, in post_request
    if "application/json" in resp.headers.get("content-type")
AttributeError: 'NoneType' object has no attribute 'headers'
2020-05-03 10:36:37 ERROR (MainThread) [homeassistant.components.netatmo] Error during webhook registration - 400 - Bad request - Allowed ports for webhooks are 443 and 80. (21) when accessing 'https://api.netatmo.com/api/addwebhook'

As far as I have read the webhook registration error is a red herring.
I’ve tried deleting and creating the integration, no joy.

Hope it helps.
R.

Got it working, it was a coincidental issue to the update. Probably had broken some time ago.

Followed this:

Entries did change name though. So some quick edits required in my groups.yaml.

Got it working again as well replacing standard integration through Nabu Casa with the configuration.yaml method (which I didn’t use before)

I thought the configuration.yaml method is deprecated? I have troubles too . It works for some time but then stops. Only thing I could get it to work again is to delete the integration and re configure it…

I haven’t heard about any (Netatmo) configuration.yaml deprecation. It’s even still the suggested way of doing it in the HA docs (https://www.home-assistant.io/integrations/netatmo/). In any case its working fine :wink:

1 Like

Oh thanks! Must have mixed it up with another integration. Will try that tomorrow. It again stopped working just now. :frowning:

Does anyone else keeps loosing the Netatmo connection? I restart HA and it works and after some time it goes away :frowning:

Hi!

Same here. :frowning:

With me also a complete failure of all Netatmo sensors. This is already the second major failure in a short time.

I notice that the data is collected in the Netatmo environment.
Home-Assistant, including NabuCasa works. There are no local network problems.

So it must be the API of Netatmo again(?)

But I could detect the following log entry:

2020-12-04 09:39:21 ERROR (MainThread) [aiohttp.server] Error handling request
Traceback (most recent call last):
  File "/usr/local/lib/python3.8/site-packages/aiohttp/web_protocol.py", line 314, in data_received
    messages, upgraded, tail = self._request_parser.feed_data(data)
  File "aiohttp/_http_parser.pyx", line 546, in aiohttp._http_parser.HttpParser.feed_data
aiohttp.http_exceptions.BadStatusLine: 400, message="Bad status line 'invalid HTTP method'"

Service is back!

Here too. Perhaps there was a service problem directly at Netatmo.

And… seems its broken again :frowning: anyone else?

Yes, here too. Netatmo is about the most unreliable service I know of.

1 Like

Yep… after the upgrade i thought that broke it but no, after restoring back to my working HA the same issue, sensors are all unavailable.

The worst part is the lack of coms from Netatmo… unfortunately at the price/quality of the product there aren’t many alternatives :frowning:

1 Like

any news on this one ?

The service had been restored and all devices should function as usual.

Nice :slight_smile:

but mine does not work :-/ - do I have to reinstall ? or what to do