Core: Netatmo integration stopped working

Created on 8 Mar 2020  路  10Comments  路  Source: home-assistant/core

The problem


Netatmo integration stopped working suddenly a few versions ago. After reboot sometimes I have to reboot HA again to get values. Now I haven't been able to get it working again. Logs state netatmo API can not be reached at boot. Tried resetting client id and secret. Tried new app in the Netatmo dev portal.

Environment

  • Home Assistant release with the issue: 0.106.5
  • Last working Home Assistant release (if known): not known
  • Operating environment (Hass.io/Docker/Windows/etc.): HassOS 3.12 on Windows with VirtualBox
  • Integration causing this issue: Netatmo
  • Link to integration documentation on our website: https://www.home-assistant.io/integrations/netatmo/

Problem-relevant configuration.yaml


(ID/Secret are fake)
```# Netatmo
netatmo:
client_id: 5e65553af50a8e0f0
client_secret: ouXBcvC8uhQQvpzPoXasQDyEU1Hz

## Traceback/Error logs

Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 179, in _async_setup_platform
await asyncio.wait_for(asyncio.shield(task), SLOW_SETUP_MAX_WAIT)
File "/usr/local/lib/python3.7/asyncio/tasks.py", line 442, in wait_for
return fut.result()
File "/usr/src/homeassistant/homeassistant/components/netatmo/climate.py", line 134, in async_setup_entry
async_add_entities(await hass.async_add_executor_job(get_entities), True)
File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
result = self.fn(self.args, *self.kwargs)
File "/usr/src/homeassistant/homeassistant/components/netatmo/climate.py", line 117, in get_entities
home_data.setup()
File "/usr/src/homeassistant/homeassistant/components/netatmo/climate.py", line 395, in setup
self.homedata = pyatmo.HomeData(self.auth)
File "/usr/local/lib/python3.7/site-packages/pyatmo/thermostat.py", line 26, in __init__
resp = self.authData.post_request(url=_GETHOMESDATA_REQ)
File "/usr/local/lib/python3.7/site-packages/pyatmo/auth.py", line 122, in post_request
raise ApiError(f"Error when accessing '{url}'")
pyatmo.exceptions.ApiError: Error when accessing 'https://api.netatmo.com/api/homesdata'

```txt

Additional information

netatmo

Most helpful comment

@jrnhrmn, i had the same problem (Netatmo integration stoped working after upgrading to 0.105) But solved it by going to the integrations and adding Netatmo there "again".

I ended up at att some kind of "allow this page" at Netatmo. When I clicked OK everything started working again.

All 10 comments

Hey there @cgtobi, mind taking a look at this issue as its been labeled with a integration (netatmo) you are listed as a codeowner for? Thanks!

Did you run the netatmo integration dialog in the configuration menu?

I have the same issue, it was working perfectly fine before and stopped working after an upgrade.

Yes I have all the entities.

If you can't give more detailed information it is nearly impossible to help.

I will try and collect some data. Completely understand.

How did you add the integration? Which devices comprise your setup? What version was last know working? Raise log level for the netatmo integration to gather more information.

@jrnhrmn, i had the same problem (Netatmo integration stoped working after upgrading to 0.105) But solved it by going to the integrations and adding Netatmo there "again".

I ended up at att some kind of "allow this page" at Netatmo. When I clicked OK everything started working again.

0.105 had a breaking change for the Netatmo integration. So this worked as expected.

Thnx guys. It has been working perfectly lately.

Was this page helpful?
0 / 5 - 0 ratings