node-red-contrib-deconz
Advanced tools
Comparing version 0.10.2 to 0.10.3
@@ -23,3 +23,2 @@ module.exports = function(RED) { | ||
if (typeof(config.device) == 'string' && config.device.length) { | ||
@@ -33,3 +32,23 @@ node.status({}); //clean | ||
if (deviceMeta) { | ||
if ((/group_/g).test(node.config.device)) { | ||
var groupid = ((node.config.device).split('group_').join('')); | ||
var group = node.server.getGroup(groupid); | ||
node.meta = group | ||
if (group !== false) { | ||
node.send({ | ||
payload:node.meta.state['any_on'], | ||
meta:group, | ||
}); | ||
} else { | ||
node.status({ | ||
fill: "red", | ||
shape: "dot", | ||
text: 'no device' | ||
}); | ||
node.cleanTimer = setTimeout(function(){ | ||
node.status({}); //clean | ||
}, 3000); | ||
} | ||
} else if (deviceMeta) { | ||
node.server.devices[node.id] = deviceMeta.uniqueid; | ||
@@ -36,0 +55,0 @@ |
@@ -41,3 +41,3 @@ { | ||
}, | ||
"version": "0.10.2" | ||
"version": "0.10.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
764557
2725