[ { "id": "a164ece6cce2abe7", "type": "tab", "label": "PP Distributor", "disabled": false, "info": "", "env": [] }, { "id": "f86f2f6ebabcf5fb", "type": "mqtt out", "z": "a164ece6cce2abe7", "name": "Relay On/Off", "topic": "/PP_Distr/command", "qos": "", "retain": "", "respTopic": "", "contentType": "", "userProps": "", "correl": "", "expiry": "", "broker": "c47c2c1231658a14", "x": 1530, "y": 440, "wires": [] }, { "id": "a1510ae463b28520", "type": "mqtt in", "z": "a164ece6cce2abe7", "name": "Current LED State 1", "topic": "relay_status/RELAY_State_1", "qos": "2", "datatype": "auto-detect", "broker": "c47c2c1231658a14", "nl": false, "rap": false, "rh": "0", "inputs": 0, "x": 310, "y": 1020, "wires": [ [ "f318e07014db8022" ] ] }, { "id": "781fc93ce5bf2fdd", "type": "ui_led", "z": "a164ece6cce2abe7", "order": 4, "group": "2ab3988615c6e3b0", "width": 1, "height": 1, "label": "", "labelPlacement": "left", "labelAlignment": "left", "colorForValue": [ { "color": "#ff0000", "value": "1", "valueType": "num" }, { "color": "#008000", "value": "0", "valueType": "num" } ], "allowColorForValueInMessage": false, "shape": "circle", "showGlow": false, "name": "Relay 2", "x": 860, "y": 1080, "wires": [] }, { "id": "f318e07014db8022", "type": "ui_led", "z": "a164ece6cce2abe7", "order": 2, "group": "2ab3988615c6e3b0", "width": 1, "height": 1, "label": "", "labelPlacement": "left", "labelAlignment": "left", "colorForValue": [ { "color": "#ff0000", "value": "1", "valueType": "num" }, { "color": "#008000", "value": "0", "valueType": "num" } ], "allowColorForValueInMessage": false, "shape": "circle", "showGlow": false, "name": "Relay 1", "x": 860, "y": 1020, "wires": [] }, { "id": "c9f3501869a18549", "type": "mqtt in", "z": "a164ece6cce2abe7", "name": "Current LED State 2", "topic": "relay_status/RELAY_State_2", "qos": "2", "datatype": "auto-detect", "broker": "c47c2c1231658a14", "nl": false, "rap": false, "rh": "0", "inputs": 0, "x": 310, "y": 1080, "wires": [ [ "781fc93ce5bf2fdd" ] ] }, { "id": "6e1a2dad40bea616", "type": "ui_button", "z": "a164ece6cce2abe7", "name": "Toggle Switch 1", "group": "2ab3988615c6e3b0", "order": 1, "width": 8, "height": 1, "passthru": false, "label": " 1 - Flex 6400 - status {{msg.txt}}", "tooltip": "", "color": "", "bgcolor": "{{msg.color}}", "className": "", "icon": "", "payload": "PRESS", "payloadType": "str", "topic": "", "topicType": "str", "x": 840, "y": 280, "wires": [ [ "1195b957aa128b18" ] ] }, { "id": "8e2912d06112bf25", "type": "inject", "z": "a164ece6cce2abe7", "name": "On", "props": [ { "p": "payload" }, { "p": "topic", "vt": "str" } ], "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "topic": "", "payload": "true", "payloadType": "bool", "x": 450, "y": 240, "wires": [ [ "1195b957aa128b18" ] ] }, { "id": "fbd527930002c5b6", "type": "inject", "z": "a164ece6cce2abe7", "name": "Off", "props": [ { "p": "payload" }, { "p": "topic", "vt": "str" } ], "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "topic": "", "payload": "false", "payloadType": "bool", "x": 450, "y": 280, "wires": [ [ "1195b957aa128b18" ] ] }, { "id": "42f508b83155831e", "type": "debug", "z": "a164ece6cce2abe7", "name": "", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "false", "statusVal": "", "statusType": "auto", "x": 1070, "y": 280, "wires": [] }, { "id": "bc16321f6a24f1cf", "type": "switch", "z": "a164ece6cce2abe7", "name": "", "property": "payload", "propertyType": "msg", "rules": [ { "t": "true" }, { "t": "false" } ], "checkall": "true", "repair": false, "outputs": 2, "x": 1070, "y": 240, "wires": [ [ "d1446972836fe145" ], [ "5c47367a59c12d9d" ] ] }, { "id": "d1446972836fe145", "type": "change", "z": "a164ece6cce2abe7", "name": "", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "CLOSE_1", "tot": "str" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 1260, "y": 220, "wires": [ [ "f86f2f6ebabcf5fb" ] ] }, { "id": "5c47367a59c12d9d", "type": "change", "z": "a164ece6cce2abe7", "name": "", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "OPEN_1", "tot": "str" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 1260, "y": 260, "wires": [ [ "f86f2f6ebabcf5fb" ] ] }, { "id": "8dbdb71a30bea7bc", "type": "function", "z": "a164ece6cce2abe7", "name": "Toggle State", "func": "var last_state = context.get(\"state\") || false;\nvar state = last_state // start the same\n\n// Usually we pass through the message and keep the state\n// When pressed, send the opposite of the state\nstate = msg.payload == \"PRESS\" ? !state : msg.payload;\n\n// If the state hasnt changed, stop the sequence here.\n// This matches the normal ui switch behavior\nif (state == last_state) \n return null;\n\ncontext.set(\"state\", state);\nmsg.payload = state\n\n// Use the new local state (will update when round-tripped)\nmsg.txt = state ? \"On\" : \"Off\";\nmsg.color = state ? \"default\" : \"grey\";\n\nreturn msg;\n", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "x": 830, "y": 380, "wires": [ [ "6f87581f5b661cc7", "20d1634f95d0d3d5", "4a8b17b48f8471df" ] ] }, { "id": "6f87581f5b661cc7", "type": "ui_button", "z": "a164ece6cce2abe7", "name": "Toggle Switch 2", "group": "2ab3988615c6e3b0", "order": 3, "width": 8, "height": 1, "passthru": false, "label": " 2 - IC 7300 - status {{msg.txt}}", "tooltip": "", "color": "", "bgcolor": "{{msg.color}}", "className": "", "icon": "", "payload": "PRESS", "payloadType": "str", "topic": "", "topicType": "str", "x": 840, "y": 420, "wires": [ [ "8dbdb71a30bea7bc" ] ] }, { "id": "344d754e3f135ffe", "type": "inject", "z": "a164ece6cce2abe7", "name": "On", "props": [ { "p": "payload" }, { "p": "topic", "vt": "str" } ], "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "topic": "", "payload": "true", "payloadType": "bool", "x": 450, "y": 380, "wires": [ [ "8dbdb71a30bea7bc" ] ] }, { "id": "0c460e5047a07540", "type": "inject", "z": "a164ece6cce2abe7", "name": "Off", "props": [ { "p": "payload" }, { "p": "topic", "vt": "str" } ], "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "topic": "", "payload": "false", "payloadType": "bool", "x": 450, "y": 420, "wires": [ [ "8dbdb71a30bea7bc" ] ] }, { "id": "20d1634f95d0d3d5", "type": "debug", "z": "a164ece6cce2abe7", "name": "", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "false", "statusVal": "", "statusType": "auto", "x": 1070, "y": 420, "wires": [] }, { "id": "4a8b17b48f8471df", "type": "switch", "z": "a164ece6cce2abe7", "name": "", "property": "payload", "propertyType": "msg", "rules": [ { "t": "true" }, { "t": "false" } ], "checkall": "true", "repair": false, "outputs": 2, "x": 1070, "y": 380, "wires": [ [ "dd74612df9306e33" ], [ "20961f27b4098147" ] ] }, { "id": "dd74612df9306e33", "type": "change", "z": "a164ece6cce2abe7", "name": "", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "CLOSE_2", "tot": "str" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 1260, "y": 360, "wires": [ [ "f86f2f6ebabcf5fb" ] ] }, { "id": "20961f27b4098147", "type": "change", "z": "a164ece6cce2abe7", "name": "", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "OPEN_2", "tot": "str" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 1260, "y": 400, "wires": [ [ "f86f2f6ebabcf5fb" ] ] }, { "id": "f15d6e988250c889", "type": "function", "z": "a164ece6cce2abe7", "name": "Toggle State", "func": "var last_state = context.get(\"state\") || false;\nvar state = last_state // start the same\n\n// Usually we pass through the message and keep the state\n// When pressed, send the opposite of the state\nstate = msg.payload == \"PRESS\" ? !state : msg.payload;\n\n// If the state hasnt changed, stop the sequence here.\n// This matches the normal ui switch behavior\nif (state == last_state) \n return null;\n\ncontext.set(\"state\", state);\nmsg.payload = state\n\n// Use the new local state (will update when round-tripped)\nmsg.txt = state ? \"On\" : \"Off\";\nmsg.color = state ? \"default\" : \"grey\";\n\nreturn msg;\n", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "x": 830, "y": 520, "wires": [ [ "fbc77bbccd987d19", "9367b3b23ff587b7", "6273a9543c503f3e" ] ] }, { "id": "fbc77bbccd987d19", "type": "ui_button", "z": "a164ece6cce2abe7", "name": "Toggle Switch 3", "group": "2ab3988615c6e3b0", "order": 5, "width": 8, "height": 1, "passthru": false, "label": " 3 - Vhf/Uhf - status {{msg.txt}}", "tooltip": "", "color": "", "bgcolor": "{{msg.color}}", "className": "", "icon": "", "payload": "PRESS", "payloadType": "str", "topic": "", "topicType": "str", "x": 840, "y": 560, "wires": [ [ "f15d6e988250c889" ] ] }, { "id": "2f384b468d2438a0", "type": "inject", "z": "a164ece6cce2abe7", "name": "On", "props": [ { "p": "payload" }, { "p": "topic", "vt": "str" } ], "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "topic": "", "payload": "true", "payloadType": "bool", "x": 450, "y": 520, "wires": [ [ "f15d6e988250c889" ] ] }, { "id": "ecdfe7091965abfe", "type": "inject", "z": "a164ece6cce2abe7", "name": "Off", "props": [ { "p": "payload" }, { "p": "topic", "vt": "str" } ], "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "topic": "", "payload": "false", "payloadType": "bool", "x": 450, "y": 560, "wires": [ [ "f15d6e988250c889" ] ] }, { "id": "9367b3b23ff587b7", "type": "debug", "z": "a164ece6cce2abe7", "name": "", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "false", "statusVal": "", "statusType": "auto", "x": 1070, "y": 560, "wires": [] }, { "id": "6273a9543c503f3e", "type": "switch", "z": "a164ece6cce2abe7", "name": "", "property": "payload", "propertyType": "msg", "rules": [ { "t": "true" }, { "t": "false" } ], "checkall": "true", "repair": false, "outputs": 2, "x": 1070, "y": 520, "wires": [ [ "7ab9282c16ce717f" ], [ "fe54bd35ece60b18" ] ] }, { "id": "7ab9282c16ce717f", "type": "change", "z": "a164ece6cce2abe7", "name": "", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "CLOSE_3", "tot": "str" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 1260, "y": 500, "wires": [ [ "f86f2f6ebabcf5fb" ] ] }, { "id": "fe54bd35ece60b18", "type": "change", "z": "a164ece6cce2abe7", "name": "", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "OPEN_3", "tot": "str" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 1260, "y": 540, "wires": [ [ "f86f2f6ebabcf5fb" ] ] }, { "id": "ef087a19e5858521", "type": "function", "z": "a164ece6cce2abe7", "name": "Toggle State", "func": "var last_state = context.get(\"state\") || false;\nvar state = last_state // start the same\n\n// Usually we pass through the message and keep the state\n// When pressed, send the opposite of the state\nstate = msg.payload == \"PRESS\" ? !state : msg.payload;\n\n// If the state hasnt changed, stop the sequence here.\n// This matches the normal ui switch behavior\nif (state == last_state) \n return null;\n\ncontext.set(\"state\", state);\nmsg.payload = state\n\n// Use the new local state (will update when round-tripped)\nmsg.txt = state ? \"On\" : \"Off\";\nmsg.color = state ? \"default\" : \"grey\";\n\nreturn msg;\n", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 830, "y": 660, "wires": [ [ "78e92b6a6128f2c0", "88a4a759e28f6d90", "9c49210c1932fa99" ] ] }, { "id": "78e92b6a6128f2c0", "type": "ui_button", "z": "a164ece6cce2abe7", "name": "Toggle Switch 4", "group": "2ab3988615c6e3b0", "order": 7, "width": 8, "height": 1, "passthru": false, "label": " 4 - Services - status {{msg.txt}}", "tooltip": "", "color": "", "bgcolor": "{{msg.color}}", "className": "", "icon": "", "payload": "PRESS", "payloadType": "str", "topic": "", "topicType": "str", "x": 840, "y": 700, "wires": [ [ "ef087a19e5858521" ] ] }, { "id": "864c61d8e906d5ee", "type": "inject", "z": "a164ece6cce2abe7", "name": "On", "props": [ { "p": "payload" }, { "p": "topic", "vt": "str" } ], "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "topic": "", "payload": "true", "payloadType": "bool", "x": 450, "y": 660, "wires": [ [ "ef087a19e5858521" ] ] }, { "id": "6775c1b014aa501d", "type": "inject", "z": "a164ece6cce2abe7", "name": "Off", "props": [ { "p": "payload" }, { "p": "topic", "vt": "str" } ], "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "topic": "", "payload": "false", "payloadType": "bool", "x": 450, "y": 700, "wires": [ [ "ef087a19e5858521" ] ] }, { "id": "88a4a759e28f6d90", "type": "debug", "z": "a164ece6cce2abe7", "name": "", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "false", "statusVal": "", "statusType": "auto", "x": 1070, "y": 700, "wires": [] }, { "id": "9c49210c1932fa99", "type": "switch", "z": "a164ece6cce2abe7", "name": "", "property": "payload", "propertyType": "msg", "rules": [ { "t": "true" }, { "t": "false" } ], "checkall": "true", "repair": false, "outputs": 2, "x": 1070, "y": 660, "wires": [ [ "99d446591b3ed48d" ], [ "23a8de54d833ee9d" ] ] }, { "id": "99d446591b3ed48d", "type": "change", "z": "a164ece6cce2abe7", "name": "", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "CLOSE_4", "tot": "str" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 1260, "y": 640, "wires": [ [ "f86f2f6ebabcf5fb" ] ] }, { "id": "23a8de54d833ee9d", "type": "change", "z": "a164ece6cce2abe7", "name": "", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "OPEN_4", "tot": "str" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 1260, "y": 680, "wires": [ [ "f86f2f6ebabcf5fb" ] ] }, { "id": "856fbd68d22d0560", "type": "mqtt in", "z": "a164ece6cce2abe7", "name": "Current LED State 3", "topic": "relay_status/RELAY_State_3", "qos": "2", "datatype": "auto-detect", "broker": "c47c2c1231658a14", "nl": false, "rap": false, "rh": "0", "inputs": 0, "x": 310, "y": 1140, "wires": [ [ "17a6fd9516aff912" ] ] }, { "id": "3915c446a8497bef", "type": "ui_led", "z": "a164ece6cce2abe7", "order": 8, "group": "2ab3988615c6e3b0", "width": 1, "height": 1, "label": "", "labelPlacement": "left", "labelAlignment": "left", "colorForValue": [ { "color": "#ff0000", "value": "1", "valueType": "num" }, { "color": "#008000", "value": "0", "valueType": "num" } ], "allowColorForValueInMessage": false, "shape": "circle", "showGlow": false, "name": "Relay 4", "x": 860, "y": 1200, "wires": [] }, { "id": "17a6fd9516aff912", "type": "ui_led", "z": "a164ece6cce2abe7", "order": 6, "group": "2ab3988615c6e3b0", "width": 1, "height": 1, "label": "", "labelPlacement": "left", "labelAlignment": "left", "colorForValue": [ { "color": "#ff0000", "value": "1", "valueType": "num" }, { "color": "#008000", "value": "0", "valueType": "num" } ], "allowColorForValueInMessage": false, "shape": "circle", "showGlow": false, "name": "Relay 3", "x": 860, "y": 1140, "wires": [] }, { "id": "a24abaa524a85ce9", "type": "mqtt in", "z": "a164ece6cce2abe7", "name": "Current LED State 4", "topic": "relay_status/RELAY_State_4", "qos": "2", "datatype": "auto-detect", "broker": "c47c2c1231658a14", "nl": false, "rap": false, "rh": "0", "inputs": 0, "x": 310, "y": 1200, "wires": [ [ "3915c446a8497bef" ] ] }, { "id": "8d6b1dc8d06a2894", "type": "mqtt in", "z": "a164ece6cce2abe7", "name": "PS voltage", "topic": "info/PS_Voltage", "qos": "2", "datatype": "auto-detect", "broker": "c47c2c1231658a14", "nl": false, "rap": false, "rh": "0", "inputs": 0, "x": 80, "y": 1740, "wires": [ [ "8d2aa30a1920cd08" ] ] }, { "id": "8d2aa30a1920cd08", "type": "ui_gauge", "z": "a164ece6cce2abe7", "name": "", "group": "2ab3988615c6e3b0", "order": 9, "width": 6, "height": 5, "gtype": "gage", "title": "Incoming Line", "label": "V", "format": "{{value | number:1}}", "min": "12", "max": "15", "colors": [ "#fffb00", "#00b500", "#ff2600" ], "seg1": "12.6", "seg2": "13.8", "className": "", "x": 460, "y": 1740, "wires": [] }, { "id": "ba4d5cf175684b96", "type": "mqtt in", "z": "a164ece6cce2abe7", "name": "Wi-Fi strength", "topic": "info/wifi_signal", "qos": "2", "datatype": "auto-detect", "broker": "c47c2c1231658a14", "nl": false, "rap": false, "rh": "0", "inputs": 0, "x": 90, "y": 1860, "wires": [ [ "77d80e1d66b20fb1" ] ] }, { "id": "77d80e1d66b20fb1", "type": "ui_text", "z": "a164ece6cce2abe7", "group": "2ab3988615c6e3b0", "order": 15, "width": 4, "height": 1, "name": "", "label": "Wi-Fi signal [dBm]", "format": "{{msg.payload}}", "layout": "row-left", "className": "", "x": 470, "y": 1860, "wires": [] }, { "id": "6f15ef148e0262c1", "type": "mqtt in", "z": "a164ece6cce2abe7", "name": "Wi-Fi IP", "topic": "info/wifi_IP", "qos": "2", "datatype": "auto-detect", "broker": "c47c2c1231658a14", "nl": false, "rap": false, "rh": "0", "inputs": 0, "x": 70, "y": 2100, "wires": [ [ "a935076daa2819fe" ] ] }, { "id": "a935076daa2819fe", "type": "ui_text", "z": "a164ece6cce2abe7", "group": "2ab3988615c6e3b0", "order": 19, "width": 4, "height": 1, "name": "", "label": "Local IP :", "format": "{{msg.payload}}", "layout": "row-right", "className": "", "x": 640, "y": 2100, "wires": [] }, { "id": "eb51fcaee95b1ac0", "type": "comment", "z": "a164ece6cce2abe7", "name": "Commands to relay", "info": "", "x": 470, "y": 180, "wires": [] }, { "id": "1a6339063564352a", "type": "comment", "z": "a164ece6cce2abe7", "name": "Show relay status", "info": "", "x": 310, "y": 980, "wires": [] }, { "id": "8a2b73946183d56b", "type": "comment", "z": "a164ece6cce2abe7", "name": "Show Wi-Fi Status", "info": "", "x": 110, "y": 1580, "wires": [] }, { "id": "e161956770fcc4b8", "type": "comment", "z": "a164ece6cce2abe7", "name": "Relay 1", "info": "", "x": 1230, "y": 180, "wires": [] }, { "id": "d586cb86b00bb68d", "type": "comment", "z": "a164ece6cce2abe7", "name": "Relay 2", "info": "", "x": 1230, "y": 320, "wires": [] }, { "id": "a2b980195af0806e", "type": "comment", "z": "a164ece6cce2abe7", "name": "Relay 3", "info": "", "x": 1230, "y": 460, "wires": [] }, { "id": "b747ee4fc68d6be6", "type": "comment", "z": "a164ece6cce2abe7", "name": "Relay 4", "info": "", "x": 1230, "y": 600, "wires": [] }, { "id": "1c16703f413c934d", "type": "mqtt in", "z": "a164ece6cce2abe7", "name": "Wi-Fi Hostname", "topic": "info/wifi_Host", "qos": "2", "datatype": "auto-detect", "broker": "c47c2c1231658a14", "nl": false, "rap": false, "rh": "0", "inputs": 0, "x": 100, "y": 1980, "wires": [ [ "0e02ee4ba142d735" ] ] }, { "id": "0e02ee4ba142d735", "type": "ui_text", "z": "a164ece6cce2abe7", "group": "2ab3988615c6e3b0", "order": 17, "width": 4, "height": 1, "name": "", "label": "Hostname :", "format": "{{msg.payload}}", "layout": "row-left", "className": "", "x": 450, "y": 1980, "wires": [] }, { "id": "1195b957aa128b18", "type": "function", "z": "a164ece6cce2abe7", "name": "Toggle State", "func": "var last_state = context.get(\"state\") || false;\nvar state = last_state // start the same\n\n// Usually we pass through the message and keep the state\n// When pressed, send the opposite of the state\nstate = msg.payload == \"PRESS\" ? !state : msg.payload;\n\n// If the state hasnt changed, stop the sequence here.\n// This matches the normal ui switch behavior\nif (state == last_state) \n return null;\n\ncontext.set(\"state\", state);\nmsg.payload = state\n\n// Use the new local state (will update when round-tripped)\nmsg.txt = state ? \"On\" : \"Off\";\nmsg.color = state ? \"default\" : \"grey\";\n\nreturn msg;\n", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 830, "y": 240, "wires": [ [ "6e1a2dad40bea616", "bc16321f6a24f1cf", "42f508b83155831e" ] ] }, { "id": "46aa395280a98a25", "type": "mqtt in", "z": "a164ece6cce2abe7", "name": "Clean USELESS", "topic": "info/clean", "qos": "2", "datatype": "auto-detect", "broker": "c47c2c1231658a14", "nl": false, "rap": false, "rh": "0", "inputs": 0, "x": 120, "y": 40, "wires": [ [] ] }, { "id": "a82ef05436ace76f", "type": "change", "z": "a164ece6cce2abe7", "name": "", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "false", "tot": "bool" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 460, "y": 320, "wires": [ [ "1195b957aa128b18" ] ] }, { "id": "77d36c818f19ec4d", "type": "change", "z": "a164ece6cce2abe7", "name": "", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "false", "tot": "bool" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 460, "y": 460, "wires": [ [ "8dbdb71a30bea7bc" ] ] }, { "id": "b2d2a4b55e665ae6", "type": "change", "z": "a164ece6cce2abe7", "name": "", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "false", "tot": "bool" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 460, "y": 600, "wires": [ [ "f15d6e988250c889" ] ] }, { "id": "de1bbc708177c4d6", "type": "change", "z": "a164ece6cce2abe7", "name": "", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "false", "tot": "bool" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 460, "y": 740, "wires": [ [ "ef087a19e5858521" ] ] }, { "id": "dc60695542bad504", "type": "comment", "z": "a164ece6cce2abe7", "name": "Clear dashboard if not online (so Ping failed)", "info": "", "x": 410, "y": 900, "wires": [] }, { "id": "5b06b2d60f9d4915", "type": "change", "z": "a164ece6cce2abe7", "name": "", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "0", "tot": "num" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 660, "y": 1000, "wires": [ [ "f318e07014db8022" ] ] }, { "id": "0969b15096aadd6a", "type": "change", "z": "a164ece6cce2abe7", "name": "", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "0", "tot": "num" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 660, "y": 1060, "wires": [ [ "781fc93ce5bf2fdd" ] ] }, { "id": "49bad120d2e28871", "type": "change", "z": "a164ece6cce2abe7", "name": "", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "0", "tot": "num" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 660, "y": 1120, "wires": [ [ "17a6fd9516aff912" ] ] }, { "id": "5538f6a644f99802", "type": "change", "z": "a164ece6cce2abe7", "name": "", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "0", "tot": "num" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 660, "y": 1180, "wires": [ [ "3915c446a8497bef" ] ] }, { "id": "d61d69a9fa2aa651", "type": "ui_text", "z": "a164ece6cce2abe7", "group": "2ab3988615c6e3b0", "order": 12, "width": 3, "height": 1, "name": "Message", "label": "", "format": "{{msg.payload}}", "layout": "row-left", "className": "", "x": 900, "y": 2340, "wires": [] }, { "id": "db0da52523e9547f", "type": "mqtt in", "z": "a164ece6cce2abe7", "name": "Wait message", "topic": "info/pse_wait", "qos": "2", "datatype": "auto-detect", "broker": "c47c2c1231658a14", "nl": false, "rap": false, "rh": "0", "inputs": 0, "x": 90, "y": 2340, "wires": [ [ "34914da2193e0b2d" ] ] }, { "id": "34914da2193e0b2d", "type": "switch", "z": "a164ece6cce2abe7", "name": "", "property": "payload", "propertyType": "msg", "rules": [ { "t": "eq", "v": "0", "vt": "num" }, { "t": "eq", "v": "1", "vt": "num" } ], "checkall": "true", "repair": false, "outputs": 2, "x": 330, "y": 2340, "wires": [ [ "516d815c5c46e1e0" ], [ "b51c5e471d3783d5" ] ] }, { "id": "516d815c5c46e1e0", "type": "change", "z": "a164ece6cce2abe7", "name": "", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "