Page 21 of 21

Re: Netatmo authentication changes Oct 2022

Posted: Monday 28 April 2025 10:33
by jpcasta
Hello,
I updated Domoticz to 2025.1 beta 16657 and it works again for me!!
Thanks!

Re: Netatmo authentication changes Oct 2022

Posted: Monday 05 May 2025 12:07
by pipiche
Not working for me viewtopic.php?t=43457
and no idea on how to troubleshoot and understand the error message

Re: Netatmo authentication changes Oct 2022

Posted: Wednesday 25 June 2025 10:48
by Piacco
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 :D
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?)

Re: Netatmo authentication changes Oct 2022

Posted: Wednesday 25 June 2025 11:26
by homeJLB
There is a error in the json::throwLogicError, this needs some investigation.

Re: Netatmo authentication changes Oct 2022

Posted: Wednesday 25 June 2025 19:23
by homeJLB
On my system and on my test system it is still running.

I recommend to un-comment the line

Code: Select all

Debug(DEBUG_HARDWARE, "Response sResult %s", sResult.c_str());
and to start with option debug Hardware on to see what is happening wit your setup.

Re: Netatmo authentication changes Oct 2022

Posted: Wednesday 16 July 2025 19:35
by DomoFlits
Hi
I've just received this email from Netatmo:
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
Can anyone comment on whether this will stop the Netatmo devices from working?

Re: Netatmo authentication changes Oct 2022

Posted: Wednesday 16 July 2025 19:49
by homeJLB
We use

Code: Select all

#define NETATMO_API_URI "https://api.netatmo.com/"
So this change in September should not effect the Plugin.

Kind regards

Re: Netatmo authentication changes Oct 2022

Posted: Wednesday 16 July 2025 20:43
by DomoFlits
Thanks for the confirmation

Re: Netatmo authentication changes Oct 2022

Posted: Sunday 31 August 2025 17:18
by dgilbert2
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.

Re: Netatmo authentication changes Oct 2022

Posted: Sunday 31 August 2025 21:09
by homeJLB
Do you mean the Barometer?

This is my log for last year;
Barometer 1.png
Barometer 1.png (179.12 KiB) Viewed 45942 times
only on daily it is more blocky
Barometer 2.png
Barometer 2.png (83.2 KiB) Viewed 45942 times
Is this a problem for you?

Re: Netatmo authentication changes Oct 2022

Posted: Sunday 31 August 2025 21:29
by dgilbert2
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
Screenshot 2025-08-31 202339.png (55 KiB) Viewed 45941 times

Re: Netatmo authentication changes Oct 2022

Posted: Tuesday 02 September 2025 17:42
by MartinAndersson
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
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.

Re: Netatmo authentication changes Oct 2022

Posted: Saturday 04 April 2026 15:43
by homeJLB
waltervl wrote: Wednesday 02 April 2025 14:34 See also the wiki https://wiki.domoticz.com/Netatmo The instructions should be up to date.
Can you update the Supported Devices ?

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)

Re: Netatmo authentication changes Oct 2022

Posted: Saturday 04 April 2026 16:22
by waltervl
homeJLB wrote: Saturday 04 April 2026 15:43
waltervl wrote: Wednesday 02 April 2025 14:34 See also the wiki https://wiki.domoticz.com/Netatmo The instructions should be up to date.
Can you update the Supported Devices ?

Kind Regards

Thanks for reporting, done.

Re: Netatmo authentication changes Oct 2022

Posted: Saturday 04 April 2026 16:45
by homeJLB
waltervl wrote: Saturday 04 April 2026 16:22 Thanks for reporting, done.
Sorry I have forgotten 1

Code: Select all

Advance camera (Only Events),
and

Code: Select all

Welkom camera (Only Events),
Needs to be corrected.

Kind Regards

Re: Netatmo authentication changes Oct 2022

Posted: Saturday 04 April 2026 18:04
by waltervl
And wiki updated ;)

Re: Netatmo authentication changes Oct 2022

Posted: Sunday 03 May 2026 15:10
by Huupke
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:

Code: Select all

CNetatmo::RefreshToken()
→ Json::Value::asString()
→ exception
→ abort()
So what likely happened in my case was:
  • 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:
sqlite3 domoticz.db "SELECT ID,Name,Enabled FROM Hardware;"
Then disable like this when the ID is 12 (replace if it is different):
sqlite3 domoticz.db "UPDATE Hardware SET Enabled=0 WHERE ID=12;"
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.

Re: Netatmo authentication changes Oct 2022

Posted: Sunday 03 May 2026 17:14
by homeJLB
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:

Code: Select all

CNetatmo::RefreshToken()
→ Json::Value::asString()
→ exception
→ abort()
So what likely happened in my case was:
  • 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:
sqlite3 domoticz.db "SELECT ID,Name,Enabled FROM Hardware;"
Then disable like this when the ID is 12 (replace if it is different):
sqlite3 domoticz.db "UPDATE Hardware SET Enabled=0 WHERE ID=12;"
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.
On my system there is no crash,
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
Netatmo had a issue with their servers today.

Witch version off Domoticz are you running?

Kind Regards