forked from Mirrors/node-red-contrib-mi-devices
fix(switch): change model from magnot to switch
This commit is contained in:
@@ -50,7 +50,7 @@
|
||||
}
|
||||
});
|
||||
$("#node-input-gateway").change(function () {
|
||||
changeGateway("magnet");
|
||||
changeGateway("switch");
|
||||
});
|
||||
|
||||
$("#node-input-output").change(function () {
|
||||
|
||||
@@ -19,7 +19,6 @@ module.exports = function(RED) {
|
||||
node.on('input', function(msg) {
|
||||
// var payload = JSON.parse(msg);
|
||||
var payload = msg.payload;
|
||||
|
||||
if (payload.sid == node.sid && ["switch", "sensor_switch.aq2"].indexOf(payload.model) >= 0) {
|
||||
var data = payload.data;
|
||||
miDevicesUtils.setStatus(node, data);
|
||||
|
||||
Reference in New Issue
Block a user