UNPKG

node-red-contrib-meross

Version:

This provides nodes for controlling Meross devices.

313 lines 4.57 kB
[ { "id": "88f87bae.10d938", "type": "inject", "z": "2f4bfaac9dda89f1", "name": "Query", "props": [ { "p": "payload" } ], "repeat": "", "crontab": "", "once": true, "onceDelay": 0.1, "topic": "", "payloadType": "date", "x": 250, "y": 100, "wires": [ [ "f7696f8c.ae16c" ] ] }, { "id": "5b5e94ca.a0c614", "type": "inject", "z": "2f4bfaac9dda89f1", "name": "Off", "props": [ { "p": "payload" } ], "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "topic": "", "payload": "false", "payloadType": "bool", "x": 90, "y": 80, "wires": [ [ "960c0f9805534d23" ] ] }, { "id": "75569f63.2ef028", "type": "change", "z": "2f4bfaac9dda89f1", "name": "On/Off", "rules": [ { "t": "set", "p": "topic", "pt": "msg", "to": "0/On", "tot": "str" }, { "t": "set", "p": "payload", "pt": "msg", "to": "payload", "tot": "jsonata" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 250, "y": 60, "wires": [ [ "f7696f8c.ae16c" ] ] }, { "id": "f7696f8c.ae16c", "type": "smartplug-control", "z": "2f4bfaac9dda89f1", "confignode": "b8b2773d1593e493", "name": "", "ip": "192.168.123.123", "x": 390, "y": 80, "wires": [ [ "411dc30e7c327e89" ] ] }, { "id": "316fa677705073fb", "type": "inject", "z": "2f4bfaac9dda89f1", "name": "On", "props": [ { "p": "payload" } ], "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "topic": "", "payload": "true", "payloadType": "bool", "x": 90, "y": 40, "wires": [ [ "055dc83e29582ff5" ] ] }, { "id": "411dc30e7c327e89", "type": "debug", "z": "2f4bfaac9dda89f1", "name": "State", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "true", "targetType": "full", "statusVal": "", "statusType": "auto", "x": 550, "y": 80, "wires": [] }, { "id": "690645f6a165759c", "type": "smartgarage-control", "z": "2f4bfaac9dda89f1", "confignode": "b8b2773d1593e493", "name": "", "ip": "192.168.123.147", "channel": "0", "x": 400, "y": 200, "wires": [ [ "1a65295e6884fe1a" ] ] }, { "id": "b1b4ee832457ef9c", "type": "inject", "z": "2f4bfaac9dda89f1", "name": "Query", "props": [ { "p": "payload" } ], "repeat": "", "crontab": "", "once": true, "onceDelay": 0.1, "topic": "", "payloadType": "date", "x": 250, "y": 220, "wires": [ [ "690645f6a165759c" ] ] }, { "id": "ba660bf245905d33", "type": "inject", "z": "2f4bfaac9dda89f1", "name": "Close", "props": [ { "p": "payload" } ], "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "topic": "", "payload": "false", "payloadType": "bool", "x": 90, "y": 200, "wires": [ [ "8cb07af171c754b8" ] ] }, { "id": "8cb07af171c754b8", "type": "change", "z": "2f4bfaac9dda89f1", "name": "Open/Close", "rules": [ { "t": "set", "p": "topic", "pt": "msg", "to": "0/Open", "tot": "str" }, { "t": "set", "p": "payload", "pt": "msg", "to": "payload", "tot": "jsonata" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 230, "y": 180, "wires": [ [ "690645f6a165759c" ] ] }, { "id": "66038af516391d44", "type": "inject", "z": "2f4bfaac9dda89f1", "name": "Open", "props": [ { "p": "payload" } ], "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "topic": "", "payload": "true", "payloadType": "bool", "x": 90, "y": 160, "wires": [ [ "8cb07af171c754b8" ] ] }, { "id": "1a65295e6884fe1a", "type": "debug", "z": "2f4bfaac9dda89f1", "name": "State", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "true", "targetType": "full", "statusVal": "", "statusType": "auto", "x": 550, "y": 200, "wires": [] }, { "id": "055dc83e29582ff5", "type": "junction", "z": "2f4bfaac9dda89f1", "x": 180, "y": 40, "wires": [ [ "75569f63.2ef028" ] ] }, { "id": "960c0f9805534d23", "type": "junction", "z": "2f4bfaac9dda89f1", "x": 180, "y": 80, "wires": [ [ "75569f63.2ef028" ] ] }, { "id": "b8b2773d1593e493", "type": "meross-config", "name": "Sample", "key": "abcdef01234567890abcdef01234567890" } ]