Netatmo integration not working

Hello.

I am trying to setup my new smart thermostats from Netatmo.

However, there seems to be an issue. I receive the following errors in my logs:

The Netatmo API returned 400

Netatmo API returned invalid_grant

My configuration is:

netatmo:
  api_key: !secret netatmo_client_id
  secret_key: !secret netatmo_client_secret
  username: !secret netatmo_username
  password: !secret netatmo_password

Make sure any of those things in the secrets file that have special characters are wrapped in quotes.

Use quotes if your value includes special characters, (e.g. :, {, }, [, ], ,, &, *, #, ?, |, -, <, >, =, !, %, @, ` ).`

Hello.

Thank you for your reply.

Everything is already wrapped in quotes, so that is not the solution unfortunately.

I swear I just looked at this an hour ago and it had the same config as you.

Now look at it again and it only wants

# Example configuration.yaml entry
netatmo:
  client_id: YOUR_CLIENT_ID
  client_secret: YOUR_CLIENT_SECRET

Am I taking crazy pills???

LOL, hey…look at that…

@frenck frenck Sync codebase with docs for 0.1059c6592e 26 minutes ago

So yeah, try the new API I guess, only specifying the client_id and client_secret? It looks like it’s only for HA version 0.105 though, so not 100% sure.

The 0.105 update notes say:

“If you have an existing configuration, you will need to remove/update that and run the configuration flow dialogue to get their sensors/etc, back using the configuration.yaml option.”

I updated my configuration. I have no idea what “run the configuration flow dialogue” means. There’s no integration to see, anymore.

So far i’ve updated my configuration but nothing appears in the configuration flow dialogue or I just can’t find the configuration flow dialogue !

I was figure it out :slight_smile:
You need to go to Settings -> Integration -> Click on +
And then manually add Netatmo, which redirect you to netatmo pages, where only confirm authorization token…
And thats all :slight_smile:

I’m having issues accepting / authorizing through the Netatmo api website, is this working properly for you?

I get redirect back to the “I Accept” page everytime i click on “I Accept” when i want to integrate Home-Assistant.

What I did was:

  • Update HA, leaving the old Netatmo config. HA updated, but failed on Netatmo (I expected this).
  • Tried to add the integration like others and I also got ‘I Accept’ loop.
  • Put in the correct details in configuration.yaml (just client_id and client_secret and rebooted HA
  • HA came up with no errors, I went to the Configuration/Integrations to add Netatmo - it prompted me for either using configuration.yaml or cloud - I chose configuration.yaml.
  • Got redirected, but this time no ‘I Accept’ loop (though strangely the Netatmo webpage went blank).
  • Went back to my HA web page tab and Netatmo was there - all the the same entity_id too.

Hope this helps

mb

2 Likes

Thank you so much for your help! It works!

1 Like

Make sure to use the configuration.yaml the running the config flow dialogue. Cloud is not fully supported yet. That should change soon.

1 Like

Had done the same as @markbajaj arkbajaj but did get after a reboot the message client_id was not recognized, in htop i did notice home assistant was still working on some updates, waited for like 30min and restarted again (with the c lient_id and client_secret in the config yaml) and then the integration noted me there is a configuration.yaml and this did continue.

So solved for now.

1 Like