Netatmo for UK users (Temp workaround)

Andy,

You will need to modify the Netatmo Smart App and add the Wind Module in there.

The original code is from Brian Steere

I created another version with the Wind Gauge in it (I didn’t want to break the original) You essentially insert the code that reads from the Netatmo device called NAModule2

Insert this code at line 385
case ‘NAModule2’:
log.debug "Wind module"
createChildDevice(“Netatmo Wind”, deviceId, “${detail.type}.${deviceId}”, detail.module_name)
break

Then insert this code at line 546

case ‘NAModule2’:
log.debug "Updating NAModule2 $data"
child?.sendEvent(name: ‘WindAngle’, value: data[‘WindAngle’])
child?.sendEvent(name: ‘WindStrength’, value: data[‘WindStrength’])
child?.sendEvent(name: ‘GustStrength’, value: data[‘GustStrength’])
break;

I’ll publish it on GitHub and send you the link later. Or just edit the original and then save and publish for me.

Jim

Jim,

Ahhh yes the app - I may have got there eventually but you probably saved me days of trial, error and stumbling around :confused: I made the changes but did initially get a failure as ‘Netatmo Wind’ was not in dianoga’s namespace but rectified the entry in your device code and it all sprang into action . . .

Thanks, you are a gent :relaxed:

Cool. I should bite the bullet and modify mine rather than running two apps.

Glad to help. It’s the fact these forums work that and the user base support each other that makes this an ok platform.

Jim

Thanks for this - works perfectly

Jim I modified the code as per the above, did you not have to create a custom device type handler my Wind Gauge still does not show.

Thanks for the workaround, but I have a problem with step 13. When I pick “Netatmo (Connect)” I see error “You are not authorized to perform the requested operation”


I have also added all types of devices for Netatmo from here https://github.com/SmartThingsCommunity/SmartThingsPublic/tree/master/devicetypes/dianoga, but without success.
Аny advice?

Hi, do i need to associate my netatmo devices with the netatmo app on their developers website?

thanks

Yes you need to go in through their developers site and setup the application

That was already done Jim,the question was do I need to associate my netatmo devices on the netatmo development app page, or somewhere else or not at all?

Hello SmartThings community. My first post. Please be gentle with me!

The support chat person Tom pointed me to this topic in order for me to have a go at connecting my Netatmo.

So I am trying to follow the instructions above and get to this line:

I click ‘From Template’ and sure enough there is the Netatmo (connect) entry. But clicking on it doesn’t load in any code at all. Clicking on other templates loads the code, OK but not this one. Am I doing something wrong?

Any pointers would be great!

Many thanks

I re-pasted the url to the code directly from the browser address bar. The address copied from this forum didn’t work for some reason (might be something to do with characted encoding stuff).

So when you change the
https://graph.api.smartthings.com
to
https://graph‐eu01‐euwest1.api.smartthings.com

Paste it first to notepad and copy again from there before pasting to code editor.

Here is the netatmo connect code:
https://raw.githubusercontent.com/SmartThingsCommunity/SmartThingsPublic/master/smartapps/dianoga/netatmo-connect.src/netatmo-connect.groovy

Netatmo Basestation
https://raw.githubusercontent.com/SmartThingsCommunity/SmartThingsPublic/master/devicetypes/dianoga/netatmo-basestation.src/netatmo-basestation.groovy

Netatmo outdoor module
https://raw.githubusercontent.com/SmartThingsCommunity/SmartThingsPublic/master/devicetypes/dianoga/netatmo-outdoor-module.src/netatmo-outdoor-module.groovy¨

Quick edit: I got it working after banging my head against the wall for few months. :smiley:

Select from code and paste text from this page:
https://raw.githubusercontent.com/SmartThingsCommunity/SmartThingsPublic/master/smartapps/dianoga/netatmo-connect.src/netatmo-connect.groovy

No you don’t. You only have to do the application to Netatmo as the first post says.

To Smartthings you have to do three things:
Netatmo connect - My SmartApps
Netatmo base station - My device handler
Netatmo outdoor module - My device handler

Thanks for the responses, now seems to work, just got to connect it to my hive and presence sensors, aka iPhones.

Hi Mikko

After doing all the steps it still shows invalid URL, just want to ask clearly so for the Client ID and Client Secret shall i past that in the code or in the App setting page of the Smartapp page? For the URL, is there more than one i shall replace?

Sorry for asking this stupid questions.

Just put them in the App settings page. Remember also to enable oauth in the app settings page.

Mikko,

Thank you for your reply, I did the as you said insert the client Id and secret in the settings and enabled the oathu however when I get into the app and click on the enter credentials is says invalid.

So you have the smartapp code just like this file
https://raw.githubusercontent.com/SmartThingsCommunity/SmartThingsPublic/master/smartapps/dianoga/netatmo-connect.src/netatmo-connect.groovy
but changed only “https://graph.api.smartthings.com” on line 14 to “https://graph-eu01-euwest1.api.smartthings.com”?

Then you have on app settings page clientId and clientSecret set with the values you got from netatmo api page and you have also enabled OAuth on the page?

Remember to save and publish them (ok, i’m not really sure if you need to republish them after every save).

I had problems with the page that comes after clicking “Tap to enter Credentials.”. It seemed to be a webview so it appeared to me after i tried scrolling and zooming the view. It might be just a coincidence but still worth trying.

Try these and tell me if they help.

By the way: there is a -15% sale on Netatmo’s web shop with code superdad. I just ordered a rain gauge for 58,65€ including shipping.

I’m nearly there on this

I got my secret ID things from the Netatmo developers site

I have the smart app and device handlers all setup - I even setup a device using the handler, thinking the smart app would need to use that to link to

The netatmo app connects, accepts my credentials and then when it goes on the next screen for me to select the devices - it says none to select

Not sure what I’m doing wrong, have done similar in the past with the memo’s so I’know what I’m doing.

Is there an official integration from Samsung / Netatmo ?

Perhaps someone could recap on everything ?

Hi i think the code has changed as the url seems to be a setting now?