Netatmo authentication changes Oct 2022

Moderator: leecollings

User avatar
Thuis
Posts: 251
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 »

Hi, yes sorry, i think it is my browser, because when i use my phone to get the new code, i just tried yesterday, with my computer and browser, i just get a blank page nothing happens. When i took my phone and did the same, i got the i,accept button, and it works again. So probably there is something wrong on my browser side. But still yes if i put in the code etcetera and i reastart the whole system right away, then the code still works. If i wait a day, then restart, then i need a new code. But it works as long as i do not restart domoticz, or my domoticz pc.
I Love Domoticz ! And the community around it :-)
JaapB
Posts: 16
Joined: Friday 17 February 2023 13:11
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.4
Contact:

Re: Netatmo authentication changes Oct 2022

Post by JaapB »

Just found out that the weekly update and upgrade of the raspberry also causes the login to netatmo to fail again and force into refreshing the token and doe the whole ridle of creating a new password.
sailmich
Posts: 232
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 »

Does the authentication process change again? I'm not able to connect my Netatmo to Domoticz. I'm on domoticz 2024.7 and I just need 20 seconds from getting the <somecode> to update the Netatmo Hardware within domoticz. And I did it many times before with success. I also reset my client id and client secret, same result.
jcb2
Posts: 9
Joined: Wednesday 04 January 2023 7:30
Target OS: Linux
Domoticz version:
Contact:

Re: Netatmo authentication changes Oct 2022

Post by jcb2 »

Hello,
With the last beta the Netatmo token is working again.

BUT it is possible you have need to make and new app !
2024-08-13_10-26-02.png
2024-08-13_10-26-02.png (42.9 KiB) Viewed 1433 times
User avatar
Thuis
Posts: 251
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 it is working again flawlessly thank you, thank you, thank you :-D
I Love Domoticz ! And the community around it :-)
jibenito
Posts: 9
Joined: Thursday 01 February 2024 13:04
Target OS: Linux
Domoticz version:
Contact:

Re: Netatmo authentication changes Oct 2022

Post by jibenito »

It seems that it's working again, at least with the beta... thanks!!
rugspin
Posts: 12
Joined: Tuesday 04 February 2020 23:59
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Netatmo authentication changes Oct 2022

Post by rugspin »

Now, I'm really puzzled. Netatmo was working fine for me throughout the last month. But since I updated to beta build 16212, I does not login at all anymore.
It is asking now for Client ID, Client Secret and there is a login button.

Does anyone know some help to this situation? I kind of don't know which key or token I have to put now to make it work. It looks to me that it is not working with procedure described in the wiki.
I would be glad about any hint.
homeJLB
Posts: 53
Joined: Tuesday 16 October 2018 23:01
Target OS: Raspberry Pi / ODroid
Domoticz version: 2022.2
Contact:

Re: Netatmo authentication changes Oct 2022

Post by homeJLB »

