Failed to get oAuth token NETATMO (Authentication failure)
FixedGood afternoon!
PRO 8 Module Version 4.0.1163
Does not connect to Netatmo module. Authorization error. Login\password checked, reset to default made.
HTTPError: HTTP Error 400: 2022-02-16 15:46:21,734 - ERROR - netatmo-parser:274 - Failed to get oAuth token 2022-02-16 15:46:21,743 - ERROR - netatmo-parser:79 - Error: Authentication failure 2022-02-16 15:51:21,846 - INFO - netatmo-parser:53 - NetAtmo Parser v1 starting... 2022-02-16 15:51:21,855 - INFO - netatmo-parser:74 - Doing full auth 2022-02-16 15:51:21,865 - INFO - netatmo-parser:309 - Getting data from https://api.netatmo.com/oauth2/token 2022-02-16 15:51:22,595 - ERROR - netatmo-parser:321 - HTTP Error 400: Traceback (most recent call last): File "./RMParserFramework/parsers/netatmo-parser.py", line 318, in postRequest File "/usr/lib/python2.7/urllib2.py", line 154, in urlopen File "/usr/lib/python2.7/urllib2.py", line 435, in open File "/usr/lib/python2.7/urllib2.py", line 548, in http_response File "/usr/lib/python2.7/urllib2.py", line 473, in error File "/usr/lib/python2.7/urllib2.py", line 407, in _call_chain File "/usr/lib/python2.7/urllib2.py", line 556, in http_error_default
-
I can confirm that the "PersonalNetatmo" weather service doesn't work anymore, authentication failure.
I had everything set up and running since April I believe, but apparently on July 17th was the last time authentication war successful.
I‘m a moderator in the Netatmo support forum and I asked their API specialist about this.I‘ll keep you guys posted.
-
So I got a reply from Netatmo:
„If I well understand their fix from March, we asked developers to catch the refresh_token value each time a new /token request is performed. They anticipated this change which is not still online on our side, but it has nothing to do with the authentication method change - way more impacting if the evolution wasn't still performed -
Their developers must apply the /authorize process change by deleting the old way to authenticate (client_credentials) and use the other one (authorization_code : https://dev.netatmo.com/apidocumentation/oauth#authorization-code)Have a good day,
Leslie - Community Manager“Source: https://forum.netatmo.com/viewtopic.php?p=94835#p94835
I‘m a complete amateur in API stuff, I got the new Netatmo integration to work back in March but that‘s it.
So I‘m just a messenger 😅
-
Netatmo developers are crazy... ((You might think they log in to Fort Knox...))
If you have a weather station and an iPhone, try installing the Netatmo Comfort app.
There only your credentials are required for authorization, without keys. And after that, a new application with access to the API appears in the Netatmo account in the settings, in the Partner Application. So in the applications of partners there used to be a watering controller..... -
So it's not surprising. Netatmo has once again changed the way it authorizes its API. In another project, I also now have no authorization for them. Only authorization for the IPhone application remained (wrote above here). But there is apparently agreed. Because in the application I entered only the login and password for Netatmo and did not enter keys.
-
I wrote to help@rainmachine.com
-
I don‘t think RainMachine users can do anything at all on their own.
Netatmo changed something on their end and the parser needs to be adapted. I use an app on my Mac that displays readings from Netatmo‘s Weather Station and that one recently had an update because of this new authentication procedure. So it can be done 😋 -
„Netmo - The Netatmo Client“
Release notes said:
Netmo has implemented a new authorization method. If you are already logged in, you may not notice this at first.
However, when you need to log in again, simply click on "Start Authorization" to be redirected to the Netatmo website, where you must grant Netmo access to your weather station data. You might need to log in to the website first.
-
I wrote above about the iPhone app. There, too, at the initial login to the application, you need to enter credentials for Netatmo and an application is automatically created in Netatmo's personal account with permission to access data. Apparently Apple is easier to negotiate with Netatmo about the operation of its applications for IPhone and Mac.....)))
-
Hi, all
We're sorry for this inconvenience and we are asking you for patience. We are working on a fix for our NetAtmo RainMachine weather service and as soon as we have it, we will announce it here.
Thank you for your feedback and for your understanding.Julian
RainMachine Support -
Hi,
here's a quick fix. You need to create access/refresh token at the netatmo dev site.
File: https://raw.githubusercontent.com/zagy/rainmachine-developer-resources/df1d75b84cf9fb12b3334029c48e5cbf6b8625d0/sdk-parsers/RMParserFramework/parsers/personalnetatmo-parser.py (can be uploaded via the rainmachine UI)
It's not very tested, but seems to work for now.
Best,
Christian
Please sign in to leave a comment.



Comments
106 comments