Netatmo Weather Station plugin

I installed all of the files from this thread.

The triigger and notification functionality for the following children devices do not work. I was able to set up triggers; however, no alerts were generated when those events occurred.
a. CO2
b. Noise
c. Pressure

The new icon functionality is working great.

Using Vera 3 with firmware 1.5.622.
Netatmo configuration: One (1) Indoor Module, one (1) Outdoor Module, and two (2) add-on modules.

Thank you so much for this feedback, even though it is not good news! This is what beta-testing is all about, of course.

These are the ‘GenericSensor’ devices for which there is no specific UPnP service. I am using the Vera-supplied service definition file, but I had my doubts about it. There’s clearly something I don’t understand about triggers (which I use) and notifications (which, to date, I don’t). It’s somewhat surprising that the UI for setting these up seems all quite correct, but the actual events don’t get detected (although, we are talking about Vera!).

I will post a request to those more technically aware of the issues in this area and hope to fix this soon. Progress in small steps.

Do you prefer the Netatmo-style icons? I might make them the default.

Beta 1.2 file changes attached - note that these updates should be applied AFTER installing the complete Beta 1.1 files.

This fixes:

[ul][li]alerts and notifications for pressure, noise, and CO[sub]2[/sub] (I hope)
(for those who like to gloat, it was the wrong serviceId in the JSON file!)
[/li]
[li]a possibly invalid value in some child CalibrationOffset variables, causing sensor updates to fail
(only apparent on newly-created child devices)[/li][/ul]

Do tell me that this now works ok!

I prefer the Netatmo-style icons for this plug-in.

I loaded the four new files. I am now receiving notifications for CO2, pressure and noise. Thanks for the fix.

Excellent news, and very speedy. I’ll add you to the list of beta test collaborators on the App Store if thats ok. Feel free to add a review there too!

Don’t hesitate to highlight any problems or ideas for improvement.

Thanks again.

Something new I just noticed that is a bit troublesome. The triggers I created for CO2, Noise, and Pressure are generating notifications at exactly 10 minute intervals even though the CO2 level, Noise level, and pressure level remain above or remain below their respective trigger level.

More than troublesome… truly dysfunctional.
The 10 minute interval is every update of the measurement.

I’ll polish up that email to the experts.

You should compare values to existing state before you do a
luup.variable_set.

As I recall there is also an option in the JSON file for the eventlist that indicates if it supports generating an event every time you set the variables … or just when the trigger first becomes true. But I can’t find the documentation for it right now …

I had a problem with “Lua startup failed” on my install. I had added the variableContainer and GoogleCalendar plugins to try and make sure I had the correct prerequisites in place, but that did not work. I noticed “dataMine” at the signature of akbooer so I added that plugin. Once I did that, the Netatmo piece worked.
Just thought this might help someone else.

Thanks for a great plugin!!

[quote=“RichardTSchaefer, post:89, topic:176667”]You should compare values to existing state before you do a
luup.variable_set.[/quote]
But if, say, we have a rising pressure then you want to update the CurrentValue variable even if it has surpassed a trigger threshold (and I don’t know how you’d find that out). There may even be multiple threshold set on one variable. Perhaps I miss your meaning?

As I recall there is also an option in the JSON file for the eventlist that indicates if it supports generating an event every time you set the variables ... or just when the trigger first becomes true. But I can't find the documentation for it right now ...

Now THAT would fit the bill - I will search harder!

Thanks.

[quote=“mpenda, post:90, topic:176667”]I had a problem with “Lua startup failed” on my install. I had added the variableContainer and GoogleCalendar plugins to try and make sure I had the correct prerequisites in place, but that did not work. I noticed “dataMine” at the signature of akbooer so I added that plugin. Once I did that, the Netatmo piece worked.
Just thought this might help someone else.[/quote]

Certainly worth reminding: the basic install ships without a JSON module. I use ‘json-dm’ by default because every right-minded person should have dataMine installed. :smiley:

There is a settable variable under the Advanced tab of the Netatmo module, ‘jsonLibrary’, which allows you to select another. GoogleCalendar has a plain ‘json’ module, so setting it to that would have worked. I’ll bundle a JSON module with the next App Store release… I was just trying to save space. The configuration information is described on the first post of this thread.

VariableContainer is not used by this plugin.

Thanks for a great plugin!!

Thanks for the vote of confidence (don’t try using pressure, noise, or CO[sub]2[/sub] triggers or notifications yet!).

Certainly puzzled the experts for a bit. However, this may fix the problem - I have done limited testing and it seems promising.

Let me know, please!

After uploading the three new files to my Vera 3, the same issue as before exists. The triggers for CO2, Noise, and Pressure are generating notifications at exactly 10 minute intervals even though the CO2 level, Noise level, and pressure level remain above or remain below their respective trigger level.

Hmmmmm, sorry about that, but that’s not my experience. Seems to be working for me. I wonder what’s different?

You’re sure the uploads worked? I’ll check that I posted the right files! That’s all that I can think of right now.

I transcribed information from the “My Alerts” Tab in UI5 and the “VeraAlerts Plugin” and “Vera Alerts Android App” to illustrate what I am observing for a CO2 device. The pressure and noise devices are exhibiting similar behavior. The transcribed information is in the attached file. Hope this may shed some insight as to what is happening.

Did you reload vera after uploading the new files?

  • Garrett

Yes, I checked “Restart Luup after upload”. I also pressed the Reload button several times since then.

The System Monitor Plug-in indicates the following:

Last CMH Reboot: 22:01:47 Wed 25 Sep 2013
Last Vera Restart: 22:06:10 Wed 25 Sep 2013
Last Luup Restart: 22:54:43 Wed 25 Sep 2013

I don’t use either of the apps that you mention, but have just been looking at the basic event notification and trigger functionality. However, your UI5 transcript appears to show the problem.

Two things:

[ol][li]What is the value of the ‘Version’ variable under the Advanced tab of the Netatmo master plugin device?[/li]
[li]Can you download from Vera ‘D_NetatmoCO2.json’ and PM me the file (or post) ?/li][/ol]

Thanks.

Q1: What is the value of the ‘Version’ variable under the Advanced tab of the Netatmo master plugin device?
A1: 2013.09.23 @akbooer

Q2: Can you download from Vera ‘D_NetatmoCO2.json’ and PM me the file (or post) ?
A2: Yes. File is attached to this reply.