SmartThings Community

[MODIFIED] Netatmo Weather Station

weather
smartapp_weather
dth_sensors
dth_weather
netatmo

#1

I have modified existing Netatmo Connect smartapp and DTH.

  • Added support for Sound Pressure Level capability to basestation
  • Added support for windmodule to the smartapp
  • Added support for min/max temp to the smartapp
  • Added min/max temp to the base, outdoor and additional module
  • Added “Carbon Dioxide Measurement” capability to additional module and basestation
  • Added current units in use to the rain module
  • Created new DTH for the Windmodule
  • Updated layout for the Basestation, outdoor module, additional module and rain module
  • Fixes to refresh button
  • Other minor tweaks and mods
  • Added Battery status
  • Added support for favourites (Thanks to @dudz40) You can now select your favourite stations and add them as modules in Smartthings
  • Added support for temperature trend
  • Added support for pressure trend
  • Added last update time, thanks to @SBDOBRESCU
  • Added support for Netatmo Health Coach, see code by @SBDOBRESCU at the bottom of the post
  • Added option to select 12/24 hour clock
  • Added Max Wind timestamp

Basestation:

Rainmodule:

Additional module:

Outdoormodule:

Windmodule:

The smartapp can be found here:

And the DTH:

How to install:

Go to this link and login to start creating a Netatmo DEV app:

In the “Create an application” page, just fill in what you like for the app name and description e.g. smartthings connect, agree to the terms of use and hit the create button.

In your newly created app, note down the clientID and secret, we’ll need it later in smart things

Now log into the SmartThings IDE:

https://account.smartthings.com

Click into “My SmartApps” and then click “New SmartApp”

Click “From Code”, paste in the code from Github then click “create” Then click on “Save” and then “publish” —> “For Me”

Click on the “App Settings” button and click “settings” on the next page.

Enter the “ClientID” and “Secret” that you obtained previously when you created your Netatmo DEV app.
Also enter “serverUrl”, I use https://graph.api.smartthings.com/ even if I am on the UK servers. If you are having problems later on, try the adress your hub is connected to. If this adress is not correct you might get a “webview missing on device” error on your Android device

NA01: https://graph.api.smartthings.com/
NA02: https://graph-na02-useast1.api.smartthings.com/
NA04: https://graph-na04-useast2.api.smartthings.com/
EU01: https://graph-eu01-euwest1.api.smartthings.com/
AP02: https://graph-ap02-apnortheast2/

Click on OAuth and enable it, press “Update” at the bottom of the page

Go back in to the online ST IDE and in the “My Device Handlers” section, click on the “Create New Device Handler”
Click “From Code”, paste in the code from the DTH from Github then click “create”. Click on “Save” and then “publish” —> “For Me”. Repeat for all DTH

On your mobile, navigate to the martketplace ‐> my apps, and you can now install the “netatmo connect” smart app

Now you should be able to use the app as intended to install your netatmo weather station devices into ST

Health Coach

@SBDOBRESCU have addded support for the Netatmo Health Coach.
Install the Smartapp and DTH from here:

Connect…
https://raw.githubusercontent.com/sbdobrescu/SmartThings/master/HealthyCoach.groovy

DTH…

https://raw.githubusercontent.com/sbdobrescu/SmartThings/master/devices/HealthyCoachDTH.groovy


Netatmo Connect Credentials Error
Is Netatmo Integration ever going to be fixed?
Updates to SmartThings Mobile App Marketplace
Netatmo for UK users (Temp workaround)
Netatmo Fails Since Meltdown
Can't Integrate Netatmo Weather Station and SmartThings
Installing Netatmo Connect SmartApp Code
Netatmo Urban Weather Station
Loud noise sensor
[ON HOLD] Netatmo Thermostat Device Handler & Connect App
Netatmo for UK users (Temp workaround)
#2

bug apiGet: Call failed org.apache.http.conn.HttpHostConnectException: Connect to api.netatmo.com:443 [api.netatmo.com/195.154.179.238, api.netatmo.com/195.154.172.147] failed: Connection refused

That’s my log output. Just sits on the connect to netatmo screen.


#3

Did you already have Netatmo installed on Smartthings, or did you do a fresh install?


(Jason) #4

Still running into this error after logging in and accepting 3rd party integration

{“error”:true,“type”:“java.lang.reflect.UndeclaredThrowableException”,“message”:“An unexpected error occurred.”}

Any ideas?


#5

Did you just update your existing netatmo connect installation, or did you do a clean install?


(Jason) #6

Clean install.


#7

Ok, I will try to make some install instructions later today for new installations.

If you want, you can have a look at this thread:


#8

@the2352 and @MacBenTosh I have updated the first post with installation instructions


#9

Does it matter that we are in the US?


(Jason) #10

Still running into same issues. Clean install, followed install instructions - ideas?


#11

I dont know if this will work in the US. You guys have official integration, we in the UK don’t.

In the US you have different shards for your IDE. Modify the instructions and use your shard when installing the smartapp and DTH. Also try to use your shard in the settings. Make sure you install the app from “my apps” in marketplace, not the official one. Also make sure that you are on the latest version from github, I made some bug fixes yesterday.

Where in the process are you receiving error messages?


#12

followed it to the letter but I get a java error


#13

Where in the process do you get the error? Screenshot?


(Jason) #14

I receive the error after logging in to my Netatmo account and accepting the 3rd party application integration.


#15

So this is just after entering your Netatmo credentials, logging in, then pressing “Yes” to accept the integration?

I just did a clean install and did not receive any error messages.

Did you try the different addresses in the “serverUrl” field in the settings? You might even have another adress than the two listed in the instructions that you use to log in to IDE. Try them all if you have not already, and make sure your client ID and secret are correct and that Oauth is enabled in the settings.

Can you also have live logging open and see if there is any additional messages there when you try it.


(Pablo Valenzuela) #16

Hi!

Any chance of you updating this to also support netatmo thermostat?


#17

Sorry, I don’t think I have the time or skills to do this at the moment.


(EinarS) #18

Works like a charm, dont have the wind module, but the rest works fine.


(Pablo Valenzuela) #19

I was wondering about the thermostat which is not included :frowning:


#20

If I ever get the thermostat I will have a look at it, but at the moment I will focus on the weatherstation