Netatmo authentication changes Oct 2022

Moderator: leecollings

DomoFlits
Posts: 39
Joined: Thursday 06 October 2016 20:33
Target OS: Raspberry Pi / ODroid
Domoticz version: Bld16583
Location: The Netherlands
Contact:

Re: Netatmo authentication changes Oct 2022

Post by DomoFlits »

Yes, also tried with newly created app at dev.netatmo.com.
homeJLB
Posts: 109
Joined: Tuesday 16 October 2018 23:01
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.7
Location: Belgium
Contact:

Re: Netatmo authentication changes Oct 2022

Post by homeJLB »

Thuis wrote: Friday 21 March 2025 11:11 I do not need saved credentials in my browser, as i am on my local lan network.

Thank you for the explanation of the network settings, but all the ip's are in the known network settings.

This morning i installed latest beta and i get another warning, the 403 is gone now it is this:
Error: Netatmo Thuis: No access granted, forcing login again (Refresh tokens): invalid_grant


I also did a reset on the netatmo site as well before login with domoticz and grant access.
At least there is a change ...
Invalid Grand

I believe this is when you have selected the wrong scope or provided incorrect credentials
homeJLB
Posts: 109
Joined: Tuesday 16 October 2018 23:01
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.7
Location: Belgium
Contact:

Re: Netatmo authentication changes Oct 2022

Post by homeJLB »

DomoFlits wrote: Friday 21 March 2025 17:12 I've just upgraded to 16583 also after reading the latest 2 messages.
re-enabled the Netatmo hardware
used the login button to login at Netamo and approved access to the weatherstation and was send back to domoticz again.
unfortunately "computer says no"

Code: Select all

2025-03-21 17:01:33.069 Status: Netatmo2: Worker started...
2025-03-21 17:01:38.069 Status: Netatmo2: Use refresh token from database...
2025-03-21 17:01:38.069 Status: Netatmo2: Requesting refreshed tokens
2025-03-21 17:01:38.220 Error: Netatmo2: Invalid/no data received (refresh tokens)... HTTP/2 403
when you have this message you must stop the request to Netatmo for minimum 20 minutes
jpaul
Posts: 16
Joined: Saturday 30 December 2017 8:59
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.7
Contact:

Re: Netatmo authentication changes Oct 2022

Post by jpaul »

Hi,
My feeling is that Netatmo has banned some Apps without any communication.
For example, since mid-March 2025, I'm not able to renew the token (invalid grant) on my current Apps used by the stable domoticz 2024.7 version, no matter of the client used (domoticz or a php one: https://github.com/Phil353556/netatmo-manage-tokens.git ).
If I create a new Netatmo App, token renewal works with the php client and the dev Domoticz version (or not, depending on the moon phase).
Has anyone contacted Netatmo to report this issue ? I used this form: https://dev.netatmo.com/contact-us-form paragraph "I need support with the Netatmo API", waiting for an answer ...
Last edited by jpaul on Friday 21 March 2025 22:20, edited 1 time in total.
DomoFlits
Posts: 39
Joined: Thursday 06 October 2016 20:33
Target OS: Raspberry Pi / ODroid
Domoticz version: Bld16583
Location: The Netherlands
Contact:

Re: Netatmo authentication changes Oct 2022

Post by DomoFlits »

homeJLB wrote: Friday 21 March 2025 20:06
DomoFlits wrote: Friday 21 March 2025 17:12

Code: Select all

2025-03-21 17:01:33.069 Status: Netatmo2: Worker started...
2025-03-21 17:01:38.069 Status: Netatmo2: Use refresh token from database...
2025-03-21 17:01:38.069 Status: Netatmo2: Requesting refreshed tokens
2025-03-21 17:01:38.220 Error: Netatmo2: Invalid/no data received (refresh tokens)... HTTP/2 403
when you have this message you must stop the request to Netatmo for minimum 20 minutes
I have the hardware disabled continuesly to prevent my logfile filling up with Netatmo errors.
I only enable it for testing possible solutions mentioned in this topic.
homeJLB
Posts: 109
Joined: Tuesday 16 October 2018 23:01
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.7
Location: Belgium
Contact:

