Socket
Socket
Sign inDemoInstall

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.11.2 to 0.11.3

8

nodes/in.js

@@ -37,3 +37,3 @@ module.exports = function(RED) {

setTimeout(function () {
node.sendState(deviceMeta);
node.sendState(deviceMeta,true);
}, 1500); //we need this timeout after restart of node-red (homekit delays)

@@ -96,3 +96,3 @@ } else {

sendState(device) {
sendState(device,force=false) {
var node = this;

@@ -103,4 +103,4 @@ device = node.getState(device);

//filter output
if ('onchange' === node.config.output && device.state[node.config.state] === node.oldState) return;
if ('onupdate' === node.config.output && device.state['lastupdated'] === node.prevUpdateTime) return;
if (!force && 'onchange' === node.config.output && device.state[node.config.state] === node.oldState) return;
if (!force && 'onupdate' === node.config.output && device.state['lastupdated'] === node.prevUpdateTime) return;

@@ -107,0 +107,0 @@ //outputs

@@ -52,2 +52,6 @@ var request = require('request');

}
case 'deconz_payload':
payload = node.payload;
break;
case 'object':

@@ -74,3 +78,3 @@ case 'homekit':

case 'on':
payload = payload && payload != '0'?true:false;
payload = payload && payload !== '0'?true:false;
break;

@@ -77,0 +81,0 @@

@@ -41,3 +41,3 @@ {

},
"version": "0.11.2"
"version": "0.11.3"
}

Sorry, the diff of this file is not supported yet

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