Cannot add Legrand Netatmo Integration in Home Assistant

HI. Trying to do something rather simple. I installed a Legrand Smart Switch with Netatmo starter kit. I've successfully set up the Neatmo app on my iPad. Switch is active and works.
When try to add the integration in the Home Assistant, it doesn't work:

  • I select Add Integration and select NetAtmo, or Legrand + Home Controls and in both cases it first displays a warning:
  • Support for Legrand Home+ Control devices is provided by Netatmo. Do you want to continue?
    This step requires you to visit an external website to be completed.
  • Then It takes me to the Netatmo login page, where I enter my account credentials.
  • This is part of the URL: Netatmo
  • Then it displays this message
  • Do you authorize third party application Home Assistant Cloud to access your account data?
  • I click on YES - I ACCEPT
    And it does NOTHING.
    At first I was trying it from my local URL, then I added a Home Assistant cloud account and got an external URL, tried from there and exact same issue.

HELP!

You are not the only one, I have the same problem.
My Netatmo integration was not working anymore, normally a reload is enough but unfortunately not this time. Last resort for me is deleting the integration and add it again. This is normally working without any problem but this time not. The problem is known at Github and hope it will be resolved.

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:

  1. Create a Netatmo application on dev.netatmo.com (in my case called “Homeassistant_Rien”).
  2. Copy the Client ID and Client Secret from the Netatmo developer portal.
  3. In Home Assistant, create a new Application Credential for Netatmo and enter the Client ID and Client Secret.
  4. Restart Home Assistant.
  5. Add the Netatmo integration again.
  6. 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.

1 Like