core icon indicating copy to clipboard operation
core copied to clipboard

Netatmo integration: API error: 500 (Internal Server Error)

Open rosch100 opened this issue 1 year ago • 74 comments

The problem

Since the upgrade to 2024.6.1, the Netatmo integration stopped working. The error is:

Logger: homeassistant.components.netatmo
Quelle: components/netatmo/__init__.py:90
Integration: Netatmo (Dokumentation, Probleme)
Erstmals aufgetreten: 10:48:25 (7 Vorkommnisse)
Zuletzt protokolliert: 10:51:14

API error: 500 (Internal Server Error)

What version of Home Assistant Core has the issue?

Version core-2024.6.1 Installationstyp Home Assistant OS Entwicklung false Supervisor true Docker true Benutzer Virtuelle Umgebung false Python-Version 3.12.2 Betriebssystemfamilie Linux Betriebssystem-Version 6.6.28-haos-raspi CPU-Architektur aarch64 Zeitzone Europe/Berlin Konfigurationsverzeichnis /config

What was the last working version of Home Assistant Core?

2024.6.0

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Netatmo

Link to integration documentation on our website

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

Diagnostics information

home-assistant_netatmo_2024-06-09T08-54-46.855Z.log

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

I could (temporarily) resolve the issue by deleting and re-adding the integration. However, today the integration fails again with the same error. Deleting and Re-adding the integration is not a solution!

rosch100 avatar Jun 09 '24 08:06 rosch100

Hey there @cgtobi, mind taking a look at this issue as it has been labeled with an integration (netatmo) you are listed as a code owner for? Thanks!

Code owner commands

Code owners of netatmo can trigger bot actions by commenting:

  • @home-assistant close Closes the issue.
  • @home-assistant rename Awesome new title Renames the issue.
  • @home-assistant reopen Reopen the issue.
  • @home-assistant unassign netatmo Removes the current integration label and assignees on the issue, add the integration domain after the command.
  • @home-assistant add-label needs-more-information Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue.
  • @home-assistant remove-label needs-more-information Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


netatmo documentation netatmo source (message by IssueLinks)

home-assistant[bot] avatar Jun 09 '24 08:06 home-assistant[bot]

Same problen for me. It seems to be connectef with the last Home Assistant Core update to 2024.6.1

cyhyryiys avatar Jun 09 '24 16:06 cyhyryiys

Same here, upgraded from 2024.3.3 to 2024.6.1 and the integration did not want to work afterwards. I'm using the docker version of HA.

I also tried downgrading to 2024.6.0 but that did not help unfortunately.

Ph0B1uS avatar Jun 09 '24 20:06 Ph0B1uS

I found a Solution (?)

—>

Authentication problem solved as follows:

I called my own account at https://home.netatmo.com/ 3 Here is the menu My Account/Account Management/Third Party Apps There is a list of applications connected to the account Click into the “Home Assistant Cloud” app, select “Remove App” In Home assistant I brutally deleted the Netatmo integration I restarted HA I called wizzard “Add Integration” again, selected Netatmo On the Netatmo web page called by HA, I enabled the third party application

cyhyryiys avatar Jun 09 '24 21:06 cyhyryiys

I found a Solution (?)

—>

Authentication problem solved as follows:

I called my own account at https://home.netatmo.com/ 3 Here is the menu My Account/Account Management/Third Party Apps There is a list of applications connected to the account Click into the “Home Assistant Cloud” app, select “Remove App” In Home assistant I brutally deleted the Netatmo integration I restarted HA I called wizzard “Add Integration” again, selected Netatmo On the Netatmo web page called by HA, I enabled the third party application

This worked for me too but since it involved losing all historical data it's a less than ideal solution

Ph0B1uS avatar Jun 09 '24 21:06 Ph0B1uS

I'm unsure if this is related to newest HA version to be honest. It started suddenly for me, and I haven't updated to 2024.6.x yet, and run 2024.5.5.

If I delete the integration and re-add it, it will work again for anything between 2 to 12 hours.

Daniel-Joergensen avatar Jun 10 '24 06:06 Daniel-Joergensen

API error: 500 (Internal Server Error) 12:31:58 – (WARNING) Netatmo - message first occurred at June 9, 2024 at 09:31:50 and shows up 1203 times

Same issue on my side. Yes, did update to the latest version recently, but also hear that others have no issue having updated. Seems to support @Daniel-Joergensen’s comment.

