[ { "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": "

WAIT

", "tot": "str" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 580, "y": 2320, "wires": [ [ "d61d69a9fa2aa651" ] ] }, { "id": "3e7404a7e5de470b", "type": "ui_led", "z": "a164ece6cce2abe7", "order": 16, "group": "2ab3988615c6e3b0", "width": 1, "height": 2, "label": "", "labelPlacement": "right", "labelAlignment": "left", "colorForValue": [ { "color": "#0061ff", "value": "1", "valueType": "num" }, { "color": "#ff2600", "value": "0", "valueType": "num" }, { "color": "#000000", "value": "2", "valueType": "num" } ], "allowColorForValueInMessage": false, "shape": "square", "showGlow": false, "name": "Wi-Fi connected", "x": 740, "y": 1620, "wires": [] }, { "id": "99b670f574e2dde6", "type": "mqtt in", "z": "a164ece6cce2abe7", "name": "Wi-Fi connected", "topic": "info/wifi_connected", "qos": "2", "datatype": "auto-detect", "broker": "c47c2c1231658a14", "nl": false, "rap": false, "rh": "0", "inputs": 0, "x": 100, "y": 1620, "wires": [ [ "3e7404a7e5de470b" ] ] }, { "id": "478c91fabfeccbee", "type": "change", "z": "a164ece6cce2abe7", "name": "", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "2", "tot": "num" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 460, "y": 1600, "wires": [ [ "3e7404a7e5de470b" ] ] }, { "id": "83f0c7e0e82f0da4", "type": "ping", "z": "a164ece6cce2abe7", "protocol": "IPv4", "mode": "timed", "name": "", "host": "PP-Distr-01", "timer": "5", "inputs": 0, "x": 90, "y": 760, "wires": [ [ "594742f5dc71b8c0" ] ] }, { "id": "594742f5dc71b8c0", "type": "switch", "z": "a164ece6cce2abe7", "name": "", "property": "payload", "propertyType": "msg", "rules": [ { "t": "false" } ], "checkall": "true", "repair": false, "outputs": 1, "x": 110, "y": 900, "wires": [ [ "d564bda82c4eccc0", "de1bbc708177c4d6", "b2d2a4b55e665ae6", "77d36c818f19ec4d", "a82ef05436ace76f" ] ] }, { "id": "d564bda82c4eccc0", "type": "change", "z": "a164ece6cce2abe7", "name": "", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "0", "tot": "num" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 140, "y": 1500, "wires": [ [ "8d2aa30a1920cd08", "77d80e1d66b20fb1", "478c91fabfeccbee", "5538f6a644f99802", "49bad120d2e28871", "0969b15096aadd6a", "5b06b2d60f9d4915", "89f00bcabff3b309", "8adeef1360618d95" ] ] }, { "id": "6e629f9d3688fdca", "type": "comment", "z": "a164ece6cce2abe7", "name": "Hostname or IP !", "info": "****", "x": 100, "y": 720, "wires": [] }, { "id": "b51c5e471d3783d5", "type": "change", "z": "a164ece6cce2abe7", "name": "", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "", "tot": "str" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 580, "y": 2380, "wires": [ [ "d61d69a9fa2aa651" ] ] }, { "id": "62825665f66083ff", "type": "comment", "z": "a164ece6cce2abe7", "name": "Show WAIT message", "info": "", "x": 120, "y": 2300, "wires": [] }, { "id": "b6219cfa02eeee00", "type": "mqtt in", "z": "a164ece6cce2abe7", "name": "FW version", "topic": "info/FW_ver", "qos": "2", "datatype": "auto-detect", "broker": "c47c2c1231658a14", "nl": false, "rap": false, "rh": "0", "inputs": 0, "x": 80, "y": 2220, "wires": [ [ "f158fd96357d6aa4" ] ] }, { "id": "f158fd96357d6aa4", "type": "ui_text", "z": "a164ece6cce2abe7", "group": "2ab3988615c6e3b0", "order": 18, "width": 4, "height": 1, "name": "", "label": "FW version :", "format": "{{msg.payload}}", "layout": "row-left", "className": "", "x": 650, "y": 2220, "wires": [] }, { "id": "6c5f71505cc9970c", "type": "comment", "z": "a164ece6cce2abe7", "name": "Show FW version", "info": "", "x": 100, "y": 2180, "wires": [] }, { "id": "a5bbf835859ac189", "type": "comment", "z": "a164ece6cce2abe7", "name": "Show Hostname", "info": "", "x": 100, "y": 1940, "wires": [] }, { "id": "9c6b033e9f583950", "type": "comment", "z": "a164ece6cce2abe7", "name": "Show current IP", "info": "", "x": 100, "y": 2060, "wires": [] }, { "id": "3ae3eaa9aaa79194", "type": "comment", "z": "a164ece6cce2abe7", "name": "Show Wi-Fi Strenght", "info": "", "x": 110, "y": 1820, "wires": [] }, { "id": "2d224b359e843310", "type": "comment", "z": "a164ece6cce2abe7", "name": "Show Incoming line voltage", "info": "", "x": 140, "y": 1700, "wires": [] }, { "id": "89f00bcabff3b309", "type": "change", "z": "a164ece6cce2abe7", "name": "", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "", "tot": "str" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 460, "y": 2060, "wires": [ [ "a935076daa2819fe" ] ] }, { "id": "8adeef1360618d95", "type": "change", "z": "a164ece6cce2abe7", "name": "", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "", "tot": "str" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 460, "y": 2180, "wires": [ [ "f158fd96357d6aa4" ] ] }, { "id": "bba88ad8fbacdd69", "type": "ui_spacer", "z": "a164ece6cce2abe7", "name": "spacer", "group": "2ab3988615c6e3b0", "order": 10, "width": 3, "height": 1 }, { "id": "49d4a762191e9272", "type": "ui_spacer", "z": "a164ece6cce2abe7", "name": "spacer", "group": "2ab3988615c6e3b0", "order": 11, "width": 3, "height": 1 }, { "id": "a2db8aafea6beaa3", "type": "ui_spacer", "z": "a164ece6cce2abe7", "name": "spacer", "group": "2ab3988615c6e3b0", "order": 13, "width": 3, "height": 1 }, { "id": "7065442fb671c54c", "type": "ui_spacer", "z": "a164ece6cce2abe7", "name": "spacer", "group": "2ab3988615c6e3b0", "order": 14, "width": 3, "height": 1 }, { "id": "c47c2c1231658a14", "type": "mqtt-broker", "name": "", "broker": "195.1.1.58", "port": "1883", "clientid": "", "autoConnect": true, "usetls": false, "protocolVersion": "4", "keepalive": "60", "cleansession": true, "birthTopic": "", "birthQos": "0", "birthRetain": "false", "birthPayload": "", "birthMsg": {}, "closeTopic": "", "closeQos": "0", "closeRetain": "false", "closePayload": "", "closeMsg": {}, "willTopic": "", "willQos": "0", "willRetain": "false", "willPayload": "", "willMsg": {}, "userProps": "", "sessionExpiry": "" }, { "id": "2ab3988615c6e3b0", "type": "ui_group", "name": "PowerPole Distributor", "tab": "be3c6e2db7a9b5f9", "order": 1, "disp": true, "width": 9, "collapse": false, "className": "" }, { "id": "be3c6e2db7a9b5f9", "type": "ui_tab", "name": "PowerPole Distributor", "icon": "dashboard", "disabled": false, "hidden": false } ]