Skip to content

Commit

Permalink
fixed error on deploying after editing the config node
Browse files Browse the repository at this point in the history
  • Loading branch information
codmpm committed Apr 3, 2017
1 parent d39498a commit 7e06674
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 10 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
### 0.2.1
* fixed error on deploying after editing the config node

### 0.2.0
* added online node
* only controls shown regarding room/category on node editing
Expand Down
23 changes: 14 additions & 9 deletions loxone/loxone.js
Original file line number Diff line number Diff line change
Expand Up @@ -403,16 +403,20 @@ module.exports = function (RED) {

var node = RED.nodes.getNode(theNode.id);

node.status({
fill: (online) ? 'green' : 'yellow',
shape: 'dot',
text: (online) ? 'online' : 'offline'
});
if (node) {
node.status({
fill: (online) ? 'green' : 'yellow',
shape: 'dot',
text: (online) ? 'online' : 'offline'
});

node.send({
payload: online
});
}

node.send({
payload: online
});
}

});

}
Expand Down Expand Up @@ -523,4 +527,5 @@ module.exports = function (RED) {
RED.nodes.registerType('loxone-online', LoxoneOnlineNode);


};
}
;
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "node-red-contrib-loxone",
"version": "0.2.0",
"version": "0.2.1",
"description": "Connecting the Loxone Miniserver to node-red via Websocket API",
"license": "MIT",
"keywords": [
Expand Down

0 comments on commit 7e06674

Please sign in to comment.