2
0
Files
node-red-contrib-mi-devices/node-red-contrib-xiaomi-configurator/xiaomi-configurator.js
Pierre CLEMENT 5732c80039 feat(gateway): allow to change the light color
Major fix on devices, set output only when no payload.sid is present
2018-01-01 20:47:30 +01:00

17 lines
387 B
JavaScript

module.exports = function(RED) {
function XiaomiConfiguratorNode(n) {
RED.nodes.createNode(this, n);
this.name = n.name;
this.deviceList = n.deviceList || [];
this.key = n.key;
this.ip = n.ip;
this.sid = this.sid || n.sid;
var node = this;
}
RED.nodes.registerType("xiaomi-configurator", XiaomiConfiguratorNode);
}