here are the steps to set up your devices:
  • Create an account on Netatmo to get access to device portal and log in
  • Create a new device (App) (or use an existing one) and leave the redirect URI and the webhook URI empty.
  • Use this app in only one single application; you cant use a single app in more than one applications. Create more apps when needed.
  • Press the Save button to store and activate the new app.
  • Do not use the token generator, because this will be done by Domoticz when login there.
  • Note the Client ID and the client secret or use another tab so you can use cut and paste to copy these codes.
  • On the Domoticz hardware page, create a new Netatmo device (or select an existing one.
  • Fill in the client ID and the client password (from the Netatmo device portal of the app you want to use.
  • Select the apropiate scopes for the Netatmo devices you own. You can select more items by holding the control button while selecting the items from the list.
  • Click on New to create a new device or on update to update an existing device.
  • Now, select the device again. When the login button is still gray, please refresh the page in your browser after a view seconds.
  • When it stays disabled you can change the client ID, like adding a character, press enter, remove the extra character, and press enter again. You might also change the scope , but don't forget to undo this change before the netxt step.
  • Press the login button.
  • When you are not logged in on the Netatmo site, a new window will pop upp with the NetAtmo login page.
  • Enter your Netatmo username and password (NOT the client ID and client passworrd!) to login.
  • After you are successfully logged in, a new page will be shown where you see the devices you have selevted by specifying the scope and you will be asked to accept the authorization of these devices.
  • After accepting the authorization, the window will be closed and disappears. This completes the login process
  • Check the logs to see if your device is working.
ninicob93
Posts: 13
Joined: Monday 14 March 2022 15:30
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Netatmo authentication changes Oct 2022

Post by ninicob93 »

Hello everyone. After update 16233 I followed the procedure for connecting to Netatmo. But I still have errors. Can you help me? THANKS
jcb2
Posts: 9
Joined: Wednesday 04 January 2023 7:30
Target OS: Linux
Domoticz version:
Contact:

Re: Netatmo authentication changes Oct 2022

Post by jcb2 »

Hello,
Have youve create a new app in Netatmo ?
ninicob93
Posts: 13
Joined: Monday 14 March 2022 15:30
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Netatmo authentication changes Oct 2022

Post by ninicob93 »

jcb2 wrote: Thursday 05 September 2024 10:08 Hello,
Have youve create a new app in Netatmo ?
Yes.

I've still this error : "Error: Netatmo: cloud data for module [Thermostat] no longer updated (module possibly disconnected)"
homeJLB
Posts: 53
Joined: Tuesday 16 October 2018 23:01
Target OS: Raspberry Pi / ODroid
Domoticz version: 2022.2
Contact:

Re: Netatmo authentication changes Oct 2022

Post by homeJLB »

Do you have remake/rebuild with the changes from today?
Your authentication is ok by looking at your error code
ninicob93
Posts: 13
Joined: Monday 14 March 2022 15:30
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Netatmo authentication changes Oct 2022

Post by ninicob93 »

homeJLB wrote: Thursday 05 September 2024 12:32 Do you have remake/rebuild with the changes from today?
Your authentication is ok by looking at your error code
I am with the latest update but I still cannot recover the data.
homeJLB
Posts: 53
Joined: Tuesday 16 October 2018 23:01
Target OS: Raspberry Pi / ODroid
Domoticz version: 2022.2
Contact:

Re: Netatmo authentication changes Oct 2022

Post by homeJLB »

I did a new install from the last beta.
And using a installation from a family member with only a thermostat the devices are created.
-
Foto 5-09-2024 om 21.47.jpg
Foto 5-09-2024 om 21.47.jpg (124.91 KiB) Viewed 1079 times
-
Foto 5-09-2024 om 21.38.jpg
Foto 5-09-2024 om 21.38.jpg (156.98 KiB) Viewed 1078 times
-
The Error message is still shown but that is for another version.


Kind regards
ninicob93
Posts: 13
Joined: Monday 14 March 2022 15:30
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Netatmo authentication changes Oct 2022

Post by ninicob93 »

homeJLB wrote: Thursday 05 September 2024 21:49 I did a new install from the last beta.
And using a installation from a family member with only a thermostat the devices are created.
-
Foto 5-09-2024 om 21.47.jpg

-

Foto 5-09-2024 om 21.38.jpg

-
The Error message is still shown but that is for another version.


Kind regards
what do you mean by "another version" ? I have the same error messages
User avatar
Thuis
Posts: 251
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 »

Been trying all morning, what ever i do, i get the login page, i accept it but there is always the following in the log.

I get this when i follow the rules on the setup using update existing hardware :

Code: Select all

 024-09-08 10:01:52.288 Status: Netatmo: Use refresh token from database...
2024-09-08 10:01:52.288 Status: Netatmo: Requesting refreshed tokens
2024-09-08 10:01:52.417 Status: Netatmo: Get HomesData Details
2024-09-08 10:01:52.584 Status: Netatmo: Home id Onshuis updated.
2024-09-08 10:01:52.736 Error: Netatmo: cloud data for module [Onshuis] no longer updated (module possibly disconnected)
2024-09-08 10:01:52.740 Error: Netatmo: cloud data for module [Buiten] no longer updated (module possibly disconnected)
2024-09-08 10:01:52.757 Error: Netatmo: cloud data for module [Slaapkamer Zoë] no longer updated (module possibly disconnected)
2024-09-08 10:01:52.767 Error: Netatmo: cloud data for module [Slaapkamer Lara] no longer updated (module possibly disconnected)
2024-09-08 10:01:52.775 Status: Netatmo: HomeStatus parsed
2024-09-08 10:01:52.934 Status: Netatmo: Events Data parsed
2024-09-08 10:01:52.934 Status: Netatmo: Status 1 
When i go back to the hardware again and i select update i get:

Code: Select all

 2024-09-08 10:08:32.667 Status: Netatmo: Worker stopped...
2024-09-08 10:08:32.668 Status: Netatmo: Worker started...
2024-09-08 10:08:37.669 Status: Netatmo: Use refresh token from database...
2024-09-08 10:08:37.669 Status: Netatmo: Requesting refreshed tokens
2024-09-08 10:08:37.820 Error: Netatmo: No access granted, forcing login again (Refresh tokens): invalid_grant 
So i go back to the hardware it says in orange:

Code: Select all

Tokens are invalid or expired; please login to obtain new tokens! 
And i do the whole thing again. I have only a weather station and it IS connected, i can see all modules in my netatmo app.

Version: 2024.7 (build 16233)

Perhaps i let it stay for a while and see what happends. I know the devices are connected, maybe it needs more time? I have no idea. It worked in 16204 with the manual setup.

I do see the bat level sig. level and mac addresses they are being updated. I removed the old netatmo hardware and put in all new, but it is the same.

I reverted back to 16204 for now, and do it manually
I Love Domoticz ! And the community around it :-)
User avatar
Thuis
Posts: 251
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 »

Oh cant go back i see plugin stays the same :-|
I Love Domoticz ! And the community around it :-)
Rob67ert
Posts: 17
Joined: Tuesday 24 December 2019 13:57
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Netatmo authentication changes Oct 2022

