How can we help?


Failed to get oAuth token NETATMO (Authentication failure)

Fixed

Comments

106 comments

  • Avatar
    vova

    Two months have passed since the data from my Netatmo station does not arrive.
    Dear RainMachine manufacturers, have you been unable to fix the situation in such a time?

    0
    Comment actions Permalink
  • Avatar
    RainMachine Support (Edited )

    Hi, all
    Sorry for the delay. We had to keep an eye and to test the service before releasing the fix.
    Follow this link to download, upload and set up the new RainMachine NetAtmo Weather Service with September 2023 fix applied.

    Please make sure you have disabled the previous version of the NetAtmo Weather Service before uploading the new one from the ZIP archive listed in the article.
    The NetAtmo modules listing could take some time to be fetched. If it doesn't show up under the availableModules please update your client_ID and secret on NetAtmo dev page and use the new ones.

    Thank you for your patience and understanding.
    Let us know if the fix is working for you.

    Shout out to our community member (Christian Zagrodnick) for the contribution
    https://support.rainmachine.com/hc/en-us/community/posts/4433188885271/comments/16614816373271

    Thank you
    Julian
    RainMachine Support

    2
    Comment actions Permalink
  • Avatar
    M. W. (Edited )

    Thanks Julian. Works fine for my Pro-8. I‘m happy. :-)

    1
    Comment actions Permalink
  • Avatar
    RainMachine Support

    Thank you!
    Good to know!

    Julian
    RainMachine Support

    0
    Comment actions Permalink
  • Avatar
    GEORGzer

    I can confirm as well that it works 👍

    1
    Comment actions Permalink
  • Avatar
    vova

    It works.
    Correct the parser and instructions.
    The mailing address and password are no longer needed.
    And in the parser, you automatically (!!!) turn on the check box for using useSpecifiedModules. If the check box is not cleared, then the parser will not work without adding MAC addresses. Many will not notice this check box and the parser will not work.

    1
    Comment actions Permalink
  • Avatar
    Marcus Saegmueller

    Unfortunately it does not work on my Mini 8. Did everything according the instructions. Created a new Netatmo App and all the tokens. Last run still says NEVER. And the parser says:  Retrying: Failed to run

    I do own two Netatmo stations for different locations that are in my account

    0
    Comment actions Permalink
  • Avatar
    RainMachine Support

    Hi, Marcus

    The AUTH fix success is when the NetAtmo modules are listed and you can add their MAC address so the service will use their data.
    If it continue to say "Never" on the service status, then the connection with the NetAtmo API is not done.

    Sometime the connection with NetAtmo API takes longer or it doesn't get through at all. This has nothing to do with the RainMachine device model.
    We tested and the reset of the client_ID and secret for the NetAtmo dev app had the success in our tests.
    Please try to remove/uninstall the NetAtmo weather service that you manually installed and install the one that it is already listed under Weather - Community. It has the same fix, but there is no need to manually install the one from the ZIP archive.
    Please try again and let us know if it works.

    Thank you
    Julian
    RainMachine Support

    0
    Comment actions Permalink
  • Avatar
    Marcus Saegmueller

    Hi Julian,

     

    thanks for the quick reply. After returning to the parser about one hour later it reported success. So it can indeed take quite a while until everything works.

    As I do have two stations on different locations I need to use specific modules.

    The separation is as follows, correct?

    05:xx:xx:xx:75:94,02:xx:xx:xx:46:64,

    Thank you

    Marcus

    0
    Comment actions Permalink
  • Avatar
    RainMachine Support

    Hi, glad it worked in the end.
    If the locations are far away from each other, then use only one module for one location.
    RainMachine #1 - location #1 - use one module
    RainMachine #2 - location #2 - use the other module
    For the precise weather data, use the modules that are closer to your RainMachine location and garden.

    Hope that helps.
    Julian

    0
    Comment actions Permalink
  • Avatar
    Marcus Saegmueller

    Hi Julain,

     

    thank you.

    I am using only one location.

    My question was regarding the separation of two different modules (rain and temperature) in one location in the respective parser field.

    Did I enter these two modules correctly, separated with comma and without any space inbetween?

     

    Regards Marcus

    0
    Comment actions Permalink
  • Avatar
    RainMachine Support

    Oh, yes, Marcus
    Correct! That's how you add them:
    05:xx:xx:xx:75:94,02:xx:xx:xx:46:64

    Thank you and sorry for misunderstanding.
    Julian

    0
    Comment actions Permalink
  • Avatar
    Marcus Saegmueller

    Is there again an issue with Netatmo?
    My Rainmachine is in Winter pause but I just noticed that the last succesful run was on Dec 11 2023 just before midnight.
    Anyone else has noticed that?

    0
    Comment actions Permalink
  • Avatar
    GEORGzer

    Mine updated today, so no issues.

    0
    Comment actions Permalink
  • Avatar
    Marcus Saegmueller

    Thanks for the feedback. Somehow I had to refresh the Token and now it seems to work again.

    0
    Comment actions Permalink
  • Avatar
    vova

    Unfortunately, we have to raise the topic again.
    Authorization does not pass and weather data from Netatmo is not updated. Checked several times. And he updated keys and tokens and deleted the parser and installed it again. Netatmo may have a common problem again, but auto-watering is not yet needed in many regions and users simply did not pay attention to the problem.... (

    0
    Comment actions Permalink
  • Avatar
    M. W.

    No problems with my RM here in Germany. Status is „ok“

    0
    Comment actions Permalink
  • Avatar
    vova

    0
    Comment actions Permalink
  • Avatar
    GEORGzer (Edited )

    Works fine for me as well 🤷‍♂️

     

     

    0
    Comment actions Permalink
  • Avatar
    M. W.

    Will following Message from Netatmo effect the way of synchronizing personal weather data from netatmo to my rainmachine by the end of march?

    „Authentication update (second notice)

    This is a reminder regarding our authentication update following the release initially planned for last fall which we decided to postpone in order to give our users more time.

    Dear Netatmo developer,
    Today, when you refresh an Access Token using the associated endpoint https://api.netatmo.com/oauth2/token, the Netatmo servers respond with a pair of tokens: an Access Token and a Refresh Token.

    If the previous Access Token is still valid, the newly returned access token is identical but has an expiration time extended by 3 hours.

    The Refresh Token is not renewed.

    Starting May 29, 2024, this behavior will change to comply with the OAuth2 Authorization Framework RFC recommendations (section 10.4) and improve the security of our users' data.

    When refreshing the tokens, the Access Token and Refresh Token will be different from the previous ones and the old tokens will be invalidated.

    What does this mean for you?

    If you already store the tokens returned by the API when refreshing your tokens, this change will not affect you.

    If you do not update the tokens when refreshing them, your users will be logged out because the old tokens will be invalidated.

    If for a given user, you have stored the same token in different places (for example: an application and its widget), you must have a way to synchronize them because the new token will be applied for the entire application.

    Sincerely,

    Legrand - Netatmo - Bticino“

    1
    Comment actions Permalink
  • Avatar
    RainMachine Nicholas

    The Personal NetAtmo Parser from the Community should work, it's storing and using both access_token and refresh_token.

    0
    Comment actions Permalink
  • Avatar
    GEORGzer

    I had an authentication error and didn't receive any updates since March 16th. So I logged into the Netatmo Dev account, recreated new tokens, updated them in the Rainmachine settings and it still didn't work. After rebooting the Rainmachine the service successfully updated 🤷‍♂️

    0
    Comment actions Permalink
  • Avatar
    vova

    Good afternoon everyone!
    I needed to update my token and found that you can't create a new token or update an old token on Netatmo. A new app is created, but a 404 error is thrown and there are no keys or tokens in the app.

    0
    Comment actions Permalink
  • Avatar
    GEORGzer (Edited )

    A new app is created, but a 404 error is thrown and there are no keys or tokens in the app.

    I can confirm that the Dev Website from Netatmo seems to be broken.
    I‘m going to reach out to my contacts there 👍

    0
    Comment actions Permalink
  • Avatar
    GEORGzer (Edited )

    The Dev Portal is now back up but still not working properly.

    Tokens can be created, however the vanish again when the page is refreshed and the following error message pops up.

    0
    Comment actions Permalink
  • Avatar
    GEORGzer

    Never mind, this behavior seems to be normal.
    My Parser is working again, for now 🤗

    0
    Comment actions Permalink
  • Avatar
    GEORGzer

    And it stopped working again….
    I believe I‘m gonna give up on this integration, since it doesn’t work most of the time anyway 🤪

    0
    Comment actions Permalink
  • Avatar
    Marcus Saegmueller

    Same here, stopped working on June 13 at 10:52 and says „retrying failed to run“. Anyone successful with a fix? I did not yet try to reset the token and so on. It worked for several months now, too bad

    0
    Comment actions Permalink
  • Avatar
    GEORGzer

    And just like that it worked again this morning 🤷‍♂️

    1
    Comment actions Permalink
  • Avatar
    Marcus Saegmueller

    After setting up a new Token it worked again for me...

    0
    Comment actions Permalink

Please sign in to leave a comment.