feat(gateway): allow to change the light color
Major fix on devices, set output only when no payload.sid is present
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
defaults: {
|
||||
name: {value: ""},
|
||||
ip: {value: ""},
|
||||
sid: {value: ""},
|
||||
deviceList: {value:[{ sid:"", desc:"", model:"plug"}]},
|
||||
key: {value: ""}
|
||||
},
|
||||
@@ -92,6 +93,10 @@
|
||||
<label for="node-config-input-ip"><i class="icon-tag"></i> IP address (v4 or v6)</label>
|
||||
<input type="text" id="node-config-input-ip" placeholder="IP">
|
||||
</div>
|
||||
<div class="form-row">
|
||||
<label for="node-input-sid"><i class="icon-tag"></i> SID (optional)</label>
|
||||
<input type="text" id="node-input-sid" placeholder="sid">
|
||||
</div>
|
||||
<div class="form-row">
|
||||
<label for="node-config-input-key"><i class="fa fa-ticket"></i> Key/Password</label>
|
||||
<input type="text" id="node-config-input-key" placeholder="Key">
|
||||
|
||||
@@ -6,6 +6,7 @@ module.exports = function(RED) {
|
||||
this.deviceList = n.deviceList || [];
|
||||
this.key = n.key;
|
||||
this.ip = n.ip;
|
||||
this.sid = this.sid || n.sid;
|
||||
|
||||
var node = this;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user