node-red-contrib-deconz
Advanced tools
Comparing version 0.8.2 to 0.8.3
@@ -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; |
@@ -34,3 +34,3 @@ { | ||
}, | ||
"version": "0.8.2" | ||
"version": "0.8.3" | ||
} |
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
751735
2780