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.1 to 0.8.2

16

deconz.js

@@ -871,13 +871,7 @@ var request = require('request');

//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;
}
if ([1001,1002,1004,1005,1006,1010].indexOf(state['buttonevent']) >= 0) characteristic.ServiceLabelIndex = 1;
else if ([2001,2002,2004,2005,2006,2010].indexOf(state['buttonevent']) >= 0) characteristic.ServiceLabelIndex = 2;
else if ([3001,3002,3004,3005,3006,3010].indexOf(state['buttonevent']) >= 0) characteristic.ServiceLabelIndex = 3;
else if ([4001,4002,4004,4005,4006,4010].indexOf(state['buttonevent']) >= 0) characteristic.ServiceLabelIndex = 4;
else if ([5001,5002,5004,5005,5006,5010].indexOf(state['buttonevent']) >= 0) characteristic.ServiceLabelIndex = 5;
}

@@ -884,0 +878,0 @@

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

},
"version": "0.8.1"
"version": "0.8.2"
}
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