NetAtmo weather station and Welcome integration

Avatar
  • updated

I'm so happy about getting my NetAtmo integration working, that I wanted to share it with the rest of you people.


This is the device itself


All you need to do is enter the values for strings in the "Settings" section of the device, and you will immediately get the values from one indoor and one outdoor module (which is the typical starter package setup.)  If you have more stations and/or modules then you can easily access them by just duplicating the existing values under the "Weather Station" query and changing the instance number in their "Token name." 


For example: default indoor temperature value = body.devices[0].dashboard_data.Temperature

indoor temperature value for next weather station = body.devices[1].dashboard_data.Temperature


and for modules:


temperature of first module of first station = body.devices[0].modules[0].dashboard_data.Temperature

secondary module of first station = body.devices[0].modules[1].dashboard_data.Temperature


I've also included a WIP section for the NetAtmo Welcome camera. I have yet to figure out how to track persons per name, since their position in the table is always changing.


Avatar
Joachim O
Quote from Håvard Bjørke Bjørke

Hi 
I dont get the errors, the device is connected, but i dont recieve anny data from the netatmo. 
Would annybody post i sample of the settings, so i could doubblecheck it? 

Br Håvard

Which server version are you running, Håvard?

Avatar

Hi 
I dont get the errors, the device is connected, but i dont recieve anny data from the netatmo. 
Would annybody post i sample of the settings, so i could doubblecheck it? 

Br Håvard

Avatar
Joachim O

Hi Guys,

I'm currently having problems with the Netatmo Template that has been working pretty much flawless on my system for a while. Some weeks ago it stopped working after an update of bOS. I have double checked the client id, secret, username and password. I even tried to use the fresh template without success. I updated to the latest beta 4.6.26 tonight and it seems it's getting a different message than I got on the previous releases.

If i disable and enable the device it states "connected"

If I then use the send function on "weather stations" I get this message:

Devices : 10.12.2019 21:07:04 : Error : Devices\Netatmo : Forbidden (403) GET: /api/getstationsdata?access_token=%0

I guess the 403 is some access denied message or similar...

If I press the send function on "oAuth" I get this message:

Devices : 10.12.2019 21:11:13 : Error : Devices\Netatmo : Error connecting to device.

On previous releases I got this message:

Devices : 07.11.2019 12:35:50 : Error : Devices\Netatmo : Error connecting to device. Content-type   at System.Net.Http.Headers.HttpHeaders.CheckName (System.String name) <0x707728a0 + 0x000fc> in :0 
at System.Net.Http.Headers.HttpHeaders.Add (System.String name, IEnumerable`1 values) <0x707727d0 + 0x0002f> in :0
at System.Net.Http.Headers.HttpHeaders.Add (System.String name, System.String value) <0x70772740 + 0x00053> in :0
at ComfortClick.Http.Driver.HttpDriver+d__10.MoveNext () <0x7073aef0 + 0x00297> in :0

Is it working for you?

Avatar
Rait Lotamois

The Host URL needs to be "https://api.netatmo.com"

In the NetAtmo app, the Redirect URI and Webhook URL fields used should be optional. So just leave them blank. All you need is the client Id and Client secret.

Avatar
Bård-Ove Pedersen

Thanks for posting Rait and Richard

I have tryed to set it up, but getting som errors.

1. In the "Host URL" shall it be "https://api.netatmo.com" ore "https://api.netatmo.com/oauth2/token" ?

2. in the Netatmo app: what should i put into the "Redirect URI" and "Webhook URL" fields ?

Ricardo: Do you have an updated template ?

YS Bård-Ove

Avatar
Ricardo Pinto

What a nice job!!! Well done Rait!


Just deleted the Presence items, which I don't use. And now I'll cross your version with mine, and add some design touches and some minor information, like last values check etc.

But overall, great job.

Thanks for sharing!

Best regards

Avatar
Ricardo Pinto

Thanks Rait!

Before your reply, I got it working.

But I'll check your example to see if I can improve mine also. Will share any details.

Best regards

Avatar
Rait Lotamõis

Hi Ricardo,


I had no idea the upload.ee service expired like that. I've uploaded it again here: https://indome.zendesk.com/hc/et/article_attachments/360036974032/NetAtmo_Template.bos should you still find it useful.

Best regards

Avatar
Ricardo Pinto

Boom! I think I got it!


Will share any details soon...


Best regards