[
    {
        "id": "6ca16260e472a73c",
        "type": "tab",
        "label": "Flow Intergas",
        "disabled": true,
        "info": ""
    },
    {
        "id": "8699189cc9d40f6d",
        "type": "function",
        "z": "6ca16260e472a73c",
        "name": "Teller",
        "func": "var data = flow.get(\"teller_mem\") || 0;\n\ndata = data + 1;\n\nflow.set(\"teller_mem\", data);\n\nmsg.payload = data;\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 350,
        "y": 900,
        "wires": [
            [
                "5afa637a4e0c1517"
            ]
        ]
    },
    {
        "id": "d89df72cb80ca00a",
        "type": "mqtt in",
        "z": "6ca16260e472a73c",
        "name": "",
        "topic": "Intergas/LiveCheck",
        "qos": "0",
        "datatype": "auto",
        "broker": "38e72ab2.ce2d56",
        "nl": false,
        "rap": false,
        "x": 110,
        "y": 900,
        "wires": [
            [
                "8699189cc9d40f6d"
            ]
        ]
    },
    {
        "id": "9ae9eea1e7a20e9f",
        "type": "mqtt in",
        "z": "6ca16260e472a73c",
        "name": "",
        "topic": "Intergas/IP",
        "qos": "0",
        "datatype": "auto",
        "broker": "38e72ab2.ce2d56",
        "nl": false,
        "rap": false,
        "x": 80,
        "y": 960,
        "wires": [
            [
                "618e49bf810c163c"
            ]
        ]
    },
    {
        "id": "618e49bf810c163c",
        "type": "ui_text",
        "z": "6ca16260e472a73c",
        "group": "d473aec7f565bb0b",
        "order": 2,
        "width": 0,
        "height": 0,
        "name": "",
        "label": "IP",
        "format": "{{msg.payload}}",
        "layout": "row-spread",
        "className": "",
        "x": 570,
        "y": 960,
        "wires": []
    },
    {
        "id": "5afa637a4e0c1517",
        "type": "ui_text",
        "z": "6ca16260e472a73c",
        "group": "d473aec7f565bb0b",
        "order": 1,
        "width": 0,
        "height": 0,
        "name": "",
        "label": "Teller",
        "format": "{{msg.payload}}",
        "layout": "row-spread",
        "className": "",
        "x": 570,
        "y": 900,
        "wires": []
    },
    {
        "id": "945b71ad97afd658",
        "type": "debug",
        "z": "6ca16260e472a73c",
        "name": "",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "payload",
        "targetType": "msg",
        "statusVal": "",
        "statusType": "auto",
        "x": 590,
        "y": 140,
        "wires": []
    },
    {
        "id": "452e29c2938bd657",
        "type": "mqtt in",
        "z": "6ca16260e472a73c",
        "name": "",
        "topic": "Intergas/DataOut",
        "qos": "0",
        "datatype": "auto",
        "broker": "38e72ab2.ce2d56",
        "nl": false,
        "rap": false,
        "rh": "0",
        "x": 100,
        "y": 140,
        "wires": [
            [
                "a03d3d5c70aaf7fd"
            ]
        ]
    },
    {
        "id": "90dee9fe005b06c2",
        "type": "inject",
        "z": "6ca16260e472a73c",
        "name": "",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "3",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "Code",
        "payload": "[83,63,13]",
        "payloadType": "bin",
        "x": 100,
        "y": 40,
        "wires": [
            [
                "c8c6403feb382162",
                "19bab277f72d1bff"
            ]
        ]
    },
    {
        "id": "c8c6403feb382162",
        "type": "mqtt out",
        "z": "6ca16260e472a73c",
        "name": "",
        "topic": "Intergas/DataIn",
        "qos": "",
        "retain": "",
        "respTopic": "",
        "contentType": "",
        "userProps": "",
        "correl": "",
        "expiry": "",
        "broker": "38e72ab2.ce2d56",
        "x": 600,
        "y": 80,
        "wires": []
    },
    {
        "id": "19bab277f72d1bff",
        "type": "debug",
        "z": "6ca16260e472a73c",
        "name": "",
        "active": false,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "false",
        "statusVal": "",
        "statusType": "auto",
        "x": 590,
        "y": 40,
        "wires": []
    },
    {
        "id": "75fa130ee1cdacda",
        "type": "function",
        "z": "6ca16260e472a73c",
        "name": "",
        "func": "var data = msg.payload;\nvar datalen = data.length;\nvar string;\nstring = \"\";\nfor (var i = 0; i < datalen; i++)\n{\n    string = string + \"[\" + data[i].toString() + \"] \";\n}\nmsg.payload = string;\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 420,
        "y": 140,
        "wires": [
            [
                "945b71ad97afd658"
            ]
        ]
    },
    {
        "id": "73b0fc2a62aa390a",
        "type": "ui_text",
        "z": "6ca16260e472a73c",
        "group": "488c45089262ed4d",
        "order": 1,
        "width": 0,
        "height": 0,
        "name": "",
        "label": "T1",
        "format": "{{msg.payload}}",
        "layout": "row-spread",
        "className": "",
        "x": 570,
        "y": 180,
        "wires": []
    },
    {
        "id": "732547213e476a21",
        "type": "function",
        "z": "6ca16260e472a73c",
        "name": "",
        "func": "var data = msg.payload[1] << 8 | msg.payload[0];\nmsg.payload = data / 100;\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 420,
        "y": 180,
        "wires": [
            [
                "73b0fc2a62aa390a"
            ]
        ]
    },
    {
        "id": "a03d3d5c70aaf7fd",
        "type": "function",
        "z": "6ca16260e472a73c",
        "name": "",
        "func": "var data = Buffer.from(msg.payload.split(\";\"));\nmsg.payload = data;\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 260,
        "y": 140,
        "wires": [
            [
                "75fa130ee1cdacda",
                "732547213e476a21",
                "8a45b35d74f921d8",
                "fdd86b41e88d6b22",
                "e952a8ef5c02a996",
                "97793a6ed034a914",
                "ab64bf6a72623ad4",
                "06215f4fa1678ab3",
                "e66b91c2012398db",
                "6a6a42ec1c9e3387",
                "2735855a154c1e2c",
                "68c2b18a8153a2b5",
                "8f05f02e80cc424a",
                "bec080f0d7e08669",
                "f19f2a2e02568d05",
                "1984d35452ccd624",
                "4131bc6b9cf0af1a",
                "9920107429074e9a"
            ]
        ]
    },
    {
        "id": "e5438fe91edd8e3b",
        "type": "ui_text",
        "z": "6ca16260e472a73c",
        "group": "488c45089262ed4d",
        "order": 2,
        "width": 0,
        "height": 0,
        "name": "",
        "label": "T2",
        "format": "{{msg.payload}}",
        "layout": "row-spread",
        "className": "",
        "x": 570,
        "y": 220,
        "wires": []
    },
    {
        "id": "8a45b35d74f921d8",
        "type": "function",
        "z": "6ca16260e472a73c",
        "name": "",
        "func": "var data = msg.payload[5] << 8 | msg.payload[4];\nmsg.payload = data / 100;\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 420,
        "y": 220,
        "wires": [
            [
                "e5438fe91edd8e3b"
            ]
        ]
    },
    {
        "id": "73a67d8e2bd64060",
        "type": "ui_text",
        "z": "6ca16260e472a73c",
        "group": "488c45089262ed4d",
        "order": 3,
        "width": 0,
        "height": 0,
        "name": "",
        "label": "T3",
        "format": "{{msg.payload}}",
        "layout": "row-spread",
        "className": "",
        "x": 570,
        "y": 260,
        "wires": []
    },
    {
        "id": "fdd86b41e88d6b22",
        "type": "function",
        "z": "6ca16260e472a73c",
        "name": "",
        "func": "var data = msg.payload[7] << 8 | msg.payload[6];\nmsg.payload = data / 100;\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 420,
        "y": 260,
        "wires": [
            [
                "73a67d8e2bd64060"
            ]
        ]
    },
    {
        "id": "23431eaba3e3ce3b",
        "type": "ui_text",
        "z": "6ca16260e472a73c",
        "d": true,
        "group": "488c45089262ed4d",
        "order": 4,
        "width": 0,
        "height": 0,
        "name": "",
        "label": "T4",
        "format": "{{msg.payload}}",
        "layout": "row-spread",
        "className": "",
        "x": 570,
        "y": 300,
        "wires": []
    },
    {
        "id": "e952a8ef5c02a996",
        "type": "function",
        "z": "6ca16260e472a73c",
        "name": "",
        "func": "var data = msg.payload[9] << 8 | msg.payload[8];\nmsg.payload = data / 100;\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 420,
        "y": 300,
        "wires": [
            [
                "23431eaba3e3ce3b"
            ]
        ]
    },
    {
        "id": "e9faae70582005a0",
        "type": "ui_text",
        "z": "6ca16260e472a73c",
        "d": true,
        "group": "488c45089262ed4d",
        "order": 5,
        "width": 0,
        "height": 0,
        "name": "",
        "label": "T5",
        "format": "{{msg.payload}}",
        "layout": "row-spread",
        "className": "",
        "x": 570,
        "y": 340,
        "wires": []
    },
    {
        "id": "97793a6ed034a914",
        "type": "function",
        "z": "6ca16260e472a73c",
        "name": "",
        "func": "var data = msg.payload[11] << 8 | msg.payload[10];\nmsg.payload = data / 100;\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 420,
        "y": 340,
        "wires": [
            [
                "e9faae70582005a0"
            ]
        ]
    },
    {
        "id": "b18bc39ce0c4afa7",
        "type": "ui_text",
        "z": "6ca16260e472a73c",
        "group": "4f23c99bc9155c0f",
        "order": 1,
        "width": 0,
        "height": 0,
        "name": "",
        "label": "Fan speed",
        "format": "{{msg.payload}}",
        "layout": "row-spread",
        "className": "",
        "x": 590,
        "y": 380,
        "wires": []
    },
    {
        "id": "ab64bf6a72623ad4",
        "type": "function",
        "z": "6ca16260e472a73c",
        "name": "",
        "func": "var data = msg.payload[19] << 8 | msg.payload[18];\nmsg.payload = data;\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 420,
        "y": 380,
        "wires": [
            [
                "b18bc39ce0c4afa7",
                "b479ba1a5b0a6f83"
            ]
        ]
    },
    {
        "id": "9f57894053502dff",
        "type": "ui_text",
        "z": "6ca16260e472a73c",
        "group": "4f23c99bc9155c0f",
        "order": 3,
        "width": 0,
        "height": 0,
        "name": "",
        "label": "Fan setpoint",
        "format": "{{msg.payload}}",
        "layout": "row-spread",
        "className": "",
        "x": 590,
        "y": 420,
        "wires": []
    },
    {
        "id": "06215f4fa1678ab3",
        "type": "function",
        "z": "6ca16260e472a73c",
        "name": "",
        "func": "var data = msg.payload[17] << 8 | msg.payload[16];\nmsg.payload = data;\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 420,
        "y": 420,
        "wires": [
            [
                "9f57894053502dff"
            ]
        ]
    },
    {
        "id": "e70a1038739bcc78",
        "type": "ui_text",
        "z": "6ca16260e472a73c",
        "group": "4f23c99bc9155c0f",
        "order": 4,
        "width": 0,
        "height": 0,
        "name": "",
        "label": "Fan pwm",
        "format": "{{msg.payload}}",
        "layout": "row-spread",
        "className": "",
        "x": 580,
        "y": 460,
        "wires": []
    },
    {
        "id": "e66b91c2012398db",
        "type": "function",
        "z": "6ca16260e472a73c",
        "name": "",
        "func": "var data = msg.payload[21] << 8 | msg.payload[20];\nmsg.payload = data / 10;\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 420,
        "y": 460,
        "wires": [
            [
                "e70a1038739bcc78"
            ]
        ]
    },
    {
        "id": "d6505cb75de88e1a",
        "type": "ui_text",
        "z": "6ca16260e472a73c",
        "group": "4f23c99bc9155c0f",
        "order": 5,
        "width": 0,
        "height": 0,
        "name": "",
        "label": "Ionization current",
        "format": "{{msg.payload}}",
        "layout": "row-spread",
        "className": "",
        "x": 610,
        "y": 500,
        "wires": []
    },
    {
        "id": "6a6a42ec1c9e3387",
        "type": "function",
        "z": "6ca16260e472a73c",
        "name": "",
        "func": "var data = msg.payload[23] << 8 | msg.payload[22];\nmsg.payload = data / 100;\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 420,
        "y": 500,
        "wires": [
            [
                "d6505cb75de88e1a"
            ]
        ]
    },
    {
        "id": "5fec55d5d123b205",
        "type": "ui_text",
        "z": "6ca16260e472a73c",
        "group": "4f23c99bc9155c0f",
        "order": 6,
        "width": 0,
        "height": 0,
        "name": "",
        "label": "Water pressure",
        "format": "{{msg.payload}}",
        "layout": "row-spread",
        "className": "",
        "x": 600,
        "y": 540,
        "wires": []
    },
    {
        "id": "2735855a154c1e2c",
        "type": "function",
        "z": "6ca16260e472a73c",
        "name": "",
        "func": "var data = msg.payload[13] << 8 | msg.payload[12];\nmsg.payload = data / 100;\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 420,
        "y": 540,
        "wires": [
            [
                "5fec55d5d123b205"
            ]
        ]
    },
    {
        "id": "76c5f9a670203250",
        "type": "ui_text",
        "z": "6ca16260e472a73c",
        "group": "488c45089262ed4d",
        "order": 6,
        "width": 0,
        "height": 0,
        "name": "",
        "label": "Temp flow",
        "format": "{{msg.payload}}",
        "layout": "row-spread",
        "className": "",
        "x": 580,
        "y": 580,
        "wires": []
    },
    {
        "id": "68c2b18a8153a2b5",
        "type": "function",
        "z": "6ca16260e472a73c",
        "name": "",
        "func": "var data = msg.payload[3] << 8 | msg.payload[2];\nmsg.payload = data / 100;\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 420,
        "y": 580,
        "wires": [
            [
                "76c5f9a670203250",
                "0883f541a9103952"
            ]
        ]
    },
    {
        "id": "41f459e52bcf3685",
        "type": "ui_text",
        "z": "6ca16260e472a73c",
        "group": "488c45089262ed4d",
        "order": 8,
        "width": 0,
        "height": 0,
        "name": "",
        "label": "Temp setpoint",
        "format": "{{msg.payload}}",
        "layout": "row-spread",
        "className": "",
        "x": 600,
        "y": 620,
        "wires": []
    },
    {
        "id": "8f05f02e80cc424a",
        "type": "function",
        "z": "6ca16260e472a73c",
        "name": "",
        "func": "var data = msg.payload[15] << 8 | msg.payload[14];\nmsg.payload = data / 100;\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 420,
        "y": 620,
        "wires": [
            [
                "41f459e52bcf3685"
            ]
        ]
    },
    {
        "id": "bec080f0d7e08669",
        "type": "function",
        "z": "6ca16260e472a73c",
        "name": "",
        "func": "var text = \"[\" + msg.payload[26] + \"][\" + msg.payload[28] + \"]\";\nmsg.payload = text;\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 420,
        "y": 660,
        "wires": [
            [
                "f6cc2b973063eb11"
            ]
        ]
    },
    {
        "id": "f6cc2b973063eb11",
        "type": "ui_text",
        "z": "6ca16260e472a73c",
        "group": "c2a8d285036716aa",
        "order": 1,
        "width": 0,
        "height": 0,
        "name": "",
        "label": "Status",
        "format": "{{msg.payload}}",
        "layout": "row-spread",
        "className": "",
        "x": 570,
        "y": 660,
        "wires": []
    },
    {
        "id": "b479ba1a5b0a6f83",
        "type": "ui_chart",
        "z": "6ca16260e472a73c",
        "name": "",
        "group": "4f23c99bc9155c0f",
        "order": 2,
        "width": 0,
        "height": 0,
        "label": "",
        "chartType": "line",
        "legend": "false",
        "xformat": "HH:mm:ss",
        "interpolate": "linear",
        "nodata": "",
        "dot": false,
        "ymin": "",
        "ymax": "",
        "removeOlder": "1",
        "removeOlderPoints": "1000",
        "removeOlderUnit": "86400",
        "cutout": 0,
        "useOneColor": false,
        "useUTC": false,
        "colors": [
            "#1f77b4",
            "#aec7e8",
            "#ff7f0e",
            "#2ca02c",
            "#98df8a",
            "#d62728",
            "#ff9896",
            "#9467bd",
            "#c5b0d5"
        ],
        "outputs": 1,
        "useDifferentColor": false,
        "className": "",
        "x": 730,
        "y": 380,
        "wires": [
            []
        ]
    },
    {
        "id": "0883f541a9103952",
        "type": "ui_chart",
        "z": "6ca16260e472a73c",
        "name": "",
        "group": "488c45089262ed4d",
        "order": 7,
        "width": 0,
        "height": 0,
        "label": "",
        "chartType": "line",
        "legend": "false",
        "xformat": "HH:mm:ss",
        "interpolate": "linear",
        "nodata": "",
        "dot": false,
        "ymin": "",
        "ymax": "",
        "removeOlder": "1",
        "removeOlderPoints": "1000",
        "removeOlderUnit": "86400",
        "cutout": 0,
        "useOneColor": false,
        "useUTC": false,
        "colors": [
            "#1f77b4",
            "#aec7e8",
            "#ff7f0e",
            "#2ca02c",
            "#98df8a",
            "#d62728",
            "#ff9896",
            "#9467bd",
            "#c5b0d5"
        ],
        "outputs": 1,
        "useDifferentColor": false,
        "className": "",
        "x": 730,
        "y": 580,
        "wires": [
            []
        ]
    },
    {
        "id": "df25175df39296f9",
        "type": "ui_text",
        "z": "6ca16260e472a73c",
        "group": "c2a8d285036716aa",
        "order": 1,
        "width": 0,
        "height": 0,
        "name": "",
        "label": "",
        "format": "{{msg.payload}}",
        "layout": "row-spread",
        "className": "",
        "x": 570,
        "y": 700,
        "wires": []
    },
    {
        "id": "f19f2a2e02568d05",
        "type": "function",
        "z": "6ca16260e472a73c",
        "name": "",
        "func": "var status_data1 = msg.payload[26];\nvar status_data2 = msg.payload[28];\nvar status_index_mem = flow.get(\"status_index_mem\") || 1;\nvar text = \"\"\n;\nswitch(status_index_mem)\n{\n    case 1:\n        {\n            status_index_mem++;\n            if (status_data1 & 1) \n            {\n                text = \"GP Switch\"\n                break;\n            }\n        }\n    case 2:\n        {\n            status_index_mem++;\n            if (status_data1 & 2) \n            {\n                text = \"Tap Switch\"\n                break;\n            }\n        }\n    case 3:\n        {\n            status_index_mem++;\n            if (status_data1 & 4) \n            {\n                text = \"Room thermostat\"\n                break;\n            }\n        }\n    case 4:\n        {\n            status_index_mem++;\n            if (status_data1 & 8) \n            {\n                text = \"Pump\"\n                break;\n            }\n        }\n    case 5:\n        {\n            status_index_mem++;\n            if (status_data1 & 16) \n            {\n                text = \"DWK\"\n                break;\n            }\n        }\n    case 6:\n        {\n            status_index_mem++;\n            if (status_data1 & 32) \n            {\n                text = \"Alarm\"\n                break;\n            }\n        }\n    case 7:\n        {\n            status_index_mem++;\n            if (status_data1 & 64) \n            {\n                text = \"Cascade\"\n                break;\n            }\n        }\n    case 8:\n        {\n            status_index_mem++;\n            if (status_data1 & 128) \n            {\n                text = \"Opentherm\"\n                break;\n            }\n        }\n    case 9:\n        {\n            status_index_mem++;\n            if (status_data2 & 1) \n            {\n                text = \"Gas valve\"\n                break;\n            }\n        }\n     case 10:\n        {\n            status_index_mem++;\n            if (status_data2 & 2) \n            {\n                text = \"Spark\"\n                break;\n            }\n        }\n    case 11:\n        {\n            status_index_mem++;\n            if (status_data2 & 4) \n            {\n                text = \"Ionization signal\"\n                break;\n            }\n        }\n    case 12:\n        {\n            status_index_mem++;\n            if (status_data2 & 8) \n            {\n                text = \"CH OT\"\n                break;\n            }\n        }\n    case 13:\n        {\n            status_index_mem++;\n            if (status_data2 & 16) \n            {\n                text = \"Low waterpressure\"\n                break;\n            }\n        }\n    case 14:\n        {\n            status_index_mem++;\n            if (status_data2 & 32) \n            {\n                text = \"Pressure sensor\"\n                break;\n            }\n        }\n    case 15:\n        {\n            status_index_mem++;\n            if (status_data2 & 64) \n            {\n                text = \"Burner block\"\n                break;\n            }\n        }\n    case 16:\n        {\n            status_index_mem++;\n            if (status_data2 & 1) \n            {\n                text = \"Grad flag\"\n                break;\n            }\n        }\n   default:\n        {\n            status_index_mem = 1;\n            text = \"-\"\n        }\n}\n\nflow.set(\"status_index_mem\", status_index_mem);\nmsg.payload = text;\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 420,
        "y": 700,
        "wires": [
            [
                "df25175df39296f9"
            ]
        ]
    },
    {
        "id": "1984d35452ccd624",
        "type": "function",
        "z": "6ca16260e472a73c",
        "name": "",
        "func": "var text = \"[\" + msg.payload[24] + \"]\";\nmsg.payload = text;\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 420,
        "y": 740,
        "wires": [
            [
                "fdea5884a717f9a2"
            ]
        ]
    },
    {
        "id": "fdea5884a717f9a2",
        "type": "ui_text",
        "z": "6ca16260e472a73c",
        "group": "c2a8d285036716aa",
        "order": 1,
        "width": 0,
        "height": 0,
        "name": "",
        "label": "Code",
        "format": "{{msg.payload}}",
        "layout": "row-spread",
        "className": "",
        "x": 570,
        "y": 740,
        "wires": []
    },
    {
        "id": "4131bc6b9cf0af1a",
        "type": "function",
        "z": "6ca16260e472a73c",
        "name": "",
        "func": "var code_data = msg.payload[24];\nvar code_index_mem = flow.get(\"code_index_mem\") || 1;\nvar text = \"\"\n;\nswitch(code_index_mem)\n{\n    case 1:\n        {\n            code_index_mem++;\n            if (code_data == 51) \n            {\n                text = \"Tap water\";\n                break;\n            }\n        }\n    case 2:\n        {\n            code_index_mem++;\n            if (code_data == 102) \n            {\n                text = \"CV water\";\n                break;\n            }\n        }\n    case 3:\n        {\n            code_index_mem++;\n            if (code_data == 126) \n            {\n                text = \"CV rust\";\n                break;\n            }\n        }\n    case 4:\n        {\n            code_index_mem++;\n            if (code_data == 204) \n            {\n                text = \"CV rust\";\n                break;\n            }\n        }\n    case 5:\n        {\n            code_index_mem++;\n            if (code_data == 231) \n            {\n                text = \"Tap water nadraai\";\n                break;\n            }\n        }\n    default:\n        {\n            code_index_mem = 1;\n            text = \"-\"\n        }\n}\n\nflow.set(\"code_index_mem\", code_index_mem);\nmsg.payload = text;\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 420,
        "y": 780,
        "wires": [
            [
                "f5933627dbd8437f"
            ]
        ]
    },
    {
        "id": "f5933627dbd8437f",
        "type": "ui_text",
        "z": "6ca16260e472a73c",
        "group": "c2a8d285036716aa",
        "order": 1,
        "width": 0,
        "height": 0,
        "name": "",
        "label": "",
        "format": "{{msg.payload}}",
        "layout": "row-spread",
        "className": "",
        "x": 570,
        "y": 780,
        "wires": []
    },
    {
        "id": "4cfcea21ab5dcd0e",
        "type": "ui_text",
        "z": "6ca16260e472a73c",
        "group": "c2a8d285036716aa",
        "order": 1,
        "width": 0,
        "height": 0,
        "name": "",
        "label": "Error",
        "format": "{{msg.payload}}",
        "layout": "row-spread",
        "className": "",
        "x": 570,
        "y": 820,
        "wires": []
    },
    {
        "id": "9920107429074e9a",
        "type": "function",
        "z": "6ca16260e472a73c",
        "name": "",
        "func": "var text = \"[\" + msg.payload[27] + \"][\" + msg.payload[29] + \"]\";\nmsg.payload = text;\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 420,
        "y": 820,
        "wires": [
            [
                "4cfcea21ab5dcd0e"
            ]
        ]
    },
    {
        "id": "38e72ab2.ce2d56",
        "type": "mqtt-broker",
        "name": "MServer",
        "broker": "172.17.0.6",
        "port": "1883",
        "clientid": "",
        "usetls": false,
        "protocolVersion": "3",
        "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": {},
        "sessionExpiry": ""
    },
    {
        "id": "d473aec7f565bb0b",
        "type": "ui_group",
        "name": "Communicatie",
        "tab": "0cfe6874194b9e46",
        "order": 4,
        "disp": true,
        "width": "6",
        "collapse": false,
        "className": ""
    },
    {
        "id": "488c45089262ed4d",
        "type": "ui_group",
        "name": "Temperature",
        "tab": "0cfe6874194b9e46",
        "order": 3,
        "disp": true,
        "width": "6",
        "collapse": false,
        "className": ""
    },
    {
        "id": "4f23c99bc9155c0f",
        "type": "ui_group",
        "name": "Kachel",
        "tab": "0cfe6874194b9e46",
        "order": 2,
        "disp": true,
        "width": "6",
        "collapse": false,
        "className": ""
    },
    {
        "id": "c2a8d285036716aa",
        "type": "ui_group",
        "name": "Status",
        "tab": "0cfe6874194b9e46",
        "order": 1,
        "disp": true,
        "width": "6",
        "collapse": false,
        "className": ""
    },
    {
        "id": "0cfe6874194b9e46",
        "type": "ui_tab",
        "name": "Kachel",
        "icon": "fa-fire",
        "order": 4,
        "disabled": false,
        "hidden": false
    }
]