[ { "id": "7ebe1b5be689f3f6", "type": "group", "z": "2591ccce.456d14", "name": "Typical Flow", "style": { "stroke": "#ff3f3f", "fill": "#ffefbf", "label": true, "color": "#ff3f3f" }, "nodes": [ "0628d81b56d37788", "b1a22142c655b3fd", "f487cd8e641f162d", "609d7ec3a4544cb9", "fc3184309b29a8e1", "f08d3f65a2064859", "ffe27fd94fa5ad10", "388864c3da4e9f0f", "4c63b549c837daef", "4bb147077d451f51", "bc77585c641ca1db", "8c9973b21b94d7f1", "ce14c0e64328b21b", "583c7e7e09fd4aed", "6ff6e31adc4bb3fd", "3a9d229819fbba7f", "bc96b73c5816f507", "03cd18a50ea54adb", "f42e16698d64867d", "553e3e22798f98a5", "0fd4893a46cacb53", "ae7c8b3102b242ce", "38e5052861e5f611", "fbe19a1bcb09914d", "6d8cef335fbae663", "a908eaca02db1dde", "06c07a47dd65c614", "89c868ce484aee06", "0d1d927ce3ea488e", "2c8b8988f781f704", "5fdf4bffdf65f9a7", "b3643ca69a97d87c", "5a48d2dee841214d", "116dc8adf2e002c9", "f4c77c6c3aefcbd1" ], "x": 74, "y": 4559, "w": 802, "h": 422 }, { "id": "0628d81b56d37788", "type": "function", "z": "2591ccce.456d14", "g": "7ebe1b5be689f3f6", "name": "State", "func": "var msg_out = {};\n\nmsg_out.payload = flow.get(\"HUMID_power\");\n\nnode.status({ fill: \"green\", shape: \"dot\", text: msg_out.payload });\nsetTimeout(() => {\n node.status({}); //clean status\n}, 3000);\n\nreturn msg_out;", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 275, "y": 4600, "wires": [ [ "03cd18a50ea54adb" ] ], "l": false }, { "id": "b1a22142c655b3fd", "type": "function", "z": "2591ccce.456d14", "g": "7ebe1b5be689f3f6", "name": "Speed", "func": "var msg_out = {};\n\nmsg_out.payload = flow.get(\"HUMID_speed\");\n\nnode.status({ fill: \"green\", shape: \"dot\", text: msg_out.payload });\nsetTimeout(() => {\n node.status({}); //clean status\n}, 3000);\n\nreturn msg_out;", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 275, "y": 4700, "wires": [ [ "bc96b73c5816f507" ] ], "l": false }, { "id": "f487cd8e641f162d", "type": "debug", "z": "2591ccce.456d14", "g": "7ebe1b5be689f3f6", "name": "Liv_Humid_Debug", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "true", "targetType": "full", "statusVal": "", "statusType": "auto", "x": 115, "y": 4780, "wires": [], "l": false }, { "id": "609d7ec3a4544cb9", "type": "link out", "z": "2591ccce.456d14", "g": "7ebe1b5be689f3f6", "name": "Hum_out>>", "links": [ "fbe19a1bcb09914d" ], "x": 835, "y": 4600, "wires": [] }, { "id": "fc3184309b29a8e1", "type": "link out", "z": "2591ccce.456d14", "g": "7ebe1b5be689f3f6", "name": "Hum_out>>", "links": [ "a908eaca02db1dde" ], "x": 835, "y": 4700, "wires": [] }, { "id": "f08d3f65a2064859", "type": "link out", "z": "2591ccce.456d14", "g": "7ebe1b5be689f3f6", "name": "Hum_out>>", "links": [ "5a48d2dee841214d" ], "x": 835, "y": 4800, "wires": [] }, { "id": "ffe27fd94fa5ad10", "type": "link out", "z": "2591ccce.456d14", "g": "7ebe1b5be689f3f6", "name": "Hum_out>>", "links": [ "116dc8adf2e002c9" ], "x": 835, "y": 4900, "wires": [] }, { "id": "388864c3da4e9f0f", "type": "function", "z": "2591ccce.456d14", "g": "7ebe1b5be689f3f6", "name": "LED", "func": "var msg_out = {};\n\nmsg_out.payload = flow.get(\"HUMID_led\");\n\nnode.status({ fill: \"green\", shape: \"dot\", text: msg_out.payload });\nsetTimeout(() => {\n node.status({}); //clean status\n}, 3000);\n\nreturn msg_out;", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 275, "y": 4800, "wires": [ [ "3a9d229819fbba7f" ] ], "l": false }, { "id": "4c63b549c837daef", "type": "function", "z": "2591ccce.456d14", "g": "7ebe1b5be689f3f6", "name": "Sound", "func": "var msg_out = {};\n\nmsg_out.payload = flow.get(\"HUMID_sound\");\n\nnode.status({ fill: \"green\", shape: \"dot\", text: msg_out.payload });\nsetTimeout(() => {\n node.status({}); //clean status\n}, 3000);\n\nreturn msg_out;", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 275, "y": 4900, "wires": [ [ "bc77585c641ca1db" ] ], "l": false }, { "id": "4bb147077d451f51", "type": "function", "z": "2591ccce.456d14", "g": "7ebe1b5be689f3f6", "name": "parse", "func": "if (msg.payload.Humidity_Value == null) {\n node.status({ fill: \"red\", shape: \"ring\", text: \"NOTsaved\" });\n} else {\n flow.set(\"HUMID_power\", msg.payload.OnOff_State);\n flow.set(\"HUMID_speed\", msg.payload.Humidifier_Gear);\n flow.set(\"HUMID_led\", msg.payload.Led_State);\n flow.set(\"HUMID_sound\", msg.payload.TipSound_State);\n\n node.status({ fill: \"green\", shape: \"dot\", text: \"Saved\" });\n};\n\nsetTimeout(() => {\n node.status({}); //clean status\n}, 3000);\n\nreturn msg;", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 175, "y": 4740, "wires": [ [ "4c63b549c837daef", "388864c3da4e9f0f", "b1a22142c655b3fd", "0628d81b56d37788" ] ], "l": false }, { "id": "bc77585c641ca1db", "type": "rbe", "z": "2591ccce.456d14", "g": "7ebe1b5be689f3f6", "name": "", "func": "rbe", "gap": "", "start": "", "inout": "out", "septopics": true, "property": "payload", "x": 415, "y": 4900, "wires": [ [ "5fdf4bffdf65f9a7" ] ], "l": false }, { "id": "8c9973b21b94d7f1", "type": "rbe", "z": "2591ccce.456d14", "g": "7ebe1b5be689f3f6", "name": "", "func": "rbe", "gap": "", "start": "", "inout": "out", "septopics": true, "property": "payload", "x": 635, "y": 4700, "wires": [ [ "0fd4893a46cacb53" ] ], "l": false }, { "id": "ce14c0e64328b21b", "type": "rbe", "z": "2591ccce.456d14", "g": "7ebe1b5be689f3f6", "name": "", "func": "rbe", "gap": "", "start": "", "inout": "out", "septopics": true, "property": "payload", "x": 635, "y": 4900, "wires": [ [ "38e5052861e5f611" ] ], "l": false }, { "id": "583c7e7e09fd4aed", "type": "rbe", "z": "2591ccce.456d14", "g": "7ebe1b5be689f3f6", "name": "", "func": "rbe", "gap": "", "start": "", "inout": "out", "septopics": true, "property": "payload", "x": 635, "y": 4800, "wires": [ [ "ae7c8b3102b242ce" ] ], "l": false }, { "id": "6ff6e31adc4bb3fd", "type": "rbe", "z": "2591ccce.456d14", "g": "7ebe1b5be689f3f6", "name": "", "func": "rbe", "gap": "", "start": "", "inout": "out", "septopics": true, "property": "payload", "x": 635, "y": 4600, "wires": [ [ "553e3e22798f98a5" ] ], "l": false }, { "id": "3a9d229819fbba7f", "type": "rbe", "z": "2591ccce.456d14", "g": "7ebe1b5be689f3f6", "name": "", "func": "rbe", "gap": "", "start": "", "inout": "out", "septopics": true, "property": "payload", "x": 415, "y": 4800, "wires": [ [ "2c8b8988f781f704" ] ], "l": false }, { "id": "bc96b73c5816f507", "type": "rbe", "z": "2591ccce.456d14", "g": "7ebe1b5be689f3f6", "name": "", "func": "rbe", "gap": "", "start": "", "inout": "out", "septopics": true, "property": "payload", "x": 415, "y": 4700, "wires": [ [ "b3643ca69a97d87c" ] ], "l": false }, { "id": "03cd18a50ea54adb", "type": "rbe", "z": "2591ccce.456d14", "g": "7ebe1b5be689f3f6", "name": "", "func": "rbe", "gap": "", "start": "", "inout": "out", "septopics": true, "property": "payload", "x": 415, "y": 4600, "wires": [ [ "0d1d927ce3ea488e" ] ], "l": false }, { "id": "f42e16698d64867d", "type": "MIIOgetdata", "z": "2591ccce.456d14", "g": "7ebe1b5be689f3f6", "devices": "4d92610bf0ef9094", "x": 115, "y": 4740, "wires": [ [ "f487cd8e641f162d", "4bb147077d451f51" ] ], "l": false }, { "id": "553e3e22798f98a5", "type": "MIIOsendcommand", "z": "2591ccce.456d14", "g": "7ebe1b5be689f3f6", "name": "", "devices": "4d92610bf0ef9094", "command": "Power", "command_state": "payload", "x": 750, "y": 4600, "wires": [ [ "609d7ec3a4544cb9" ] ] }, { "id": "0fd4893a46cacb53", "type": "MIIOsendcommand", "z": "2591ccce.456d14", "g": "7ebe1b5be689f3f6", "name": "", "devices": "4d92610bf0ef9094", "command": "FanLevel", "command_state": "payload", "x": 740, "y": 4700, "wires": [ [ "fc3184309b29a8e1" ] ] }, { "id": "ae7c8b3102b242ce", "type": "MIIOsendcommand", "z": "2591ccce.456d14", "g": "7ebe1b5be689f3f6", "name": "", "devices": "4d92610bf0ef9094", "command": "Led", "command_state": "payload", "x": 750, "y": 4800, "wires": [ [ "f08d3f65a2064859" ] ] }, { "id": "38e5052861e5f611", "type": "MIIOsendcommand", "z": "2591ccce.456d14", "g": "7ebe1b5be689f3f6", "name": "", "devices": "4d92610bf0ef9094", "command": "Buzzer", "command_state": "payload", "x": 750, "y": 4900, "wires": [ [ "ffe27fd94fa5ad10" ] ] }, { "id": "fbe19a1bcb09914d", "type": "link in", "z": "2591ccce.456d14", "g": "7ebe1b5be689f3f6", "name": "Feedback", "links": [ "609d7ec3a4544cb9" ], "x": 320, "y": 4640, "wires": [ [ "6d8cef335fbae663" ] ], "l": true }, { "id": "6d8cef335fbae663", "type": "function", "z": "2591ccce.456d14", "g": "7ebe1b5be689f3f6", "name": "parse", "func": "flow.set(\"HUMID_power\", msg.payload.Power);\nnode.status({ fill: \"green\", shape: \"dot\", text: \"Saved\" });\n\nsetTimeout(() => {\n node.status({}); //clean status\n}, 3000);\n\nreturn msg;", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 415, "y": 4640, "wires": [ [ "0628d81b56d37788" ] ], "l": false }, { "id": "a908eaca02db1dde", "type": "link in", "z": "2591ccce.456d14", "g": "7ebe1b5be689f3f6", "name": "Feedback", "links": [ "fc3184309b29a8e1" ], "x": 320, "y": 4740, "wires": [ [ "06c07a47dd65c614" ] ], "l": true }, { "id": "06c07a47dd65c614", "type": "function", "z": "2591ccce.456d14", "g": "7ebe1b5be689f3f6", "name": "parse", "func": "flow.set(\"HUMID_speed\", msg.payload.FanLevel);\nnode.status({ fill: \"green\", shape: \"dot\", text: \"Saved\" });\n\nsetTimeout(() => {\n node.status({}); //clean status\n}, 3000);\n\nreturn msg;", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 415, "y": 4740, "wires": [ [ "b1a22142c655b3fd" ] ], "l": false }, { "id": "89c868ce484aee06", "type": "function", "z": "2591ccce.456d14", "g": "7ebe1b5be689f3f6", "name": "parse", "func": "flow.set(\"HUMID_led\", msg.payload.Led);\nnode.status({ fill: \"green\", shape: \"dot\", text: \"Saved\" });\n\nsetTimeout(() => {\n node.status({}); //clean status\n}, 3000);\n\nreturn msg;", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 415, "y": 4840, "wires": [ [ "388864c3da4e9f0f" ] ], "l": false }, { "id": "0d1d927ce3ea488e", "type": "ui_switch", "z": "2591ccce.456d14", "g": "7ebe1b5be689f3f6", "name": "", "label": "Power", "tooltip": "", "group": "b345eabe9f27efa0", "order": 1, "width": 0, "height": 0, "passthru": true, "decouple": "false", "topic": "topic", "topicType": "msg", "style": "", "onvalue": "true", "onvalueType": "bool", "onicon": "", "oncolor": "", "offvalue": "false", "offvalueType": "bool", "officon": "", "offcolor": "", "animate": false, "className": "", "x": 530, "y": 4600, "wires": [ [ "6ff6e31adc4bb3fd" ] ] }, { "id": "2c8b8988f781f704", "type": "ui_switch", "z": "2591ccce.456d14", "g": "7ebe1b5be689f3f6", "name": "", "label": "Led", "tooltip": "", "group": "b345eabe9f27efa0", "order": 3, "width": 0, "height": 0, "passthru": true, "decouple": "false", "topic": "topic", "topicType": "msg", "style": "", "onvalue": "true", "onvalueType": "bool", "onicon": "", "oncolor": "", "offvalue": "false", "offvalueType": "bool", "officon": "", "offcolor": "", "animate": false, "className": "", "x": 530, "y": 4800, "wires": [ [ "583c7e7e09fd4aed" ] ] }, { "id": "5fdf4bffdf65f9a7", "type": "ui_switch", "z": "2591ccce.456d14", "g": "7ebe1b5be689f3f6", "name": "", "label": "Sound", "tooltip": "", "group": "b345eabe9f27efa0", "order": 4, "width": 0, "height": 0, "passthru": true, "decouple": "false", "topic": "topic", "topicType": "msg", "style": "", "onvalue": "true", "onvalueType": "bool", "onicon": "", "oncolor": "", "offvalue": "false", "offvalueType": "bool", "officon": "", "offcolor": "", "animate": false, "className": "", "x": 530, "y": 4900, "wires": [ [ "ce14c0e64328b21b" ] ] }, { "id": "b3643ca69a97d87c", "type": "ui_dropdown", "z": "2591ccce.456d14", "g": "7ebe1b5be689f3f6", "name": "", "label": "Fan Level", "tooltip": "", "place": "Select option", "group": "b345eabe9f27efa0", "order": 2, "width": 0, "height": 0, "passthru": true, "multiple": false, "options": [ { "label": "1", "value": 1, "type": "num" }, { "label": "2", "value": 2, "type": "num" }, { "label": "3", "value": 3, "type": "num" } ], "payload": "", "topic": "topic", "topicType": "msg", "className": "", "x": 520, "y": 4700, "wires": [ [ "8c9973b21b94d7f1" ] ] }, { "id": "5a48d2dee841214d", "type": "link in", "z": "2591ccce.456d14", "g": "7ebe1b5be689f3f6", "name": "Feedback", "links": [ "f08d3f65a2064859" ], "x": 320, "y": 4840, "wires": [ [ "89c868ce484aee06" ] ], "l": true }, { "id": "116dc8adf2e002c9", "type": "link in", "z": "2591ccce.456d14", "g": "7ebe1b5be689f3f6", "name": "Feedback", "links": [ "ffe27fd94fa5ad10" ], "x": 320, "y": 4940, "wires": [ [ "f4c77c6c3aefcbd1" ] ], "l": true }, { "id": "f4c77c6c3aefcbd1", "type": "function", "z": "2591ccce.456d14", "g": "7ebe1b5be689f3f6", "name": "parse", "func": "flow.set(\"HUMID_sound\", msg.payload.Buzzer);\nnode.status({ fill: \"green\", shape: \"dot\", text: \"Saved\" });\n\nsetTimeout(() => {\n node.status({}); //clean status\n}, 3000);\n\nreturn msg;", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 415, "y": 4940, "wires": [ [ "4c63b549c837daef" ] ], "l": false }, { "id": "4d92610bf0ef9094", "type": "MIIOdevices", "name": "Humidifier", "room": "LivingRoom", "MI_id": "12345", "model": "deerma.humidifier.mjjsq", "address": "192.168.100.100", "token": "tokenistoolongtotypeit", "isMIOT": false, "username": "", "password": "", "isPolling": true, "pollinginterval": "60" }, { "id": "b345eabe9f27efa0", "type": "ui_group", "name": "Group 1", "tab": "b50a9a961f45c0a5", "order": 1, "disp": true, "width": 6 }, { "id": "b50a9a961f45c0a5", "type": "ui_tab", "name": "Example", "icon": "dashboard", "order": 10, "disabled": false, "hidden": false } ]