node-red-contrib-deconz
Advanced tools
Comparing version 0.11.2 to 0.11.3
@@ -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
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
900397
2789