Netatmo authentication changes Oct 2022

Moderator: leecollings

dlube
Posts: 29
Joined: Tuesday 31 March 2020 19:29
Target OS: -
Domoticz version:
Location: France

Re: Netatmo authentication changes Oct 2022

Post by dlube »

If a dev knows how to change the code, I can test it with my Netatmo account.
Raspbian Buster on Raspberry pi 3 B+ Domoticz Version: 2023.2 (build 15474)
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,
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
User avatar
waltervl
Posts: 5148
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 »

Changes are being discussed on GitHub. https://github.com/domoticz/domoticz/issues/5766
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: 9
Joined: Wednesday 04 January 2023 7:30
Target OS: Linux
Domoticz version:
Contact:

Re: Netatmo authentication changes Oct 2022

Post 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 ...
ccaru
Posts: 49
Joined: Tuesday 05 March 2019 16:58
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Netatmo authentication changes Oct 2022

Post 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.
RFXCom, Somfy RTS, 433Mhz Lighting, Evohome, Smart watering via Netatmo, solenoid valves, soil humidity sensors, Airthings Radon via bluetooth, Marley heat recovery fresh air units, Blue Iris, Alexa via DA Bridge.
User avatar
waltervl
Posts: 5148
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 »

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.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
User avatar
kiddigital
Posts: 435
Joined: Thursday 10 August 2017 6:52
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Netatmo authentication changes Oct 2022

Post 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.
One RPi with Domoticz, RFX433e, aeon labs z-wave plus stick GEN5, ha-bridge 5.4.0 for Alexa, Philips Hue Bridge, Pimoroni Automation Hat
One RPi with Pi foundation standard touch screen to display Dashticz
ccaru
Posts: 49
Joined: Tuesday 05 March 2019 16:58
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Netatmo authentication changes Oct 2022

Post 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.
RFXCom, Somfy RTS, 433Mhz Lighting, Evohome, Smart watering via Netatmo, solenoid valves, soil humidity sensors, Airthings Radon via bluetooth, Marley heat recovery fresh air units, Blue Iris, Alexa via DA Bridge.
User avatar
kiddigital
Posts: 435
Joined: Thursday 10 August 2017 6:52
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Netatmo authentication changes Oct 2022

Post by kiddigital »

Try Beta build 15535 (and up).
One RPi with Domoticz, RFX433e, aeon labs z-wave plus stick GEN5, ha-bridge 5.4.0 for Alexa, Philips Hue Bridge, Pimoroni Automation Hat
One RPi with Pi foundation standard touch screen to display Dashticz
User avatar
waltervl
Posts: 5148
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 »

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

Code: Select all

http://localhost/netatmo
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....)
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: 9
Joined: Wednesday 04 January 2023 7:30
Target OS: Linux
Domoticz version:
Contact:

Re: Netatmo authentication changes Oct 2022

Post by jcb2 »

Hello,
Now it is ready for me.
Many thanks for dev dreamteam !
User avatar
kiddigital
Posts: 435
Joined: Thursday 10 August 2017 6:52
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Netatmo authentication changes Oct 2022

Post 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?
One RPi with Domoticz, RFX433e, aeon labs z-wave plus stick GEN5, ha-bridge 5.4.0 for Alexa, Philips Hue Bridge, Pimoroni Automation Hat
One RPi with Pi foundation standard touch screen to display Dashticz
ccaru
Posts: 49
Joined: Tuesday 05 March 2019 16:58
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Netatmo authentication changes Oct 2022

Post by ccaru »

Hi! I've downloaded the beta and followed the instructions and everything so far is working great!
Thank you so much!
Claude
RFXCom, Somfy RTS, 433Mhz Lighting, Evohome, Smart watering via Netatmo, solenoid valves, soil humidity sensors, Airthings Radon via bluetooth, Marley heat recovery fresh air units, Blue Iris, Alexa via DA Bridge.
User avatar
waltervl
Posts: 5148
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 »

Wiki https://www.domoticz.com/wiki/Netatmo is now updated with new instructions.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
fjuppe
Posts: 42
Joined: Thursday 14 September 2023 19:32
Target OS: Raspberry Pi / ODroid
Domoticz version: 16341
Location: Stockholm
Contact:

Re: Netatmo authentication changes Oct 2022

Post 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!
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 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
Access Netatmo.png (55.93 KiB) Viewed 3749 times
I'm on Build 2023.2 15535
These are the only devices that show up in Domoticz
Netatmo Devices.png
Netatmo Devices.png (122.03 KiB) Viewed 3749 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.
User avatar
waltervl
Posts: 5148
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 am not sure all Netatmo devices are supported. The integration is not well documented.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
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 »

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.
southmind
Posts: 11
Joined: Wednesday 22 January 2020 10:07
Target OS: Raspberry Pi / ODroid
Domoticz version: 2023.2 -
Location: French Riviera
Contact:

Re: Netatmo authentication changes Oct 2022

Post 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
Version: 2023.2
southmind
Posts: 11
Joined: Wednesday 22 January 2020 10:07
Target OS: Raspberry Pi / ODroid
Domoticz version: 2023.2 -
Location: French Riviera
Contact:

Re: Netatmo authentication changes Oct 2022

Post 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.
Version: 2023.2
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest