Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

node-red-contrib-deconz

Package Overview
Dependencies
Maintainers
1
Versions
146
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-red-contrib-deconz - npm Package Compare versions

Comparing version 0.8.0 to 0.8.1

17

deconz.js

@@ -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 @@

2

package.json

@@ -34,3 +34,3 @@ {

},
"version": "0.8.0"
"version": "0.8.1"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc