[OBSOLETE] Netatmo Weather Station

Hi What did you do to fix the problem, which i am having too

This integration is made for the classic app

@cscheiene I just ordered the wind and rain sensors, how do I integrate them into this app and DTH? I already installed the wind and rain sensors into the IDE via DTH. Thanks.

Aften you have the modules installed and working, go to the Smartthings app (classic) > Automations > SmartApps. Go to the Netatmo Connect app and you should be able to select and install your new modules.

That is what I thought, but didnā€™t want to screw up what I have working. Thanks.

Thanks for the DH. Do you consider updating the DH to the new app?

EDIT: No sooner than I posted this, I went into the Netatmo Connect smart app again, and went down into units and deselected/selected the wind speed units (mph) saved it, and itā€™s in my devices now. Probably a good note to add somewhere in the instructions for adding modulesā€¦ unless I missed it being there :smiley:

So Iā€™ve got an odd issue. I set up the base station and oudoor temp sensor as thatā€™s the first part I bought. Set up the app, but I did ad the device types for the other modules. Iā€™ve since added the rain sensor, and thatā€™s working as expected. I just added the wind module. I had no trouble going into the Netatmo smart app and adding the wind module. Thereā€™s sensor data in the live loggingā€¦ but I have no Netatmo Wind device in the app or IDEā€¦ any idea why? Proof of IDE Logging:

