I fear that I must changed the installation on the RasPi2, and afterwards not properly synced it with my central directory, and for that matter not with Github. Can't verify that because Raspi2 did crash without proper backup. shame on me
So this morning I did change
"optionLabels": "namespaces:devices_toggleButton:deviceName"
into
"optionLabels": "namespaces:devices_sensorMultilevel:deviceId"
Remaining problem: I do get multi level sensors now, but not the
DeviceId's (e.g.
Solar Energy instead of
PVLogger_74-2)
module.json
Code: Select all
{
"dependencies" : [],
"singleton" : false,
"category" : "devices",
"author" : "Pieter E. Zanstra (click for Recipe)",
"homepage" : "http://forum.z-wave.me/viewtopic.php?f=3424&t=21381",
"icon" : "calculator.png",
"moduleName": "Arithmetic",
"version" : "1.0.0",
"maturity" : "stable",
"repository" : {
"type" : "",
"source" : ""
},
"defaults" : {
"title" : "__title__",
"description" : "__description__",
"formula" : ""
},
"schema" : {
"type" : "object",
"properties" : {
"formula" : {
"type" : "select",
"enum" : ["add", "sub", "mult", "div"],
"required" : true
},
"Title" : {
"type" : "string",
"required" : true
},
"scaleTitle" : {
"type" : "string",
"required" : true
},
"sensor1": {
"field": "enum",
"datasource": "namespaces",
"enum": "namespaces:devices_sensorMultilevel:deviceId",
"required": true
},
"metric1" : {
"type" : "string",
"required" : true
},
"sensor2": {
"field": "enum",
"datasource": "namespaces",
"enum": "namespaces:devices_sensorMultilevel:deviceId",
"required": true
},
"metric2" : {
"type" : "string",
"required" : true
}
},
"required" : true
},
"options" : {
"fields" : {
"formula" : {
"label" : "__formula__",
"optionLabels" : ["a+b", "a-b", "a*b", "a/b"],
"helper" : "__helper__"
},
"Title" : {
"label" : "__sensor-name__",
"placeholder" : "__sensor-name-placeholder__"
},
"scaleTitle" : {
"label" : "__sensor-units__",
"placeholder" : "__sensor-units-placeholder__"
},
"sensor1": {
"label": "__sensor1__",
"type": "select",
"datasource": "namespaces",
"field": "optionLabels",
"optionLabels": "namespaces:devices_sensorMultilevel:deviceId"
},
"metric1" : {
"label" : "__metric1__",
"placeholder" : "__metric1-placeholder__"
},
"sensor2": {
"label": "__sensor2__",
"type": "select",
"datasource": "namespaces",
"field": "optionLabels",
"optionLabels": "namespaces:devices_sensorMultilevel:deviceId"
},
"metric2" : {
"label" : "__metric2__",
"placeholder" : "__metric2-placeholder__"
}
}
}
}
Nota Bene: I think it is not a good idea to select devices by their name. That puts a burden on every module to create unique names if the module allows multiple instances