Re: Netatmo authentication changes Oct 2022

Post by homeJLB »

jpaul wrote: Friday 21 March 2025 22:11 Hi,
My feeling is that Netatmo has banned some Apps without any communication.
For example, since mid-March 2025, I'm not able to renew the token (invalid grant) on my current Apps used by the stable domoticz 2024.7 version, no matter of the client used (domoticz or a php one: https://github.com/Phil353556/netatmo-manage-tokens.git ).
If I create a new Netatmo App, token renewal works with the php client and the dev Domoticz version (or not, depending on the moon phase).
Has anyone contacted Netatmo to report this issue ? I used this form: https://dev.netatmo.com/contact-us-form paragraph "I need support with the Netatmo API", waiting for an answer ...
When Netatmo permanently block a App without communication, we can try so much but always fail. :?

As I read this thread correctly there are users with a New App on dev.netatmo.com but they still have issues.
Not sure what happens there.
User avatar
Thuis
Posts: 269
Joined: Tuesday 11 September 2018 11:36
Target OS: Linux
Domoticz version: Beta
Location: The Netherlands
Contact:

Re: Netatmo authentication changes Oct 2022

Post by Thuis »

It just does not work, what ever i do.
I Love Domoticz ! And the community around it :-)
lost
Posts: 659
Joined: Thursday 10 November 2016 9:30
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Netatmo authentication changes Oct 2022

Post by lost »

homeJLB wrote: Saturday 22 March 2025 9:40 When Netatmo permanently block a App without communication, we can try so much but always fail. :?
As always, only solution to avoid this kind of issue that almost always occurs (only unknown there is when?) on devices whose manufacturers do not allow 100% local control: Never buy!!!
pipiche
Posts: 2007
Joined: Monday 02 April 2018 20:33
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: France
Contact:

Re: Netatmo authentication changes Oct 2022

Post by pipiche »

no luck. Latest domoticz build on Docker, create a new app on Netatmo, still

Error: Netatmo Energy: Invalid/no data received (refresh tokens)... HTTP/2 403

will give up
Zigbee for Domoticz plugin / RPI3B+ / Electrolama ZZH-P / 45 devices

If the plugin provides you value, you can support me with a donation Paypal.

Wiki is available here.

Zigbee for Domoticz FAQ
jcb2
Posts: 34
Joined: Wednesday 04 January 2023 7:30
Target OS: Linux
Domoticz version:
Contact:

Re: Netatmo authentication changes Oct 2022

Post by jcb2 »

Hello,
I have the same issue.
Last béta, reset key, new app, wait severals hours, ... but never the communication with Netatmo.
cadkey
Posts: 14
Joined: Wednesday 19 March 2025 17:08
Target OS: Linux
Domoticz version:
Contact:

Re: Netatmo authentication changes Oct 2022

Post by cadkey »

You can run this test to verify if the API is working.
In a browser like Chrome, type this line:
https://api.netatmo.com/api/homesdata?access_token=xyz

