[
    {
        "id": "6feaef89.18d54",
        "type": "tab",
        "label": "Dashboard Example",
        "disabled": false,
        "info": ""
    },
    {
        "id": "9aefd5f8.49de",
        "type": "ui_gauge",
        "z": "6feaef89.18d54",
        "name": "",
        "group": "768bf3b4.34a58c",
        "order": 1,
        "width": "0",
        "height": "0",
        "gtype": "gage",
        "title": "Power",
        "label": "kwh",
        "format": "{{value}}",
        "min": 0,
        "max": "1000",
        "colors": [
            "#00b500",
            "#e6e600",
            "#ca3838"
        ],
        "seg1": "",
        "seg2": "",
        "x": 1070,
        "y": 80,
        "wires": []
    },
    {
        "id": "11b4de27.d0b3da",
        "type": "ui_gauge",
        "z": "6feaef89.18d54",
        "name": "",
        "group": "915b9c2a.df6978",
        "order": 1,
        "width": "0",
        "height": "0",
        "gtype": "gage",
        "title": "Power",
        "label": "kwh",
        "format": "{{value}}",
        "min": 0,
        "max": "1000",
        "colors": [
            "#00b500",
            "#e6e600",
            "#ca3838"
        ],
        "seg1": "",
        "seg2": "",
        "x": 1070,
        "y": 320,
        "wires": []
    },
    {
        "id": "db3b8820.3cfa38",
        "type": "debug",
        "z": "6feaef89.18d54",
        "name": "",
        "active": false,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "false",
        "x": 1090,
        "y": 160,
        "wires": []
    },
    {
        "id": "b6b4419e.2433",
        "type": "ui_chart",
        "z": "6feaef89.18d54",
        "name": "",
        "group": "768bf3b4.34a58c",
        "order": 2,
        "width": 0,
        "height": 0,
        "label": "History",
        "chartType": "line",
        "legend": "true",
        "xformat": "HH:mm:ss",
        "interpolate": "step",
        "nodata": "",
        "dot": false,
        "ymin": "",
        "ymax": "",
        "removeOlder": 1,
        "removeOlderPoints": "",
        "removeOlderUnit": "3600",
        "cutout": 0,
        "useOneColor": false,
        "colors": [
            "#1f77b4",
            "#aec7e8",
            "#ff7f0e",
            "#2ca02c",
            "#98df8a",
            "#d62728",
            "#ff9896",
            "#9467bd",
            "#c5b0d5"
        ],
        "useOldStyle": false,
        "x": 1070,
        "y": 120,
        "wires": [
            [],
            []
        ]
    },
    {
        "id": "ad7c4b46.cf2a8",
        "type": "function",
        "z": "6feaef89.18d54",
        "name": "Random Number",
        "func": "var lBypass1 = flow.get(\"lBypass1\");\n\nif (msg.topic == \"bypass1\" && msg.payload == \"true\" ) {\n  lBypass1 = 1; \n}\nif (msg.topic == \"bypass1\" && msg.payload == \"false\" ) {\n  lBypass1 = 0; \n}\n\nif (lBypass1 === 0) {\n   rnd = Math.floor (Math.random() * (50 -30) +30);\n} else {\n    rnd = 0;\n}  \nmsg.payload = rnd;\nflow.set(\"lBypass1\",lBypass1);  \n\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "x": 690,
        "y": 80,
        "wires": [
            [
                "db3b8820.3cfa38",
                "9aefd5f8.49de",
                "b6b4419e.2433"
            ]
        ]
    },
    {
        "id": "ea151dde.309a9",
        "type": "inject",
        "z": "6feaef89.18d54",
        "name": "",
        "topic": "Trigger",
        "payload": "",
        "payloadType": "date",
        "repeat": "5",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "x": 190,
        "y": 80,
        "wires": [
            [
                "ad7c4b46.cf2a8",
                "6b5c8aee.7e54fc",
                "b63aa31d.650948",
                "1a61d13b.0d001f",
                "325309d8.ffcc0e"
            ]
        ]
    },
    {
        "id": "6b5c8aee.7e54fc",
        "type": "function",
        "z": "6feaef89.18d54",
        "name": "Random Number",
        "func": "var lBypass2 = flow.get(\"lBypass2\");\n\nif (msg.topic == \"bypass2\" && msg.payload == \"true\" ) {\n  lBypass2 = 1; \n}\nif (msg.topic == \"bypass2\" && msg.payload == \"false\" ) {\n  lBypass2 = 0; \n}\n\nif (lBypass2 === 0) {\n    rnd = Math.floor (Math.random() * (100 -30) +70);\n} else {\n    rnd = 0;\n}  \nmsg.payload = rnd;\nflow.set(\"lBypass2\",lBypass2);  \n\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "x": 690,
        "y": 340,
        "wires": [
            [
                "11b4de27.d0b3da",
                "522abb8e.673e54"
            ]
        ]
    },
    {
        "id": "522abb8e.673e54",
        "type": "ui_chart",
        "z": "6feaef89.18d54",
        "name": "",
        "group": "915b9c2a.df6978",
        "order": 2,
        "width": 0,
        "height": 0,
        "label": "History",
        "chartType": "line",
        "legend": "true",
        "xformat": "HH:mm:ss",
        "interpolate": "step",
        "nodata": "",
        "dot": false,
        "ymin": "",
        "ymax": "",
        "removeOlder": 1,
        "removeOlderPoints": "",
        "removeOlderUnit": "3600",
        "cutout": 0,
        "useOneColor": false,
        "colors": [
            "#1f77b4",
            "#aec7e8",
            "#ff7f0e",
            "#2ca02c",
            "#98df8a",
            "#d62728",
            "#ff9896",
            "#9467bd",
            "#c5b0d5"
        ],
        "useOldStyle": false,
        "x": 1070,
        "y": 360,
        "wires": [
            [],
            []
        ]
    },
    {
        "id": "71b70be0.46b304",
        "type": "ui_gauge",
        "z": "6feaef89.18d54",
        "name": "",
        "group": "f1427da4.741f1",
        "order": 1,
        "width": "0",
        "height": "0",
        "gtype": "gage",
        "title": "Power",
        "label": "kwh",
        "format": "{{value}}",
        "min": 0,
        "max": "1000",
        "colors": [
            "#00b500",
            "#e6e600",
            "#ca3838"
        ],
        "seg1": "",
        "seg2": "",
        "x": 1070,
        "y": 520,
        "wires": []
    },
    {
        "id": "38c71c11.cc98e4",
        "type": "ui_chart",
        "z": "6feaef89.18d54",
        "name": "",
        "group": "f1427da4.741f1",
        "order": 2,
        "width": 0,
        "height": 0,
        "label": "History",
        "chartType": "line",
        "legend": "true",
        "xformat": "HH:mm:ss",
        "interpolate": "step",
        "nodata": "",
        "dot": false,
        "ymin": "",
        "ymax": "",
        "removeOlder": 1,
        "removeOlderPoints": "",
        "removeOlderUnit": "3600",
        "cutout": 0,
        "useOneColor": false,
        "colors": [
            "#1f77b4",
            "#aec7e8",
            "#ff7f0e",
            "#2ca02c",
            "#98df8a",
            "#d62728",
            "#ff9896",
            "#9467bd",
            "#c5b0d5"
        ],
        "useOldStyle": false,
        "x": 1070,
        "y": 560,
        "wires": [
            [],
            []
        ]
    },
    {
        "id": "b63aa31d.650948",
        "type": "function",
        "z": "6feaef89.18d54",
        "name": "Random Number",
        "func": "var lBypass3 = flow.get(\"lBypass3\");\n\nif (msg.topic == \"bypass3\" && msg.payload == \"true\" ) {\n  lBypass3 = 1; \n}\nif (msg.topic == \"bypass3\" && msg.payload == \"false\" ) {\n  lBypass3 = 0; \n}\n\nif (lBypass3 === 0) {\n    rnd = Math.floor (Math.random() * (1000 -300) +150);\n} else {\n    rnd = 0;\n}  \nmsg.payload = rnd;\nflow.set(\"lBypass3\",lBypass3);  \n\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "x": 690,
        "y": 520,
        "wires": [
            [
                "71b70be0.46b304",
                "38c71c11.cc98e4"
            ]
        ]
    },
    {
        "id": "84e2f245.4acc2",
        "type": "ui_switch",
        "z": "6feaef89.18d54",
        "name": "",
        "label": "Bypass Turbine 1",
        "group": "74ff6f1b.abb518",
        "order": 0,
        "width": 0,
        "height": 0,
        "passthru": true,
        "decouple": "false",
        "topic": "bypass1",
        "style": "",
        "onvalue": "true",
        "onvalueType": "str",
        "onicon": "",
        "oncolor": "",
        "offvalue": "false",
        "offvalueType": "str",
        "officon": "",
        "offcolor": "",
        "x": 190,
        "y": 180,
        "wires": [
            [
                "ad7c4b46.cf2a8"
            ]
        ]
    },
    {
        "id": "3eaecf9c.5e114",
        "type": "ui_slider",
        "z": "6feaef89.18d54",
        "name": "",
        "label": "Set Cooling",
        "group": "768bf3b4.34a58c",
        "order": 4,
        "width": 0,
        "height": 0,
        "passthru": true,
        "topic": "",
        "min": 0,
        "max": "100",
        "step": 1,
        "x": 680,
        "y": 220,
        "wires": [
            [
                "1473a559.52c3db"
            ]
        ]
    },
    {
        "id": "1473a559.52c3db",
        "type": "ui_gauge",
        "z": "6feaef89.18d54",
        "name": "",
        "group": "768bf3b4.34a58c",
        "order": 3,
        "width": "0",
        "height": "0",
        "gtype": "donut",
        "title": "Cooling",
        "label": "%",
        "format": "{{value}}",
        "min": 0,
        "max": "100",
        "colors": [
            "#00b500",
            "#e6e600",
            "#ca3838"
        ],
        "seg1": "",
        "seg2": "",
        "x": 1080,
        "y": 220,
        "wires": []
    },
    {
        "id": "220cde55.13b9ea",
        "type": "ui_slider",
        "z": "6feaef89.18d54",
        "name": "",
        "label": "Set Cooling",
        "group": "915b9c2a.df6978",
        "order": 4,
        "width": 0,
        "height": 0,
        "passthru": true,
        "topic": "",
        "min": 0,
        "max": "100",
        "step": 1,
        "x": 670,
        "y": 400,
        "wires": [
            [
                "a89c5215.252ad8"
            ]
        ]
    },
    {
        "id": "a89c5215.252ad8",
        "type": "ui_gauge",
        "z": "6feaef89.18d54",
        "name": "",
        "group": "915b9c2a.df6978",
        "order": 3,
        "width": "0",
        "height": "0",
        "gtype": "donut",
        "title": "Cooling",
        "label": "%",
        "format": "{{value}}",
        "min": 0,
        "max": "100",
        "colors": [
            "#00b500",
            "#e6e600",
            "#ca3838"
        ],
        "seg1": "",
        "seg2": "",
        "x": 1070,
        "y": 400,
        "wires": []
    },
    {
        "id": "b0598603.89ebc",
        "type": "ui_slider",
        "z": "6feaef89.18d54",
        "name": "",
        "label": "Set Cooling",
        "group": "f1427da4.741f1",
        "order": 4,
        "width": 0,
        "height": 0,
        "passthru": true,
        "topic": "",
        "min": 0,
        "max": "100",
        "step": 1,
        "x": 670,
        "y": 620,
        "wires": [
            [
                "ff25b68c.dc744"
            ]
        ]
    },
    {
        "id": "ff25b68c.dc744",
        "type": "ui_gauge",
        "z": "6feaef89.18d54",
        "name": "",
        "group": "f1427da4.741f1",
        "order": 3,
        "width": "0",
        "height": "0",
        "gtype": "donut",
        "title": "Cooling",
        "label": "%",
        "format": "{{value}}",
        "min": 0,
        "max": "100",
        "colors": [
            "#00b500",
            "#e6e600",
            "#ca3838"
        ],
        "seg1": "",
        "seg2": "",
        "x": 1070,
        "y": 620,
        "wires": []
    },
    {
        "id": "4e05f009.d17c88",
        "type": "ui_switch",
        "z": "6feaef89.18d54",
        "name": "",
        "label": "Bypass Turbine 2",
        "group": "74ff6f1b.abb518",
        "order": 0,
        "width": 0,
        "height": 0,
        "passthru": true,
        "decouple": "false",
        "topic": "bypass2",
        "style": "",
        "onvalue": "true",
        "onvalueType": "str",
        "onicon": "",
        "oncolor": "",
        "offvalue": "false",
        "offvalueType": "str",
        "officon": "",
        "offcolor": "",
        "x": 190,
        "y": 340,
        "wires": [
            [
                "6b5c8aee.7e54fc"
            ]
        ]
    },
    {
        "id": "283f6efc.e05a8a",
        "type": "ui_switch",
        "z": "6feaef89.18d54",
        "name": "",
        "label": "Bypass Turbine 3",
        "group": "74ff6f1b.abb518",
        "order": 0,
        "width": 0,
        "height": 0,
        "passthru": true,
        "decouple": "false",
        "topic": "bypass3",
        "style": "",
        "onvalue": "true",
        "onvalueType": "str",
        "onicon": "",
        "oncolor": "",
        "offvalue": "false",
        "offvalueType": "str",
        "officon": "",
        "offcolor": "",
        "x": 190,
        "y": 520,
        "wires": [
            [
                "b63aa31d.650948"
            ]
        ]
    },
    {
        "id": "c23c4ea2.7ecdc",
        "type": "ui_gauge",
        "z": "6feaef89.18d54",
        "name": "",
        "group": "74ff6f1b.abb518",
        "order": 0,
        "width": 0,
        "height": 0,
        "gtype": "compass",
        "title": "Shift",
        "label": "%",
        "format": "{{value}}",
        "min": 0,
        "max": "100",
        "colors": [
            "#00b500",
            "#e6e600",
            "#ca3838"
        ],
        "seg1": "",
        "seg2": "",
        "x": 1070,
        "y": 720,
        "wires": []
    },
    {
        "id": "1a61d13b.0d001f",
        "type": "function",
        "z": "6feaef89.18d54",
        "name": "Random Number",
        "func": "rnd = Math.floor (Math.random() * (100 -30) +1);\n\nmsg.payload = rnd;\n\n\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "x": 690,
        "y": 720,
        "wires": [
            [
                "c23c4ea2.7ecdc"
            ]
        ]
    },
    {
        "id": "c7aa3d69.92083",
        "type": "ui_gauge",
        "z": "6feaef89.18d54",
        "name": "",
        "group": "74ff6f1b.abb518",
        "order": 0,
        "width": 0,
        "height": 0,
        "gtype": "wave",
        "title": "Level",
        "label": "%",
        "format": "{{value}}",
        "min": 0,
        "max": "100",
        "colors": [
            "#00b500",
            "#e6e600",
            "#ca3838"
        ],
        "seg1": "",
        "seg2": "",
        "x": 1070,
        "y": 760,
        "wires": []
    },
    {
        "id": "325309d8.ffcc0e",
        "type": "function",
        "z": "6feaef89.18d54",
        "name": "Random Number",
        "func": "rnd = Math.floor (Math.random() * (10 -5) +1);\n\nmsg.payload = rnd;\n\n\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "x": 690,
        "y": 760,
        "wires": [
            [
                "c7aa3d69.92083"
            ]
        ]
    },
    {
        "id": "43fd1cf0.a4d76c",
        "type": "comment",
        "z": "6feaef89.18d54",
        "name": "Generate a Trigger every 5seconds",
        "info": "",
        "x": 240,
        "y": 40,
        "wires": []
    },
    {
        "id": "55ae2609.c4b678",
        "type": "comment",
        "z": "6feaef89.18d54",
        "name": "Dashboard switch",
        "info": "",
        "x": 190,
        "y": 140,
        "wires": []
    },
    {
        "id": "768bf3b4.34a58c",
        "type": "ui_group",
        "z": "",
        "name": "Turbine 1",
        "tab": "7b0f28b.4dc5758",
        "order": 1,
        "disp": true,
        "width": "6",
        "collapse": false
    },
    {
        "id": "915b9c2a.df6978",
        "type": "ui_group",
        "z": "",
        "name": "Turbine 2",
        "tab": "7b0f28b.4dc5758",
        "order": 2,
        "disp": true,
        "width": "6",
        "collapse": false
    },
    {
        "id": "f1427da4.741f1",
        "type": "ui_group",
        "z": "",
        "name": "Turbine 3",
        "tab": "7b0f28b.4dc5758",
        "order": 3,
        "disp": true,
        "width": "6",
        "collapse": false
    },
    {
        "id": "74ff6f1b.abb518",
        "type": "ui_group",
        "z": "",
        "name": "Control",
        "tab": "7b0f28b.4dc5758",
        "order": 4,
        "disp": true,
        "width": "6",
        "collapse": false
    },
    {
        "id": "7b0f28b.4dc5758",
        "type": "ui_tab",
        "z": "",
        "name": "Energy",
        "icon": "dashboard",
        "order": 2
    }
]