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 Stop working with 2021.5 #50203

Closed Scialla closed 3 years ago

Scialla commented 3 years ago

The problem

Netatmo Integration stop working with latest HA version. I've lost all my device/entity Tried to remove and re-add integration, witch correct login to Netatmo, no device/entity added Tried to change clientID and clientSecret, no change

What is version of Home Assistant Core has the issue?

core-2021.5.0

What was the last working version of Home Assistant Core?

core-2021.4.6

What type of installation are you running?

Home Assistant Core

Integration causing the issue

Netatmo

Link to integration documentation on our website

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

Example YAML snippet

No response

Anything in the logs that might be useful for us?

if i try to reload integration from his hacs menu, in log appear this:

May  6 23:05:20 raspberrypi hass[27798]: 2021-05-06 23:05:19 ERROR (MainThread) [homeassistant.config_entries] Error unloading entry Configuration.yaml for netatmo
May  6 23:05:20 raspberrypi hass[27798]: Traceback (most recent call last):
May  6 23:05:20 raspberrypi hass[27798]:   File "/srv/homeassistant/lib/python3.8/site-packages/homeassistant/config_entries.py", line 405, in async_unload
May  6 23:05:20 raspberrypi hass[27798]:     result = await component.async_unload_entry(hass, self)  # type: ignore
May  6 23:05:20 raspberrypi hass[27798]:   File "/srv/homeassistant/lib/python3.8/site-packages/homeassistant/components/netatmo/__init__.py", line 205, in async_unload_entry
May  6 23:05:20 raspberrypi hass[27798]:     await hass.async_add_executor_job(
May  6 23:05:20 raspberrypi hass[27798]:   File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run
May  6 23:05:20 raspberrypi hass[27798]:     result = self.fn(*self.args, **self.kwargs)
May  6 23:05:20 raspberrypi hass[27798]:   File "/srv/homeassistant/lib/python3.8/site-packages/pyatmo/auth.py", line 228, in dropwebhook
May  6 23:05:20 raspberrypi hass[27798]:     resp = self.post_request(WEBHOOK_URL_DROP, post_params)
May  6 23:05:20 raspberrypi hass[27798]:   File "/srv/homeassistant/lib/python3.8/site-packages/pyatmo/auth.py", line 171, in post_request
May  6 23:05:20 raspberrypi hass[27798]:     raise ApiError(
May  6 23:05:20 raspberrypi hass[27798]: pyatmo.exceptions.ApiError: 406 - Not Acceptable - Nothing to drop (7) when accessing 'https://api.netatmo.com/api/dropwebhook'


### Additional information

_No response_
probot-home-assistant[bot] commented 3 years ago

netatmo documentation netatmo source (message by IssueLinks)

bortog commented 3 years ago

same for me

ScratMan commented 3 years ago

Same issue here today after updating HA to 2021.5.0. The Energy app from Netatmo works fine, I can access my thermostats and radiator valves, but nothing seen by HA. The integration said there was 5 devices (2 thermostats, 3 valves), but none available. I tried to remove and reinstall the integration, but now it doesn’t see the entities anymore.

I also tried by removing the Netatmo integration, revoking the HA access in my Netatmo account, and restart HA server, then add integration again and grant access again. But it doesn’t help.

ScratMan commented 3 years ago

Tried to restore my 2021.4.6 docker image, but Netatmo integration didn't recover. :-(

Also restored my configuration folder, the 5 entities came back in integration's list, but still unavailable.

cgtobi commented 3 years ago

Netatmo updated their dev portal. Not sure if they broke something. I'll investigate tomorrow. Climate components are currently broken for whatever reason while cameras and weather work fine.

ludeeus commented 3 years ago

For what it's worth weather is not working for me (Smart Home Weather station)

Nevermind, it was not plugged in :smile:

matteos1 commented 3 years ago

also for me netatmo not work

kpcz commented 3 years ago

Netatmo Energy, valves and thermostat stopped working also with older version core-2021.4.2

Bluhme1 commented 3 years ago

As @cgtobi writes it’s a problem connected to an update of the Netatmo API. Nothing to do with the version of HA.

tudorbordei commented 3 years ago

It doesn't work for me either. In my case, though, the logs don't show anything (apart from automations and entities failing because they rely on values from the netatmo integration), it just doesn't find any devices. Tried deleting and re-adding the integration, set up with either username/password or clientid/clientsecret.

Scialla commented 3 years ago

the logs don't show anything

Errors in log appear when you click on 'reload' in the integration page

darkkatarsis commented 3 years ago

Unfortunately, I have noticed the same problem after updating to version 2021.5.0

tudorbordei commented 3 years ago

Errors in log appear when you click on 'reload' in the integration page

Not for me. Here's what i have. Maybe it's because i left it configured as Home Assistant Cloud (username/password) instead of creating an entry in configuration.yaml with the client id and secret. Screenshot 2021-05-07 at 12 05 29 Screenshot 2021-05-07 at 12 12 47

maxalbani commented 3 years ago

It doesn't work with core 2021.4.6

cgtobi commented 3 years ago

Please stop posting "me too" comments, this does not help solving the issue. It looks like the Netatmo service has issues which cause problems with Netatmo climate devices in HA. I am looking into it and let you know ASAP. Thanks.

cgtobi commented 3 years ago

Ok, so, the issue is fixed locally. Gotta admit the Netatmo service was working fine, but, they changed the response related to energy/climate devices and broke the integration. The fix should land soon.

Scialla commented 3 years ago

Thanks for your work BUT, now, integration have lost battery attribute!!! This is what i have:

hvac_modes:
  - auto
  - heat
min_temp: 7
max_temp: 35
target_temp_step: 0.5
preset_modes:
  - away
  - boost
  - Frost Guard
  - Schedule
current_temperature: 23
temperature: 13
hvac_action: idle
preset_mode: away
heating_power_request: 0
friendly_name: Netatmo Cucina
supported_features: 17

no battery attribute anymore!!! Can you do anything @cgtobi ? Thanks

Scialla commented 3 years ago

And one little request more, if i put state of a single valve in 'off', work fine but, if i put this single valve in 'auto' all valve go in auto, not only this valve, is possible to correct this one? (it was like that before) Thanks again

alexfd commented 3 years ago

In order to used the fixed integration do I need to update HomeAssistant? I'd like to avoid that if possible.

cgtobi commented 3 years ago

@alexfd no, there are no bug fix releases for older versions.

cgtobi commented 3 years ago

@Scialla could you please open separate issues to track those?