node-red-contrib-deconz
Advanced tools
Comparing version 0.5.4 to 0.5.5
@@ -539,3 +539,3 @@ var request = require('request'); | ||
var node = RED.nodes.getNode(nodeId); | ||
if (node.server) { | ||
if (node && "server" in node) { | ||
//update server items db | ||
@@ -660,7 +660,7 @@ var serverNode = RED.nodes.getNode(node.server.id); | ||
if (state['open'] !== undefined){ | ||
characteristic.ContactSensorState = !state.open; | ||
characteristic.ContactSensorState = state.open; | ||
} | ||
if (state['vibration'] !== undefined){ | ||
characteristic.ContactSensorState = !state.vibration; | ||
characteristic.ContactSensorState = state.vibration; | ||
} | ||
@@ -667,0 +667,0 @@ |
@@ -34,3 +34,3 @@ { | ||
}, | ||
"version": "0.5.4" | ||
"version": "0.5.5" | ||
} |
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
773754