Netatmo authentication changes Oct 2022
Moderator: leecollings
-
jpcasta
- Posts: 18
- Joined: Saturday 24 November 2018 18:28
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Netatmo authentication changes Oct 2022
Hello,
I updated Domoticz to 2025.1 beta 16657 and it works again for me!!
Thanks!
I updated Domoticz to 2025.1 beta 16657 and it works again for me!!
Thanks!
Re: Netatmo authentication changes Oct 2022
Not working for me viewtopic.php?t=43457
and no idea on how to troubleshoot and understand the error message
and no idea on how to troubleshoot and understand the error message
-
Piacco
- Posts: 81
- Joined: Friday 14 November 2014 9:33
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Netatmo authentication changes Oct 2022
I've updated to Version: 2025.1
Netamo works well, but after a several days domoticz is crashing.
What could be the cause of this, or better how can I solve this issue
Netamo works well, but after a several days domoticz is crashing.
What could be the cause of this, or better how can I solve this issue
Thread 40 (Thread 0x60fe9200 (LWP 20719) "Netatmo Weersta"):
#0 0x7691f034 in __GI___wait4 (pid=25931, stat_loc=0x60fe7bb8, options=0, usage=0x0) at ../sysdeps/unix/sysv/linux/wait4.c:27
#1 0x0076a13a in dumpstack_gdb(bool) ()
#2 0x0076a590 in signal_handler(int, siginfo_t*, void*) ()
#3 <signal handler called>
#4 raise (sig=6) at ../sysdeps/unix/sysv/linux/raise.c:50
#5 <signal handler called>
#6 __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
#7 0x76893364 in __GI_abort () at abort.c:79
#8 0x00c22060 in __gnu_cxx::__verbose_terminate_handler() ()
#9 0x00bc81e0 in __cxxabiv1::__terminate(void (*)()) ()
#10 0x00bc8236 in std::terminate() ()
#11 0x00bc815c in __cxa_throw ()
#12 0x00af1bac in Json::throwLogicError(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) ()
#13 0x00af3282 in Json::Value::asString[abi:cxx11]() const ()
#14 0x00963824 in CNetatmo::RefreshToken(bool) ()
#15 0x00971640 in CNetatmo::Do_Work() ()
#16 0x00c1dd42 in execute_native_thread_routine ()
#17 0x76a96310 in start_thread (arg=0x60fe9200) at pthread_create.c:477
#18 0x76957da8 in ?? () at ../sysdeps/unix/sysv/linux/arm/clone.S:73 from /lib/arm-linux-gnueabihf/libc.so.6
Backtrace stopped: previous frame identical to this frame (corrupt stack?)
-
homeJLB
- Posts: 153
- 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
There is a error in the json::throwLogicError, this needs some investigation.
-
homeJLB
- Posts: 153
- 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
On my system and on my test system it is still running.
I recommend to un-comment the line
and to start with option debug Hardware on to see what is happening wit your setup.
I recommend to un-comment the line
Code: Select all
Debug(DEBUG_HARDWARE, "Response sResult %s", sResult.c_str());-
DomoFlits
- Posts: 48
- 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
Hi
I've just received this email from Netatmo:
I've just received this email from Netatmo:
Can anyone comment on whether this will stop the Netatmo devices from working?Netatmo API - API Domain Name Change
Dear Netatmo developer,
We hope this message finds you well.
We are writing to inform you of an upcoming change to our API domain configuration. As part of our ongoing efforts to streamline and improve our services, we will be retiring the domain api.netatmo.net and consolidating all API traffic under the existing domain api.netatmo.com.
Effective Date:September 8, 2025
To ensure uninterrupted service, we kindly ask you to update your applications to use api.netatmo.com exclusively before the above date. The structure and functionality of the API remain unchanged — only the domain name is affected.
Sincerely,
Legrand - Netatmo - Bticino
-
homeJLB
- Posts: 153
- 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
We use
So this change in September should not effect the Plugin.
Kind regards
Code: Select all
#define NETATMO_API_URI "https://api.netatmo.com/"
Kind regards
-
DomoFlits
- Posts: 48
- 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
Thanks for the confirmation
-
dgilbert2
- Posts: 97
- 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
I finally updated to 2025.1 and the Netatmo side is all working, thank you.
One thing I have noticed is that the air pressure resolution for the weather station appears to have changed to 1 hPa where as it was 0.1hPA before the update? This results in quite 'blocky' graphs now.
One thing I have noticed is that the air pressure resolution for the weather station appears to have changed to 1 hPa where as it was 0.1hPA before the update? This results in quite 'blocky' graphs now.
-
homeJLB
- Posts: 153
- 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
Do you mean the Barometer?
This is my log for last year; only on daily it is more blocky Is this a problem for you?
This is my log for last year; only on daily it is more blocky Is this a problem for you?
-
dgilbert2
- Posts: 97
- 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
Yes, barometer. No, its not a problem, just an observation. Here is my daily chart and you can tell when I updated to the 2025.1 after around 9am
-
MartinAndersson
- Posts: 6
- Joined: Tuesday 31 December 2024 12:39
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Netatmo authentication changes Oct 2022
Is it the resolution or just slower updates? My netatmo these days only update every 15 minutes, whereas before I think it was every 5 minutes.dgilbert2 wrote: Sunday 31 August 2025 21:29 Yes, barometer. No, its not a problem, just an observation. Here is my daily chart and you can tell when I updated to the 2025.1 after around 9am
Screenshot 2025-08-31 202339.png
-
homeJLB
- Posts: 153
- 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
Can you update the Supported Devices ?waltervl wrote: Wednesday 02 April 2025 14:34 See also the wiki https://wiki.domoticz.com/Netatmo The instructions should be up to date.
Kind Regards
Code: Select all
At the moment, the supported Devices are;
Weather station,
Netatmo thermostat,
Netatmo Valves,
Homecoach,
CO2detector,
Smokedetector,
Presence camera (Only Events),
Presence Floodlight State,
Welkom camera (Only Events),
Door Tag,
Lights,
Power Switch (On/Off),
Blinds,
Fan with 2 speeds,
Scenarios,
Power-sensor (Watt)
- waltervl
- Posts: 7016
- Joined: Monday 28 January 2019 18:48
- Target OS: Linux
- Domoticz version: 2026.3
- Location: NL
- Contact:
Re: Netatmo authentication changes Oct 2022
Thanks for reporting, done.homeJLB wrote: Saturday 04 April 2026 15:43Can you update the Supported Devices ?waltervl wrote: Wednesday 02 April 2025 14:34 See also the wiki https://wiki.domoticz.com/Netatmo The instructions should be up to date.
Kind Regards
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
-
homeJLB
- Posts: 153
- 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
Sorry I have forgotten 1
Code: Select all
Advance camera (Only Events),Code: Select all
Welkom camera (Only Events),Kind Regards
- waltervl
- Posts: 7016
- Joined: Monday 28 January 2019 18:48
- Target OS: Linux
- Domoticz version: 2026.3
- Location: NL
- Contact:
Re: Netatmo authentication changes Oct 2022
And wiki updated 
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
-
Huupke
- Posts: 26
- Joined: Monday 21 October 2019 10:49
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2026.1
- Location: Boxtel, Netherlands
- Contact:
Re: Netatmo authentication changes Oct 2022
It seems that the earlier mentioned unhandled exception when parsing JSON is happening in case the Netatmo API returns a 504 page instead of proper JSON. This results in a full crash because it's not catched in a case the OAuth/token endpoint is down.
This is the cleaned-up stacktrace I got:
So what likely happened in my case was:
To be able to restore from this you can disable the domoticz service and disable the netatmo hardware by using the sqlite3 on the commandline if you know the hardware ID of Netatmo. To find the hardware ID of Netatmo you can use:
This is the cleaned-up stacktrace I got:
Code: Select all
CNetatmo::RefreshToken()
→ Json::Value::asString()
→ exception
→ abort()- Domoticz requested token refresh
- Netatmo returned HTML / 504 page instead of JSON
- Domoticz tried to parse missing JSON fields as strings
- Uncaught exception crashed Domoticz
To be able to restore from this you can disable the domoticz service and disable the netatmo hardware by using the sqlite3 on the commandline if you know the hardware ID of Netatmo. To find the hardware ID of Netatmo you can use:
Then disable like this when the ID is 12 (replace if it is different):sqlite3 domoticz.db "SELECT ID,Name,Enabled FROM Hardware;"
In my case I also had to revert to a database backup as it got corep[ted so I used the last hourly backup. For now I leave Netatmo disabled until the Netatmo API is back up in the air.sqlite3 domoticz.db "UPDATE Hardware SET Enabled=0 WHERE ID=12;"
Running V2026.1 on RPi3B+ & development/HEAD on RPi4B
-
homeJLB
- Posts: 153
- 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
On my system there is no crash,Huupke wrote: Sunday 03 May 2026 15:10 It seems that the earlier mentioned unhandled exception when parsing JSON is happening in case the Netatmo API returns a 504 page instead of proper JSON. This results in a full crash because it's not catched in a case the OAuth/token endpoint is down.
This is the cleaned-up stacktrace I got:So what likely happened in my case was:Code: Select all
CNetatmo::RefreshToken() → Json::Value::asString() → exception → abort()
- Domoticz requested token refresh
- Netatmo returned HTML / 504 page instead of JSON
- Domoticz tried to parse missing JSON fields as strings
- Uncaught exception crashed Domoticz
To be able to restore from this you can disable the domoticz service and disable the netatmo hardware by using the sqlite3 on the commandline if you know the hardware ID of Netatmo. To find the hardware ID of Netatmo you can use:Then disable like this when the ID is 12 (replace if it is different):sqlite3 domoticz.db "SELECT ID,Name,Enabled FROM Hardware;"In my case I also had to revert to a database backup as it got corep[ted so I used the last hourly backup. For now I leave Netatmo disabled until the Netatmo API is back up in the air.sqlite3 domoticz.db "UPDATE Hardware SET Enabled=0 WHERE ID=12;"
I have;
Code: Select all
2026-05-03 00:00:32.551 Error: Netatmo : Refresh token false 0
2026-05-03 00:00:33.552 Status: Netatmo : Requesting new access_token
2026-05-03 00:00:41.844 Debug: Netatmo : HttpUrl: https://api.netatmo.com/oauth2/token?
2026-05-03 00:00:41.844 Debug: Netatmo : HttpData: grant_type=refresh_token&…………
2026-05-03 00:00:41.844 Debug: Netatmo : ExtraHeaders: User-Agent: Domoticz/Version 1.10
2026-05-03 00:00:41.844 Debug: Netatmo : ExtraHeaders: Content-Type: application/x-www-form-urlencoded;charset=UTF-8
2026-05-03 00:00:41.844 Debug: Netatmo : returnHeader: HTTP/2 504
2026-05-03 00:00:41.844 Debug: Netatmo : returnHeader: date: Sat, 02 May 2026 22:00:41 GMT
2026-05-03 00:00:41.844 Debug: Netatmo : returnHeader: content-type: text/html
2026-05-03 00:00:41.844 Debug: Netatmo : returnHeader: content-length: 2061
2026-05-03 00:00:41.845 Debug: Netatmo : returnHeader: cache-control: no-store
2026-05-03 00:00:41.845 Debug: Netatmo : returnHeader: x-azure-ref: ……………
2026-05-03 00:00:41.845 Debug: Netatmo : returnHeader: x-cache: CONFIG_NOCACHE
2026-05-03 00:00:41.845 Debug: Netatmo : returnHeader:
2026-05-03 00:00:41.845 Debug: Netatmo : Netatmo Invalid ...
2026-05-03 00:00:41.845 Error: Netatmo : Invalid/no data received (refresh tokens)... HTTP/2 504
2026-05-03 00:00:41.846 Status: Netatmo : Retry LOGIN within 45 min.
2026-05-03 00:00:41.846 Debug: Netatmo : Next RefreshToken time Block Sat May 2 23:28:42 2026
Error: Netatmo hardware (2) thread seems to have ended unexpectedly
Witch version off Domoticz are you running?
Kind Regards