Netatmo authentication changes Oct 2022

Moderator: leecollings

sailmich
Posts: 245
Joined: Wednesday 17 February 2016 22:55
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Germany
Contact:

Re: Netatmo authentication changes Oct 2022

Post by sailmich »

waltervl wrote: Tuesday 15 April 2025 14:59 @gizmocuz is a couple of weeks absent pull requests and beta builds have some delay.
Thx for the information!
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 »

sailmich wrote: Tuesday 15 April 2025 14:32 Not for me. I'm on domoticz beta 16626. I always get errors after a couple of hours.
To get rid of it I do have to hit the update button for netatmo on domoticz hardware page.
Cheers
Obviously, your version is older than the change made on github! ^^
MartinAndersson
Posts: 5
Joined: Tuesday 31 December 2024 12:39
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Netatmo authentication changes Oct 2022

Post by MartinAndersson »

Updated to beta 16626.
Followed instructions on the wiki page.
When I activate the netatmo hardware, i get error "No access granted, forcing login again (Refresh tokens): invalid_grant".
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 »

sailmich wrote: Tuesday 15 April 2025 14:32
cadkey wrote: Thursday 10 April 2025 0:23 @JurgenLB fixed the issue here:
https://github.com/domoticz/domoticz/pull/6297
Not for me. I'm on domoticz beta 16626. I always get errors after a couple of hours.
Spoiler: show

Code: Select all

 2025-04-15 14:11:13.036 Error: Netatmo: Error data ... url: https://api.netatmo.com/api/homesdata?&get_favorites=true&, response: {
2025-04-15 14:11:13.036 "error": {
2025-04-15 14:11:13.036 "code": 3,
2025-04-15 14:11:13.036 "message": "Access token expired" 
To get rid of it I do have to hit the update button for netatmo on domoticz hardware page.
Cheers
Yes me also, 16626, after a while errors, then in hardware click update and it is correct, for a while. So manually update every 2 to 3 hours or so to keep everything going.

2025-04-24 10:52:33.058 Error: Netatmo Thuis: Error data ... url: https://api.netatmo.com/api/homesdata?& ... rites=true&, response: {
2025-04-24 10:52:33.058 "error": {
2025-04-24 10:52:33.058 "code": 3,
2025-04-24 10:52:33.058 "message": "Access token expired"
2025-04-24 10:52:33.058 }
2025-04-24 10:52:33.058 }
I Love Domoticz ! And the community around it :-)
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 »

today the Pull Request with the needed changes are merged.

Hopefully everybody can use the update.

Kind Regards
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,
Thanks for this PR merged.
We wait the new beta release for use your new feature :)
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 »

Yes, again thank you very much for all the hard work, making it going along with the future
I Love Domoticz ! And the community around it :-)
User avatar
waltervl
Posts: 5761
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Netatmo authentication changes Oct 2022

Post by waltervl »

I see that all beta build versions have been created today. Previously only the Windows version was up to date.
So latest Netatmo fix should be available!
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
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,
OK for two hours.
After I have these errors :
2025-04-26 09:48:14.006 Error: Météo: cloud Dashboard for module [Buanderie] no longer updated (module possibly disconnected) since Sat Apr 26 05:58:58 2025
2025-04-26 09:48:14.006
2025-04-26 09:48:14.006 Error: Météo: cloud Dashboard for module [cave] no longer updated (module possibly disconnected) since Sat Apr 26 05:58:32 2025
2025-04-26 09:48:14.006
2025-04-26 09:48:14.007 Error: Météo: cloud Dashboard for module [Salon] no longer updated (module possibly disconnected) since Sat Apr 26 05:58:44 2025
2025-04-26 09:48:14.007
2025-04-26 09:48:14.007 Error: Météo: cloud Dashboard for module [Météo abri] no longer updated (module possibly disconnected) since Sat Apr 26 05:55:05 2025
2025-04-26 09:48:14.007
2025-04-26 09:48:14.007 Error: Météo: cloud Dashboard for module [Serre] no longer updated (module possibly disconnected) since Sat Apr 26 05:54:48 2025
2025-04-26 09:48:14.007
2025-04-26 09:48:14.007 Error: Météo: cloud Dashboard for module [Chambre] no longer updated (module possibly disconnected) since Sat Apr 26 05:54:16 2025
2025-04-26 09:48:14.007
2025-04-26 09:48:14.007 Error: Météo: cloud Dashboard for module [unknown06:00:00:04:**:**] no longer updated (module possibly disconnected) since Sat Apr 26 05:55:00 2025
2025-04-26 09:48:14.007
2025-04-26 09:48:14.007 Error: Météo: cloud Dashboard for module [unknown05:00:00:07:**:**] no longer updated (module possibly disconnected) since Sat Apr 26 05:55:00 2025
2025-04-26 09:48:14.007

I have try one stop/start of plugin and one reboot.
Always in error ...

