2
0

Added motion, updated icons

This commit is contained in:
Harald Rietman
2017-07-02 18:11:19 +02:00
parent 864d60d2cc
commit db863d8fcb
7 changed files with 180 additions and 4 deletions

View File

@@ -16,7 +16,7 @@ module.exports = function(RED) {
var currentToken = "";
var state = "";
node.status({fill:"yellow", shape:"ring", text:"no key"});
node.status({fill:"yellow", shape:"ring", text:"waiting for key"});
if (this.gateway) {
node.on('input', function(msg) {
@@ -61,7 +61,7 @@ module.exports = function(RED) {
var data = JSON.parse(payload.data)
if (currentToken == "") {
node.status({fill:"yellow", shape:"dot", text:"no key"});
node.status({fill:"yellow", shape:"ring", text:"waiting for key"});
} else if (data.status && data.status == "on") {
node.status({fill:"green", shape:"dot", text:"on"});
state = "on";