[OBSOLETE] Netatmo Weather Station

I’m having the same issue. It accepts the Netatmo credentilas (i even get an e-mail from Netamo telling me that someone has logged into my account) and after pressing “Yes” to accept the integration it fails.
From the Logs it looks like “api.netamo.com” is refusing the connection (or not responding in time):

2‎:‎46‎:‎11‎ ‎PM: error org.apache.http.conn.HttpHostConnectException: Connect to api.netatmo.com:443 [api.netatmo.com/195.154.172.147, api.netatmo.com/195.154.179.238] failed: Connection refused @ line 149 
2:‎45‎:‎05‎ ‎PM: debug In oauthInitUrl 
‎2‎:‎45‎:‎03‎ ‎PM: error java.util.concurrent.TimeoutException: Execution time exceeded 20 app execution seconds: 18750651696863 @ line 461 
‎2‎:‎45‎:‎03‎ ‎PM: debug Error: org.apache.http.conn.ConnectTimeoutException: Connect to api.netatmo.com:443 [api.netatmo.com/195.154.172.147, api.netatmo.com/195.154.179.238] failed: connect timed out 
‎2‎:‎44‎:‎43‎ ‎PM: debug In refreshToken 
‎2‎:‎44‎:‎43‎ ‎PM: debug In getDeviceList 
‎2‎:‎44‎:‎43‎ ‎PM: debug In listDevices 
‎2‎:‎44‎:‎40‎ ‎PM: debug Show the login page 
‎2‎:‎44‎:‎40‎ ‎PM: debug About to create access token. 
‎2‎:‎44‎:‎39‎ ‎PM: debug In authPage

I have added the changes made to the official smartapp code, @RudiP @the2352 @MacBenTosh can you please update to the latest version and try again?

Still having issues…receiving the same error I shared above.

12:26:29 PM: error java.util.concurrent.TimeoutException: Execution time exceeded 20 app execution seconds: 86029111354982 @ line 169
12:26:29 PM: debug callback: Call failed org.apache.http.conn.ConnectTimeoutException: Connect to api.netatmo.com:443 [api.netatmo.com/195.154.172.147, api.netatmo.com/195.154.179.238] failed: connect timed out
12:25:46 PM: debug In oauthInitUrl
12:25:46 PM: debug Show the login page
12:25:46 PM: debug In authPage
12:25:44 PM: debug Show the login page
12:25:44 PM: debug In authPage
12:25:37 PM: debug Show the login page
12:25:37 PM: debug In authPage
12:25:03 PM: debug in fail
12:25:03 PM: debug callback: Call failed org.apache.http.conn.HttpHostConnectException: Connect to api.netatmo.com:443 [api.netatmo.com/195.154.172.147, api.netatmo.com/195.154.179.238] failed: Connection refused
dcc5f086-5318-4b0b-a691-430eeb879e20 12:24:11 PM: debug In oauthInitUrl
12:24:10 PM: debug Show the login page
12:24:10 PM: debug In authPage
12:24:01 PM: debug Show the login page
12:24:01 PM: debug About to create access token.
12:24:01 PM: debug In authPage

I’m sorry, I’m just not sure why this works in the UK and not the US, looks like there is some problems with oAuth identification but I cant see whats wrong

and @cscheiene might be this? from https://status.smartthings.com/

Probably, have to wait and see until Smartthings fixes their issues.

@cscheiene would it be possible to add the battery levels to the tiles for the sensors? E.g. Outdoor module, rain gauge, wind gauge etc? That way it should be possible to report on low battery via CoRE or something. Just a suggestion.
Great update by the way

Yes, the battery status should be available from the Netatmo API. It’s on my to do list, I will try to add it when I have the time :smile:

1 Like

@RudiP @the2352 @MacBenTosh I have implemented updates from the official github code. If you want you can give it a try.

By the way, Im seeing the same error messages when doing testing and polling/refreshing very often. Looks like Netatmo is blocking the connection. If I then wait a while and leave it alone, it returns to normal

Eureka! Its working, connected and all my devices are showing in ST (Main, Outdoor, Rain, & Wind). Great work & thank you!

One request - Could you add MPH (miles per hour) for the wind module?

Edit: Cancel the MPH request. I was able to adjust the SmartApp to reflect MPH

1 Like

Great!

I have just added miles per hour and knots in the latest version

Smartapp update?

From post #1

What did you change for mph?

If you are on the latest version, mph can be selected from the smartapp. (same place where you add modules)

So weird the non modified works for me. The modified sticks on login.

I would delete all the dth and smartapp from me. After all the updates I had problems logging in also, just getting errors. Had to start over and do a clean install

My issue is I don’t follow directions well. :stuck_out_tongue:

Thanks so much for your work on this. I’m in the USA and following your directions worked fine for me.

The Basestation and Outside modules show the min & max temperatures in deg C and the Basestation shows pressure in mb. (current temps are displayed in deg F). Is there a way to change those readings to F and inches?

Thanks,

Tom

I have just uploaded a new version of the smartapp with C to F conversion for min/max temp :slight_smile:

Its also possible to convert the pressure, I will add it to my to do list :grin: