Page 3 of 21
Re: Netatmo authentication changes Oct 2022
Posted: Friday 04 August 2023 4:54
by dlube
If a dev knows how to change the code, I can test it with my Netatmo account.
Re: Netatmo authentication changes Oct 2022
Posted: Saturday 26 August 2023 10:12
by jcb2
Hello,
I have the same issue with Domoticz 2023.2
Many test with change of password with '!', '/', '+', '-' but always one autentification error : 2023-08-26 10:08:26.134 Error: Météo: No access granted, check username/password...
Any proposal ?
Thanks
Jean-Charles
Re: Netatmo authentication changes Oct 2022
Posted: Saturday 26 August 2023 20:01
by waltervl
Re: Netatmo authentication changes Oct 2022
Posted: Sunday 27 August 2023 13:59
by jcb2
We hope a quick solving, in advance thank to the development dream team.
And one day a local API to have an no-cloud solution ...
Re: Netatmo authentication changes Oct 2022
Posted: Tuesday 05 September 2023 10:18
by ccaru
Has anybody worked out a solution to the Netatmo authentication issue ? I was relying on my netatmo wind, rain, temp sensors for a number of automated tasks and i've lost all that up until i'm able to reconnect.
Re: Netatmo authentication changes Oct 2022
Posted: Tuesday 05 September 2023 10:49
by waltervl
See the github issue, it seems quiet now.
also check topic
viewtopic.php?t=40092 that has a dzvents solution in it for some setups.
Re: Netatmo authentication changes Oct 2022
Posted: Monday 11 September 2023 8:52
by kiddigital
A first Pull Request has been created to address the issue of authentication. Once it makes its way into the Beta, Netatmo owners can start testing it.
Re: Netatmo authentication changes Oct 2022
Posted: Monday 11 September 2023 13:03
by ccaru
Great that it's moving. I had some dzvents scripts that used to work before but I just can't get anything to work anymore. Tried following the new examples but no luck.
Re: Netatmo authentication changes Oct 2022
Posted: Monday 11 September 2023 14:05
by kiddigital
Try Beta build 15535 (and up).
Re: Netatmo authentication changes Oct 2022
Posted: Monday 11 September 2023 14:24
by waltervl
Instructions from the PR:
https://github.com/domoticz/domoticz/pull/5815
step 1:
Setup an App under MyApps in the Netatmo developers portal
The Redirect_URI has to contain
Once configured correctly, the Client_ID and Client_Secret will be generated and shown.
step 2:
In the domoticz hardware setup:
- Create/modify the Netatmo hardware
- the username should contain <client_id>:<client_secret>
- while the password should contain the retrieved <code>
To retrieve the code (a.k.a. authorisation_code), use the browser and type the following URL. Make sure to fill in the CLIENTID with your clientid!
Code: Select all
https://api.netatmo.com/oauth2/authorize?client_id=<YOURCLIENTID>&redirect_uri=http%3A%2F%2Flocalhost%2Fnetatmo&state=teststate&scope=read_station%20read_thermostat%20write_thermostat%20read_homecoach%20read_smokedetector%20read_presence%20read_camera
This URL brings you to the My Netatmo page where you have to identify yourself and are asked for permission to grant access to certain devices and types (based on the scope provided).
After confirmation, your browser will try to redirect you to a page it cannot find so you will get an error. But the URL of that page is visible in the browser and looks like
Code: Select all
http://localhost/netatmo?state=teststate&code=<SOMECODE>
You need to pass this SOMECODE as the password in the domoticz hardware screen.
NOTE:
At the moment, the scopes are fixed to read_station read_thermostat write_thermostat read_homecoach read_smokedetector read_presence read_camera
The <SOMECODE> you retrieved is only valid for a few minutes, so if you take too long and domoticz says (check the logs) it cannot login, retrieve a new code and be a little quicker
Wiki
https://www.domoticz.com/wiki/Netatmo will be updated later (needs way more information I suppose....)
Re: Netatmo authentication changes Oct 2022
Posted: Monday 11 September 2023 18:12
by jcb2
Hello,
Now it is ready for me.
Many thanks for dev dreamteam !
Re: Netatmo authentication changes Oct 2022
Posted: Monday 11 September 2023 20:19
by kiddigital
jcb2 wrote:Hello,
Now it is ready for me.
Many thanks for dev dreamteam !
You mean it works for you? That is great!
What type of Netatmo devices do you have connected?
Re: Netatmo authentication changes Oct 2022
Posted: Tuesday 12 September 2023 10:30
by ccaru
Hi! I've downloaded the beta and followed the instructions and everything so far is working great!
Thank you so much!
Claude
Re: Netatmo authentication changes Oct 2022
Posted: Tuesday 12 September 2023 10:55
by waltervl
Wiki
https://www.domoticz.com/wiki/Netatmo is now updated with new instructions.
Re: Netatmo authentication changes Oct 2022
Posted: Thursday 14 September 2023 19:38
by fjuppe
Hi,
Followed the instructions exactly, upgraded to Beta and I got 6 devices in total from my weather station!
And they even update every 5 minutes!
Thank you!
Re: Netatmo authentication changes Oct 2022
Posted: Sunday 17 September 2023 11:53
by homeJLB
I have made a new installation with docker and follow the instructions.
Now I see my 2 thermostat and the weather station, and they are updated.
But my homecoach and camera's with doorsensors and valve-thermostats and smoke-sensors are not shown?

- Access Netatmo.png (55.93 KiB) Viewed 4390 times
I'm on Build 2023.2 15535
These are the only devices that show up in Domoticz

- Netatmo Devices.png (122.03 KiB) Viewed 4390 times
I'm I doing something wrong? or do I miss something ?
when I log in to the Netatmo website I do have access to all the devices.
Re: Netatmo authentication changes Oct 2022
Posted: Sunday 17 September 2023 21:57
by waltervl
I am not sure all Netatmo devices are supported. The integration is not well documented.
Re: Netatmo authentication changes Oct 2022
Posted: Sunday 17 September 2023 23:16
by homeJLB
but the Netatmo.h uses the scope NETYPE_WEATHER_STATION = 0, NETYPE_HOMECOACH, NETYPE_ENERGY
so I suspect that the homecoach, weather station and thermostat with valves will work.
But for some reason on my setup the homecoach and the valves are not working.
Re: Netatmo authentication changes Oct 2022
Posted: Monday 06 November 2023 18:06
by southmind
fjuppe wrote: ↑Thursday 14 September 2023 19:38
Hi,
Followed the instructions exactly, upgraded to Beta and I got 6 devices in total from my weather station!
And they even update every 5 minutes!
Thank you!
I did the same, but still got "No access granted, check username/password..." with NetAtmo plugin
My domoticz version is 2023.2. Do u mean I have to use the beta version ?
Thanks
Re: Netatmo authentication changes Oct 2022
Posted: Monday 06 November 2023 21:23
by southmind
southmind wrote: ↑Monday 06 November 2023 18:06
fjuppe wrote: ↑Thursday 14 September 2023 19:38
Hi,
Followed the instructions exactly, upgraded to Beta and I got 6 devices in total from my weather station!
And they even update every 5 minutes!
Thank you!
I did the same, but still got "No access granted, check username/password..." with NetAtmo plugin
My domoticz version is 2023.2. Do u mean I have to use the beta version ?
Thanks
Ok I reply to myself. It works with the beta version. Netatmo devices are added to domoticz. (I own only a complete weather station).
It seems ok. Just i got sometime the msg "No access granted, check username/password..." but NetAtmo devices are refreshed.