Sorry but this is not again stable :(
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 »

jcb2 wrote: Saturday 26 April 2025 9:54 Always in error ...
Sorry but this is not again stable :(
The error messages are not related to authentication but to requests on the weather modules. These queries are only made after authentication. So the authentication worked. It's a cloud problem, disconnection of the weather modules at the station, wifi interruption, etc.
If you look at the API documentation, it was the getstationsdata request that returned the errors. https://dev.netatmo.com/apidocumentatio ... ationsdata
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 »

@jcb2

Code: Select all

cloud Dashboard for module [unknown06:00:00:04:**:**] no longer updated
this error is when the time from "module last seen" is older than 5 min. so we don't keep filling our sensor with old data.

What I find strange is the "Unknown" in the message, normally the code uses the names returned from the API.

Maybe if you enable Debug you can see more message and you can identify the problem.

What Types off devices do you Have ?

Buanderie, cave, Salon, Météo abri, Serre, Chambre, unknown06:00:00:04:**:**, unknown05:00:00:07:**:**
GJKNL
Posts: 41
Joined: Monday 31 October 2016 9:33
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: Netatmo authentication changes Oct 2022

Post by GJKNL »

I updated domoticz about 4 hours ago to the newest release 16657. Up to now no interruptions anymore!
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 »

homeJLB wrote: Saturday 26 April 2025 12:56 What Types off devices do you Have ?
These are most likely additional weather modules (the small modules). This would mean three (or two) homes declared in your installation given the number of modules.
I assume you removed additional modules? The IDs of these modules are still attached to a main Netatmo weather module but not returned in the query since these modules are no longer present (disconnected as I explained above).
@jcb2 do you confirm?
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 use the weather devices (2x bases + additionals modules, wind, rain)

I have deleted the app in Netatmo and after I have theses errors :

Code: Select all

2025-04-27 03:43:33.110 Status: Météo: Worker started...
2025-04-27 03:43:34.111 Status: Météo: Requesting new access_token
2025-04-27 03:43:34.286 Error: Météo: No access granted, forcing login again (Refresh tokens): invalid_grant
2025-04-27 03:43:34.286 Error: Météo: Refresh token false 0
2025-04-27 03:43:35.286 Status: Météo: Requesting new access_token
2025-04-27 03:43:35.443 Error: Météo: No access granted, forcing login again (Refresh tokens): invalid_grant
2025-04-27 03:43:35.444 Error: Météo: Refresh token false 0
2025-04-27 03:43:36.444 Status: Météo: Requesting new access_token
2025-04-27 03:43:36.615 Error: Météo: No access granted, forcing login again (Refresh tokens): invalid_grant
2025-04-27 03:43:36.616 Error: Météo: Refresh token false 0
2025-04-27 03:43:51.154 Status: Météo: Requesting new access_token
2025-04-27 03:43:51.419 Error: Météo: No access granted, forcing login again (Refresh tokens): invalid_grant
2025-04-27 03:43:51.419 Error: Météo: Refresh token false 0
2025-04-27 03:43:51.916 Status: Météo: Worker stopped...
Now I wait a little bit and retry later.
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 »

cadkey wrote: Saturday 26 April 2025 20:02 These are most likely additional weather modules (the small modules). This would mean three (or two) homes declared in your installation given the number of modules.
I assume you removed additional modules? The IDs of these modules are still attached to a main Netatmo weather module but not returned in the query since these modules are no longer present (disconnected as I explained above).
@jcb2 do you confirm?
Hello,

Yes it is exactly my situation :)
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,
Sorry, into my new apps I have put a wrong IP number.
Now with the correct IP, I have one connection :

Code: Select all

2025-04-27 04:34:26.630 Status: Météo: Station Data parsed Buanderie
2025-04-27 04:34:26.630 Status: Météo: Station Data parsed Météo abri
2025-04-27 04:34:26.630 Status: Météo: Weather 1
2025-04-27 04:34:26.630 Status: Météo: Get HomesData Details
2025-04-27 04:34:26.849 Status: Météo: Home id METEO updated.
2025-04-27 04:34:26.849 Status: Météo: Home id Buanderie et cave updated.
2025-04-27 04:34:26.850 Status: Météo: Home id Abri et serre updated.
2025-04-27 04:34:26.850 Status: Météo: Home Status Details, size (number of homes) is 3
2025-04-27 04:34:27.177 Status: Météo: Parse Persons
2025-04-27 04:34:27.177 Status: Météo: HomeStatus parsed
2025-04-27 04:34:27.325 Status: Météo: Parse Persons
2025-04-27 04:34:27.325 Status: Météo: HomeStatus parsed
2025-04-27 04:34:27.644 Status: Météo: Scenarios Data Recieved
2025-04-27 04:34:27.950 Status: Météo: Scenarios Data Recieved
2025-04-27 04:34:27.951 Status: Météo: Status 1
But I don't retrieve my devices into device list. (I have alowed the creation into parameters)
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 think you can delete modules that are no longer installed.
You have to do it on https://home.netatmo.com or from the smartphone app.
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 »

jcb2 wrote: Sunday 27 April 2025 4:42 Hello,
Sorry, into my new apps I have put a wrong IP number.
Now with the correct IP, I have one connection

But I don't retrieve my devices into device list. (I have alowed the creation into parameters)
Have you looked by the "Not Used" tab in the devices page?

Your log output seems OK to have devices.
But enabling Debug can give more information.

Kind Regards
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 »

OK the wifi was down for both station :(
Now I have all devices in not used at first time :)

MANY THANKS !
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 »

jcb2 wrote: Sunday 27 April 2025 10:15 OK the wifi was down for both station :(
Now I have all devices in not used at first time :)

MANY THANKS !
Yes if your Wifi is down the devices are not created. (Last seen is more than 5 minutes)
I'm happy It works for you now.

Kind Regards
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest