When the sensor is switched off the value of my sensor ‘homeduino-generic-sensor1.WW-VL’ gets ‘null’ and pimatic reports the following error every minute.
debug [pimatic]: Error: Expected variable homeduino-generic-sensor1.WW-VL to have a numeric value.
at /home/pi/pimatic-app/node_modules/pimatic/lib/variables-ast-builder.coffee:111:21
at tryCatcher (/home/pi/pimatic-app/node_modules/pimatic/node_modules/bluebird/js/main/util.js:26:23)
at Promise._settlePromiseFromHandler (/home/pi/pimatic-app/node_modules/pimatic/node_modules/bluebird/js/main/promise.js:507:31)
at Promise._settlePromiseAt (/home/pi/pimatic-app/node_modules/pimatic/node_modules/bluebird/js/main/promise.js:581:18)
at Async._drainQueue (/home/pi/pimatic-app/node_modules/pimatic/node_modules/bluebird/js/main/async.js:128:12)
at Async._drainQueues (/home/pi/pimatic-app/node_modules/pimatic/node_modules/bluebird/js/main/async.js:133:10)
at Async.drainQueues (/home/pi/pimatic-app/node_modules/pimatic/node_modules/bluebird/js/main/async.js:15:14)
at process._tickDomainCallback (node.js:459:13)
{
"id": "homeduino-generic-sensor1",
"name": "Temp2",
"class": "HomeduinoRFGenericSensor",
"protocols": [
{
"name": "generic",
"options": {
"id": 1000
}
}
],
"attributes": [
{
"name": "WW-VL",
"type": 11,
"decimals": 1,
"baseValue": 0,
"label": "WW-VL",
"acronym": "VL",
"unit": "°C"
},
{
"name": "WW-RL",
"type": 10,
"decimals": 1,
"baseValue": 0,
"label": "WW-RL",
"acronym": "RL",
"unit": "°C"
},
{
"name": "battery",
"type": 1,
"decimals": 1,
"baseValue": 0,
"label": "Batt",
"acronym": "B",
"unit": "V"
}
],
"xAttributeOptions": [
{
"name": "WW-VL",
"displaySparkline": false
},
{
"name": "WW-RL",
"displaySparkline": false
},
{
"name": "battery",
"displaySparkline": false,
"hidden": false
}
]
}