RemBrandNL avatar Jun 10 '24 10:06 RemBrandNL

Problem here also. I get this: Failed setup, will retry: 500, message='Internal Server Error', url=URL('https://account-link.nabucasa.com/refresh_token/netatmo')

nikee73 avatar Jun 10 '24 19:06 nikee73

Same problem here. For me it coincided with switching from sd to ssd, but I don't think it's linked.

kevlare avatar Jun 10 '24 20:06 kevlare

Same here. I have had the issue since last night

ghostwind66 avatar Jun 11 '24 05:06 ghostwind66

same problem

matteos1 avatar Jun 12 '24 20:06 matteos1

I wonder if this is related:

https://helpcenter.netatmo.com/hc/en-us/community/posts/19320250276626/comments/19329138660370

Hmm. If so, somebody here who knows how to deal with this? @cgtobi is that an issue which you need to solve?

Friedi1970 avatar Jun 13 '24 05:06 Friedi1970

Same problem here. Still in HA version 2024.5.3

eidoHA avatar Jun 15 '24 14:06 eidoHA

I sorted out my issue by deleting my hub and re-adding it again. I noticed that some of the entities also hand slight name changes.

ghostwind66 avatar Jun 15 '24 18:06 ghostwind66

I sorted out my issue by deleting my hub and re-adding it again. I noticed that some of the entities also hand slight name changes.

That has only helped for me, for a few hours, then it will stop working again

Daniel-Joergensen avatar Jun 15 '24 19:06 Daniel-Joergensen

https://helpcenter.netatmo.com/hc/en-us/community/posts/19320250276626/comments/19329138660370

It won't last very long. It is due to the API changes of Netatmo (see https://helpcenter.netatmo.com/hc/en-us/community/posts/19320250276626/comments/19329138660370). The integration need to be fixed.

Friedi1970 avatar Jun 15 '24 20:06 Friedi1970

Bonjour, même problème pour moi également lors d'une maj de HA.

jeremy1515145 avatar Jun 18 '24 10:06 jeremy1515145

I have the same Error

NikolasRupp avatar Jun 18 '24 12:06 NikolasRupp

I have the same Problem since installation of

Core 2024.6.3 Supervisor 2024.06.0 Operating System 12.4 Frontend 20240610.1

Logger: homeassistant.components.netatmo Quelle: components/netatmo/init.py:90 Integration: Netatmo (Dokumentation, Probleme) Erstmals aufgetreten: 10:53:16 (7 Vorkommnisse) Zuletzt protokolliert: 10:57:19

API error: 500 (Internal Server Error)

claudegraf avatar Jun 19 '24 09:06 claudegraf

Same issue here.

ndrkxd avatar Jun 20 '24 09:06 ndrkxd

Update 6.1 caused other, even bigger, problems on my Green in addition to Netatmo. I went back to 6.0, deleted Netatmo and then set it up again. Now everything has been running stable for over 72 hours, now also with 6.3.

Fotokroth avatar Jun 20 '24 11:06 Fotokroth

Same error here

Lloydr149 avatar Jun 21 '24 14:06 Lloydr149

I have removed my integration and-readded it again. All works now, gotta wait for how long. Annoyingly the values are now in Dutch (which I am), but all the old ones I had renamed. Have renamed them now back to what Netatmo returns and lets see how it goes. Does mean all history is gone.

RemBrandNL avatar Jun 21 '24 14:06 RemBrandNL

I have removed my integration and-readded it again. ... Does mean all history is gone.

Same in my installation. Sadly, history values are gone now. But hey, it's just weather...

sven-debug avatar Jun 22 '24 14:06 sven-debug

Same issue here.

mariomaz87 avatar Jun 23 '24 20:06 mariomaz87

Same issue here

floow77 avatar Jun 24 '24 10:06 floow77

Same issue, worked one day, woke up to it not working at all.

I'd really like to avoid losing my historical data.

U2EZNeko avatar Jun 29 '24 13:06 U2EZNeko

Hi, same hier since yesterday.

stguz avatar Jul 01 '24 10:07 stguz

I found a Solution (?)

I could (temporarily) resolve the issue by deleting and re-adding the integration. However, today the integration fails again with the same error. Deleting and Re-adding the integration is NOT a permanent solution!

rosch100 avatar Jul 01 '24 18:07 rosch100