Post by Rob67ert »

Did an update today to Version: 2024.7 (build 16242) Build Hash: 5f6693ba9 and get the followong error:
2024-09-08 13:29:05.431 Error: Domoticz(pid:5840, tid:5862('Netatmo')) received fatal signal 11 (Segmentation fault)
2024-09-08 13:29:05.431 Error: siginfo address=0x16d0, address=(nil)
2024-09-08 13:29:08.412 Error: Thread 18 (Thread 0xac7fe200 (LWP 5862)):
2024-09-08 13:29:08.413 Error: #0 __waitpid (options=0, stat_loc=0xac7fc670, pid=6001) at ../sysdeps/unix/sysv/linux/waitpid.c:30
2024-09-08 13:29:08.413 Error: #1 __waitpid (pid=6001, stat_loc=0xac7fc670, options=0) at ../sysdeps/unix/sysv/linux/waitpid.c:25
2024-09-08 13:29:08.413 Error: #2 0x006eadea in dumpstack_gdb(bool) ()
2024-09-08 13:29:08.413 Error: #3 0x006eb240 in signal_handler(int, siginfo_t*, void*) ()
2024-09-08 13:29:08.413 Error: #4 <signal handler called>
2024-09-08 13:29:08.413 Error: #5 raise (sig=11) at ../sysdeps/unix/sysv/linux/raise.c:50
2024-09-08 13:29:08.413 Error: #6 <signal handler called>
2024-09-08 13:29:08.413 Error: #7 0x008e9a6e in CNetatmo::ParseHomeStatus(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, Json::Value&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&) ()

After that Domoticz webinterface will stop while the service tells me it is running.
Anyone know how I can fix it?
ninicob93
Posts: 13
Joined: Monday 14 March 2022 15:30
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Netatmo authentication changes Oct 2022

Post by ninicob93 »

Thuis wrote: Sunday 08 September 2024 12:14 Oh cant go back i see plugin stays the same :-|
With the last update today 16242 it works !!!
User avatar
Thuis
Posts: 251
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 it does, thanks :-)

Code: Select all

 2024-09-08 15:27:35.670 Status: Netatmo: Use refresh token from database...
2024-09-08 15:27:35.671 Status: Netatmo: Requesting refreshed tokens
2024-09-08 15:27:36.000 Status: Netatmo: Station Data parsed
2024-09-08 15:27:36.000 Status: Netatmo: Weather 1
2024-09-08 15:27:36.000 Status: Netatmo: Get HomesData Details
2024-09-08 15:27:36.138 Status: Netatmo: Home id Onshuis updated.
2024-09-08 15:27:36.299 Status: Netatmo: cloud data for module [Buiten] is now updated again
2024-09-08 15:27:36.311 Status: Netatmo: cloud data for module [Slaapkamer Zoë] is now updated again
2024-09-08 15:27:36.322 Status: Netatmo: cloud data for module [Slaapkamer Lara] is now updated again
2024-09-08 15:27:36.335 Status: Netatmo: HomeStatus parsed
2024-09-08 15:27:36.460 Status: Netatmo: Events Data parsed
2024-09-08 15:27:36.460 Status: Netatmo: Status 1 
I Love Domoticz ! And the community around it :-)
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests