node-red-contrib-deconz
Advanced tools
Comparing version 0.8.0 to 0.8.1
@@ -590,3 +590,3 @@ var request = require('request'); | ||
node.items_list.push({ | ||
device_name: prop.name + ' (' + prop.type + ')', | ||
device_name: prop.name + ' : ' + prop.type, | ||
uniqueid: prop.uniqueid, | ||
@@ -772,3 +772,3 @@ meta: prop | ||
if (node.type === "deconz-input") { | ||
// console.log(dataParsed); | ||
console.log(dataParsed); | ||
node.sendState(dataParsed); | ||
@@ -871,2 +871,15 @@ } | ||
if (no_reponse) characteristic.ProgrammableSwitchEvent = "NO_RESPONSE"; | ||
//index of btn | ||
if (state['buttonevent'] >= 1000 && state['buttonevent'] < 2000) { | ||
characteristic.ServiceLabelIndex = 1; | ||
} else if (state['buttonevent'] >= 2000 && state['buttonevent'] < 3000) { | ||
characteristic.ServiceLabelIndex = 2; | ||
} else if (state['buttonevent'] >= 3000 && state['buttonevent'] < 4000) { | ||
characteristic.ServiceLabelIndex = 3; | ||
} else if (state['buttonevent'] >= 4000 && state['buttonevent'] < 5000) { | ||
characteristic.ServiceLabelIndex = 4; | ||
} else if (state['buttonevent'] >= 5000 && state['buttonevent'] < 6000) { | ||
characteristic.ServiceLabelIndex = 5; | ||
} | ||
} | ||
@@ -873,0 +886,0 @@ |
@@ -34,3 +34,3 @@ { | ||
}, | ||
"version": "0.8.0" | ||
"version": "0.8.1" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
794318
2776