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.2 to 0.8.3

11

deconz.js

@@ -862,2 +862,11 @@ var request = require('request');

//https://github.com/dresden-elektronik/deconz-rest-plugin/wiki/Xiaomi-WXKG01LM
// Event Button Action
// 1000 One initial press
// 1001 One single hold
// 1002 One single short release
// 1003 One single hold release
// 1004 One double short press
// 1005 One triple short press
// 1006 One quad short press
// 1010 One five+ short press
if ([1002,2002,3002,4002,5002].indexOf(state['buttonevent']) >= 0) characteristic.ProgrammableSwitchEvent = 0;

@@ -947,2 +956,4 @@ else if ([1004,2004,3004,4004,5004].indexOf(state['buttonevent']) >= 0) characteristic.ProgrammableSwitchEvent = 1;

if (Object.keys(characteristic).length === 0) return null; //empty response
msg.payload = characteristic;

@@ -949,0 +960,0 @@ return msg;

2

package.json

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

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