[6b3383ec-5c56-40af-ac19-088811f09d7a](https://graph.api.smartthings.com/ide/logs#6b3383ec-5c56-40af-ac19-088811f09d7a) 5:31:55 PM: debug Updating NAModule2 [GustAngle:302, GustStrength:4, WindAngle:198, WindStrength:1, date_max_wind_str:1550098053, max_wind_angle:210, max_wind_str:15, time_utc:1550100469]

I was having a similar issue, where my logging showed that I had sensor data but there were no devices in the device list.

For me, this was with the Health Coach installation. To fix it, I renamed ā€œmodule_nameā€ in the code with ā€œstation_nameā€ - it seems that is what my API reported back as the name field.

Once I did that, I correctly found my device in the device list.

2 Likes

I did install all how was written in head post of this tread and when I starting app showing logon screen of net atmo, putting credentials and then after authorization passed I then choosing option in 3 party app to allow accessing my station and I am choosing Yes and getting this error message:

ā€œAn unexpected error occurredā€ :confused:

Please ignore it. I enabled app on netatmo web and all works fine. :smiley:

Hi,

I have problems getting the base station to show up in ST but the outdoor module is showing up and working. I have added the device handlers for both the device handler for the base station and the outdoor module. Any ideas?

Maybe I am blind or stupid or both :smiley: I did not find a way how to automate anything trough old ST app neither new one. What I am missing ?

Also what I find disappointing, only what I find is in new ST app automation and can set if this but temperature is only allowed in integer numbers, if you put decimal app cannot accept it. :confused: All of this I did because I want more preciously control heating using NetAtmo temperature sensorā€¦

In old ST app I have no clue how use NetAtmo temp sensor as condition of any action.

Is there way to have CO2 device handler so then could be easily make automation for high level of CO2 and for example Alexa saying ā€œCO2 level is to high.ā€

I try with SmartRules and apparently SmartRules see CO2 sensor. But does not work accurate from some reason. So heaving ST thing as a CO2 sensor device will be 100 % accurate then ?

In classic ST aplication there is no way to make Routine because there is no option for measured something.

In new ST app there is under INDOOR module temperature and relative humidity, unfortunately there is no CO2 level or others like dB level etc.

Ive noticed a bug that if you have an additional module, but it is dead (battery needs replaced), you cant check it in the SmartApp to add it. The STIDE Log shows:
java.lang.NullPointerException: Cannot get property ā€˜Temperatureā€™ on null object @line 581 (doCall)

1 Like

Yes, it also crashes if an existing module loses battery so doesnā€™t update for a whileā€¦with the same error message. This can stop Smartthings from receiving updates from the working modules.

I noticed a change in the code. What does this change fix. I updated and then realized that I couldnā€™t see the differences afterwards.

Edit: Found it on GitHub. ā€œerror handling for offline modulesā€

Yes, this will hopefully keep the smartapp running if a module goes offline. I also think I need to add some error handling if a module is just missing one parameter. I see that things like temperature trend and pressure trend is sometimes missing from the api data, this is created by the Netatmo cloud and not the module itself.

@gcaley @djtucker let me know if the smartapp still works if a module goes offline.

Have you or anyone tried porting this hubitat? I would love to see this. Not sure I am able to do it myself. @cscheiene

@cscheiene & @SBDOBRESCU
Hey all,
Thanks for all the work on this!
Trying to get my Healthy home coach to show up in ST, having some challenges. I only have the home coach (no other netatmo products).
It looks like the SmartApp and device handler are linking to the device according to the logs, but it isnā€™t showing up as a thing in the app. Tried a lot of logging out/in ST app, re-installing SmartApp and DH from IDE and app, etc, but nothing appears to be working. Help would be much appreciated!

Log:
c1cf3ec5-bd78-4d66-bb9a-815041576b02 7:45:10 PM: debug getChildDevices(false), children=0
c1cf3ec5-bd78-4d66-bb9a-815041576b02 7:45:10 PM: debug deviceState=[:]
c1cf3ec5-bd78-4d66-bb9a-815041576b02 7:45:10 PM: debug response = [devices:[[_id:70:ee:50:26:67:be, co2_calibrating:true, dashboard_data:[AbsolutePressure:1019.5, CO2:1937, Humidity:54, Noise:45, Pressure:1020.5, Temperature:25.1, date_max_temp:1566841021, date_min_temp:1566857778, health_idx:2, max_temp:33.5, min_temp:24, time_utc:1566862877], data_type:[Temperature, CO2, Humidity, Noise, Pressure, health_idx], date_setup:1566841020, firmware:45, last_setup:1566841020, last_status_store:1566862886, last_upgrade:1566841025, place:[altitude:9, city:Melbourne, country:US, location:[-80.65511, 28.121756], timezone:America/New_York], reachable:true, station_name:Netatmo-Test, type:NHC, wifi_status:48]], user:[administrative:[feel_like_algo:1, lang:en-US, pressureunit:0, reg_locale:en-US, unit:1, windunit:1], mail:preston@droplit.io]]
c1cf3ec5-bd78-4d66-bb9a-815041576b02 7:45:09 PM: debug API Get: [uri:https://api.netatmo.com, path:/api/gethomecoachsdata, query:[get_favorites:true, access_token:5d6418081073ae000f0762f0|26ee468114fd42e9c08c804e5a68ff70]]
c1cf3ec5-bd78-4d66-bb9a-815041576b02 7:45:09 PM: debug Refreshing data
c1cf3ec5-bd78-4d66-bb9a-815041576b02 7:45:09 PM: debug Polling

Just to clarify, the health coach device isnā€™t showing up in the device list within the smart app. This is the log starting from setting up the SmartApp. There is one error in there ā€œ87fb1574-015f-4e96-97a5-e30ad7a00d4f 8:16:14 PM: debug apiGet: Call failed groovyx.net.http.HttpResponseException: Forbiddenā€ . Maybe that has something to do with it?

Full log:
87fb1574-015f-4e96-97a5-e30ad7a00d4f 8:17:01 PM: debug response = [devices:[[_id:70:ee:50:26:67:be, co2_calibrating:true, dashboard_data:[AbsolutePressure:1019.9, CO2:1843, Humidity:67, Noise:45, Pressure:1020.9, Temperature:25.6, date_max_temp:1566841021, date_min_temp:1566857778, health_idx:2, max_temp:33.5, min_temp:24, time_utc:1566864888], data_type:[Temperature, CO2, Humidity, Noise, Pressure, health_idx], date_setup:1566841020, firmware:45, last_setup:1566841020, last_status_store:1566864889, last_upgrade:1566841025, place:[altitude:9, city:Melbourne, country:US, location:[-80.65511, 28.121756], timezone:America/New_York], reachable:true, station_name:Netatmo-Test, type:NHC, wifi_status:55]], user:[administrative:[feel_like_algo:1, lang:en-US, pressureunit:0, reg_locale:en-US, unit:1, windunit:1], mail:preston@droplit.io]]
87fb1574-015f-4e96-97a5-e30ad7a00d4f 8:17:01 PM: debug getChildDevices(false), children=0
87fb1574-015f-4e96-97a5-e30ad7a00d4f 8:17:00 PM: debug Initialized with settings: [pressUnits:inhg, rainUnits:in, windUnits:mph]
87fb1574-015f-4e96-97a5-e30ad7a00d4f 8:17:01 PM: debug Delete:
87fb1574-015f-4e96-97a5-e30ad7a00d4f 8:17:00 PM: debug Updated with settings: [pressUnits:inhg, rainUnits:in, windUnits:mph]
87fb1574-015f-4e96-97a5-e30ad7a00d4f 8:17:00 PM: debug Refreshing data
87fb1574-015f-4e96-97a5-e30ad7a00d4f 8:17:00 PM: debug Updated with settings: [pressUnits:inhg, rainUnits:in, windUnits:mph]
87fb1574-015f-4e96-97a5-e30ad7a00d4f 8:16:59 PM: debug Initialized with settings: [pressUnits:inhg, rainUnits:in, windUnits:mph]
87fb1574-015f-4e96-97a5-e30ad7a00d4f 8:16:15 PM: debug deviceState=[:]
87fb1574-015f-4e96-97a5-e30ad7a00d4f 8:16:14 PM: debug In refreshToken
87fb1574-015f-4e96-97a5-e30ad7a00d4f 8:16:14 PM: debug apiGet: Call failed groovyx.net.http.HttpResponseException: Forbidden
87fb1574-015f-4e96-97a5-e30ad7a00d4f 8:16:13 PM: debug API Get: [uri:https://api.netatmo.com, path:/api/gethomecoachsdata, query:[get_favorites:true, access_token:1f738b6e-0be6-49d0-a409-d92b93df3ca0]]
87fb1574-015f-4e96-97a5-e30ad7a00d4f 8:16:13 PM: debug Refreshing data
87fb1574-015f-4e96-97a5-e30ad7a00d4f 8:16:13 PM: debug In listDevices
87fb1574-015f-4e96-97a5-e30ad7a00d4f 8:16:11 PM: debug Show the devices page
87fb1574-015f-4e96-97a5-e30ad7a00d4f 8:16:11 PM: debug In authPage
87fb1574-015f-4e96-97a5-e30ad7a00d4f 8:16:08 PM: debug in success
87fb1574-015f-4e96-97a5-e30ad7a00d4f 8:15:50 PM: debug In oauthInitUrl
87fb1574-015f-4e96-97a5-e30ad7a00d4f 8:15:50 PM: debug In oauthInitUrl
87fb1574-015f-4e96-97a5-e30ad7a00d4f 8:15:49 PM: debug Show the login page
87fb1574-015f-4e96-97a5-e30ad7a00d4f 8:15:49 PM: debug In authPage
87fb1574-015f-4e96-97a5-e30ad7a00d4f 8:15:49 PM: debug In authPage
87fb1574-015f-4e96-97a5-e30ad7a00d4f 8:15:44 PM: debug Show the login page
87fb1574-015f-4e96-97a5-e30ad7a00d4f 8:15:44 PM: debug About to create access token.
87fb1574-015f-4e96-97a5-e30ad7a00d4f 8:15:44 PM: debug In authPage

I was able to solve my problem using what @Mario_Giombi suggested above, changing the code in the health coach smart app from module to station throughout the code. Now discovers my device and all is well!