Make sure to replace xyz with your valid access_token (not the refresh_token), without single or double quotes.
You should receive a JSON response beginning with: {"body":{"homes":[
jcb2
Posts: 34
Joined: Wednesday 04 January 2023 7:30
Target OS: Linux
Domoticz version:
Contact:

Re: Netatmo authentication changes Oct 2022

Post by jcb2 »

Hello,
Yes I have one result :
2025-03-23_15-25-06.png
2025-03-23_15-25-06.png (123.76 KiB) Viewed 1585 times
cadkey
Posts: 14
Joined: Wednesday 19 March 2025 17:08
Target OS: Linux
Domoticz version:
Contact:

Re: Netatmo authentication changes Oct 2022

Post by cadkey »

I'm not surprised. You're receiving a json file because the API is working, which I've been reporting since March 20th. The URL query bug only lasted a few hours. The problem lies elsewhere. You need to look into the connection with the third-party application (on the Netatmo side) or the Domoticz integration (on the Domoticz side). I can't help you further because I don't use Domoticz; all my home automation is managed with my own scripts, Netatmo, Philips Hue, Sonoff and more.
homeJLB
Posts: 109
Joined: Tuesday 16 October 2018 23:01
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.7
Location: Belgium
Contact:

Re: Netatmo authentication changes Oct 2022

Post by homeJLB »

When I try a restart off the plugin

Code: Select all

2025-03-23 16:06:32.920  Error: Netatmo: Invalid/no data received (refresh tokens)... HTTP/2 403 
2025-03-23 16:06:32.923  Status: Netatmo: Login 0
2025-03-23 16:10:18.035  Status: Closing application!...
2025-03-23 16:10:18.035  Status: Stopping worker...
Then on the command line I stop the Domoticz-service
and wait 20 minutes

Code: Select all

2025-03-23 16:30:15.640  Status: Domoticz V2025.1 (build 16651) (c)2012-2025 GizMoCuz

2025-03-23 16:30:27.548  Status: Netatmo: Status 1
I believe the authentication is functioning but something keeps in memory and blocks the request.
This needs to be found in the source code off the plugin.
User avatar
Thuis
Posts: 269
Joined: Tuesday 11 September 2018 11:36
Target OS: Linux
Domoticz version: Beta
Location: The Netherlands
Contact:

Re: Netatmo authentication changes Oct 2022

Post by Thuis »

Well i got back to beta 16490 or something, and just let it go fill my logfile with the netatmo errors. Before this I did reset the app client and secret on netatmo and i logged in with new clientid and secret and the scope. After one day i looked and it was working. Somehow? Also i see different icons on the CO2 sensors. Nice!

Then i did updatebeta and it seems to keep working, no errors. The only thing i see is firefox has a different behavior then edge and chrome. I did deleted all the history and cookie data though. Probably a firefox thing.

Image
I Love Domoticz ! And the community around it :-)
Wimpi
Posts: 11
Joined: Sunday 07 January 2024 12:52
Target OS: Raspberry Pi / ODroid
Domoticz version: 2025.1
Location: Belgium
Contact:

Re: Netatmo authentication changes Oct 2022

Post by Wimpi »

upgrade to 16583 did the trick!

Netatmo works again :D
dgilbert2
Posts: 95
Joined: Wednesday 16 August 2017 8:08
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.7
Location: UK
Contact:

Re: Netatmo authentication changes Oct 2022

Post by dgilbert2 »

Has the latest beta updated the Netatmo plugin?
User avatar
Thuis
Posts: 269
Joined: Tuesday 11 September 2018 11:36
Target OS: Linux
Domoticz version: Beta
Location: The Netherlands
Contact:

Re: Netatmo authentication changes Oct 2022

Post by Thuis »

Restarted the domoticz.service and i spoke too soon got error again:
Netatmo Thuis: Invalid/no data received (refresh tokens)... HTTP/2 403

So i now disabled the netatmo hardware and see what happends if i enable it after 2 hours or so...
I Love Domoticz ! And the community around it :-)
User avatar
Thuis
Posts: 269
Joined: Tuesday 11 September 2018 11:36
Target OS: Linux
Domoticz version: Beta
Location: The Netherlands
Contact:

Re: Netatmo authentication changes Oct 2022

Post by Thuis »

Waited a few hours and turned the hardware back on.
So i did the login again, granted permission. Then restarted domoticz and it seems to be working again.
I just hope i do not have to do this every time i restart the computer. We'll see.
I Love Domoticz ! And the community around it :-)
jcb2
Posts: 34
Joined: Wednesday 04 January 2023 7:30
Target OS: Linux
Domoticz version:
Contact:

Re: Netatmo authentication changes Oct 2022

Post by jcb2 »

Hello,
One new PR is available into new beta about issue of Netatmo.
For me this is always not good. I have wait 20 minutes but always one other error : "No access granted, forcing login again (Refresh tokens): invalid_client"
I have check and check again, make a new app but nothing ...
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest