I have an automation that attempts to reload the Netatmo integration if it becomes unavailable. It routinely gets stuck with a “failed to reload” message. Only restarting HASS fixes this.
Of course the larger problem is that the Netatmo integration becomes unavailable with great regularity.
Haven’t tried this, and I don’t experience the majority of the symptoms the poster complains about (because I’m not trying to add anything new) but if some other response doesn’t offer a solution, I’ll try this even though it would show that the integration as it currently exists and is documented is just straight up broken.
Twice is different from great regularity. Maybe the integration needs some love to make it respond to network unavailability in a more graceful fashion?
More critically, without further detailed information to debug the problem, this thread so far is anecdotal hearsay.
I experienced exactly the same issue that several other Home Assistant users have reported recently.
My Netatmo integration was working for a long time, although one of my cameras had stopped working correctly. As a troubleshooting step, I removed the Netatmo integration and tried to add it again.
The authorization process consistently failed:
Home Assistant redirected me to the Netatmo authorization page.
I logged in successfully.
Netatmo displayed the list of permissions and devices.
I clicked “I Accept”.
Nothing happened afterwards. The page simply stayed on the authorization screen and never redirected back to Home Assistant.
I tested multiple browsers, multiple devices, a different Netatmo account, and even enabled a Home Assistant Cloud (Nabu Casa) trial subscription. The result was always the same.
What finally solved the issue for me was creating an Application Credential in Home Assistant and using my own Netatmo developer application from dev.netatmo.com.
Steps that worked:
Create a Netatmo application on dev.netatmo.com (in my case called “Homeassistant_Rien”).
Copy the Client ID and Client Secret from the Netatmo developer portal.
In Home Assistant, create a new Application Credential for Netatmo and enter the Client ID and Client Secret.
Restart Home Assistant.
Add the Netatmo integration again.
When Home Assistant asks which credential to use, select the newly created application credential instead of the default Home Assistant Cloud authorization flow.
After doing this, the authorization completed successfully and all my Netatmo devices, including cameras and weather station, were added again.
This suggests that the problem may be related to the default Home Assistant OAuth client or authorization flow, while using a custom Netatmo developer application still works correctly.
I have posted one example of what’s going on in the logs, as far as I can tell.
This is happening to me much more often than “twice”. I’m restarting HASS about every other day to fix this problem.
As for my automation to attempt to reload the integration, I call that an attempt to fix something broken that I need to be able to rely on. So yes, something IS wrong here, and it’s the integration being unreliable.
Also the NEED for that automation should tell you that this integration is not reliable.