Whilst not quite back in the primaeval slime of Luup ignorance, but nearing the edge of the rocks of UPnP having crossed the beach of JSON, I find that I can’t get past the tide-line eventList2 and get notifications (or triggers) to work for a new device with generic sensors…
The device (Netatmo plugin) has several children of different varieties, but the measurements in questions (pressure, noise, CO[sub]2[/sub]) I’ve chosen (perhaps unwisely) to represent as ‘generic’ sensors, there being no UPnP standard.
Only caring about UI5 compatibility (it’s what I’ve got) (and perhaps I’m being cheap) I have several entries in “eventList2” of the device JSON file for a typical child device (pressure in this case) like this:
"eventList2": [
{
"id": 1,
"label": {
"lang_tag": "pressure_goes_above",
"text": "Pressure goes above"
},
"serviceId": "urn:micasaverde-com:serviceId:GenericSensor1",
"argumentList": [
{
"id": 1,
"dataType": "i4",
"name": "CurrentLevel",
"comparisson": ">",
"prefix": {
"lang_tag":"pressure",
"text": "Pressure"
},
"suffix": {},
"HumanFriendlyText": {
"lang_tag": "hft_pressure_goes_above",
"text": "Pressure reported by _DEVICE_NAME_ goes above _ARGUMENT_VALUE_"
}
}
]
},
This seems to generate the requisite information in the “Notifications” tab of the device, and triggers and events can be set up, apparently correctly, in the UI. But triggers or events seem to be generated on every update of the device variable “CurrentLevel”.
I had a suggestion (thanks Richard):
?which sounds promising, although I can’t find anything about it either in existing ‘documentation’ or by scanning some favourite device JSON files.
Any suggestions on what to do next would be most welcome. Thanks.