[
    {
        "id": "9cc5aa5d9083db88",
        "type": "tab",
        "label": "Flow 1",
        "disabled": false,
        "info": "",
        "env": []
    },
    {
        "id": "2c698dcb235fb9d3",
        "type": "exec",
        "z": "9cc5aa5d9083db88",
        "command": "/home/pi/test/digital/set-digital-output O0 ",
        "addpay": "payload",
        "append": "",
        "useSpawn": "false",
        "timer": "",
        "winHide": false,
        "oldrc": false,
        "name": "",
        "x": 460,
        "y": 120,
        "wires": [
            [],
            [],
            []
        ]
    },
    {
        "id": "4542548e2165501f",
        "type": "ui_switch",
        "z": "9cc5aa5d9083db88",
        "name": "",
        "label": "O0",
        "tooltip": "",
        "group": "0af2a30526d9366f",
        "order": 1,
        "width": 3,
        "height": 1,
        "passthru": true,
        "decouple": "false",
        "topic": "topic",
        "topicType": "msg",
        "style": "",
        "onvalue": "1",
        "onvalueType": "num",
        "onicon": "",
        "oncolor": "",
        "offvalue": "0",
        "offvalueType": "num",
        "officon": "",
        "offcolor": "",
        "animate": false,
        "className": "",
        "x": 190,
        "y": 120,
        "wires": [
            [
                "2c698dcb235fb9d3"
            ]
        ]
    },
    {
        "id": "af5e7468f6e17078",
        "type": "exec",
        "z": "9cc5aa5d9083db88",
        "command": "/home/pi/test/digital/set-digital-output O1 ",
        "addpay": "payload",
        "append": "",
        "useSpawn": "false",
        "timer": "",
        "winHide": false,
        "oldrc": false,
        "name": "",
        "x": 460,
        "y": 200,
        "wires": [
            [],
            [],
            []
        ]
    },
    {
        "id": "4050d8b5d98de377",
        "type": "ui_switch",
        "z": "9cc5aa5d9083db88",
        "name": "",
        "label": "O1",
        "tooltip": "",
        "group": "0af2a30526d9366f",
        "order": 2,
        "width": 3,
        "height": 1,
        "passthru": true,
        "decouple": "false",
        "topic": "topic",
        "topicType": "msg",
        "style": "",
        "onvalue": "1",
        "onvalueType": "num",
        "onicon": "",
        "oncolor": "",
        "offvalue": "0",
        "offvalueType": "num",
        "officon": "",
        "offcolor": "",
        "animate": false,
        "className": "",
        "x": 190,
        "y": 200,
        "wires": [
            [
                "af5e7468f6e17078"
            ]
        ]
    },
    {
        "id": "fed2991a4a4d674f",
        "type": "exec",
        "z": "9cc5aa5d9083db88",
        "command": "/home/pi/test/digital/set-digital-output O2 ",
        "addpay": "payload",
        "append": "",
        "useSpawn": "false",
        "timer": "",
        "winHide": false,
        "oldrc": false,
        "name": "",
        "x": 460,
        "y": 280,
        "wires": [
            [],
            [],
            []
        ]
    },
    {
        "id": "9d79f1a9445c9c72",
        "type": "ui_switch",
        "z": "9cc5aa5d9083db88",
        "name": "",
        "label": "O2",
        "tooltip": "",
        "group": "0af2a30526d9366f",
        "order": 3,
        "width": 3,
        "height": 1,
        "passthru": true,
        "decouple": "false",
        "topic": "topic",
        "topicType": "msg",
        "style": "",
        "onvalue": "1",
        "onvalueType": "num",
        "onicon": "",
        "oncolor": "",
        "offvalue": "0",
        "offvalueType": "num",
        "officon": "",
        "offcolor": "",
        "animate": false,
        "className": "",
        "x": 190,
        "y": 280,
        "wires": [
            [
                "fed2991a4a4d674f"
            ]
        ]
    },
    {
        "id": "b8cd43e358288650",
        "type": "exec",
        "z": "9cc5aa5d9083db88",
        "command": "/home/pi/test/digital/set-digital-output O3 ",
        "addpay": "payload",
        "append": "",
        "useSpawn": "false",
        "timer": "",
        "winHide": false,
        "oldrc": false,
        "name": "",
        "x": 460,
        "y": 360,
        "wires": [
            [],
            [],
            []
        ]
    },
    {
        "id": "46bca2fb8b962da8",
        "type": "ui_switch",
        "z": "9cc5aa5d9083db88",
        "name": "",
        "label": "O3",
        "tooltip": "",
        "group": "0af2a30526d9366f",
        "order": 4,
        "width": 3,
        "height": 1,
        "passthru": true,
        "decouple": "false",
        "topic": "topic",
        "topicType": "msg",
        "style": "",
        "onvalue": "1",
        "onvalueType": "num",
        "onicon": "",
        "oncolor": "",
        "offvalue": "0",
        "offvalueType": "num",
        "officon": "",
        "offcolor": "",
        "animate": false,
        "className": "",
        "x": 190,
        "y": 360,
        "wires": [
            [
                "b8cd43e358288650"
            ]
        ]
    },
    {
        "id": "7d0207bd30186a7e",
        "type": "exec",
        "z": "9cc5aa5d9083db88",
        "command": "/home/pi/test/digital/set-digital-output O4 ",
        "addpay": "payload",
        "append": "",
        "useSpawn": "false",
        "timer": "",
        "winHide": false,
        "oldrc": false,
        "name": "",
        "x": 460,
        "y": 440,
        "wires": [
            [],
            [],
            []
        ]
    },
    {
        "id": "6423abb0a7939abc",
        "type": "ui_switch",
        "z": "9cc5aa5d9083db88",
        "name": "",
        "label": "O4",
        "tooltip": "",
        "group": "0af2a30526d9366f",
        "order": 5,
        "width": 3,
        "height": 1,
        "passthru": true,
        "decouple": "false",
        "topic": "topic",
        "topicType": "msg",
        "style": "",
        "onvalue": "1",
        "onvalueType": "num",
        "onicon": "",
        "oncolor": "",
        "offvalue": "0",
        "offvalueType": "num",
        "officon": "",
        "offcolor": "",
        "animate": false,
        "className": "",
        "x": 190,
        "y": 440,
        "wires": [
            [
                "7d0207bd30186a7e"
            ]
        ]
    },
    {
        "id": "d8207e83741b3cfd",
        "type": "exec",
        "z": "9cc5aa5d9083db88",
        "command": "/home/pi/test/digital/get-digital-input I2",
        "addpay": "",
        "append": "",
        "useSpawn": "false",
        "timer": "",
        "winHide": false,
        "oldrc": false,
        "name": "",
        "x": 1050,
        "y": 280,
        "wires": [
            [
                "a49cd9ef23f8678b"
            ],
            [],
            []
        ]
    },
    {
        "id": "ae4d16a856e6c115",
        "type": "inject",
        "z": "9cc5aa5d9083db88",
        "name": "",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "1",
        "crontab": "",
        "once": true,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "",
        "payloadType": "date",
        "x": 750,
        "y": 280,
        "wires": [
            [
                "d8207e83741b3cfd",
                "ba10f1f34f151ba3",
                "49daaf18cc5a83eb",
                "bf57e0a340a2b260",
                "500272f1a0e7636b"
            ]
        ]
    },
    {
        "id": "bf57e0a340a2b260",
        "type": "exec",
        "z": "9cc5aa5d9083db88",
        "command": "/home/pi/test/digital/get-digital-input I3",
        "addpay": "",
        "append": "",
        "useSpawn": "false",
        "timer": "",
        "winHide": false,
        "oldrc": false,
        "name": "",
        "x": 1050,
        "y": 340,
        "wires": [
            [
                "b506c28c9a1566c7"
            ],
            [],
            []
        ]
    },
    {
        "id": "500272f1a0e7636b",
        "type": "exec",
        "z": "9cc5aa5d9083db88",
        "command": "/home/pi/test/digital/get-digital-input I4",
        "addpay": "",
        "append": "",
        "useSpawn": "false",
        "timer": "",
        "winHide": false,
        "oldrc": false,
        "name": "",
        "x": 1050,
        "y": 400,
        "wires": [
            [
                "6c81a43a22c62a31"
            ],
            [],
            []
        ]
    },
    {
        "id": "ba10f1f34f151ba3",
        "type": "exec",
        "z": "9cc5aa5d9083db88",
        "command": "/home/pi/test/analog/get-analog-input I0",
        "addpay": "",
        "append": "",
        "useSpawn": "false",
        "timer": "",
        "winHide": false,
        "oldrc": false,
        "name": "",
        "x": 1060,
        "y": 160,
        "wires": [
            [
                "a142fed3c2fa4c38"
            ],
            [],
            []
        ]
    },
    {
        "id": "a142fed3c2fa4c38",
        "type": "ui_gauge",
        "z": "9cc5aa5d9083db88",
        "name": "",
        "group": "1386c8c71c82ba37",
        "order": 1,
        "width": 6,
        "height": 5,
        "gtype": "gage",
        "title": "I0",
        "label": "",
        "format": "{{value}}",
        "min": 0,
        "max": "4095",
        "colors": [
            "#00b500",
            "#e6e600",
            "#ca3838"
        ],
        "seg1": "",
        "seg2": "",
        "diff": false,
        "className": "",
        "x": 1290,
        "y": 160,
        "wires": []
    },
    {
        "id": "49daaf18cc5a83eb",
        "type": "exec",
        "z": "9cc5aa5d9083db88",
        "command": "/home/pi/test/analog/get-analog-input I1",
        "addpay": "",
        "append": "",
        "useSpawn": "false",
        "timer": "",
        "winHide": false,
        "oldrc": false,
        "name": "",
        "x": 1060,
        "y": 220,
        "wires": [
            [
                "017926b5e1da2cec"
            ],
            [],
            []
        ]
    },
    {
        "id": "017926b5e1da2cec",
        "type": "ui_gauge",
        "z": "9cc5aa5d9083db88",
        "name": "",
        "group": "1386c8c71c82ba37",
        "order": 2,
        "width": 6,
        "height": 5,
        "gtype": "gage",
        "title": "I1",
        "label": "",
        "format": "{{value}}",
        "min": 0,
        "max": "4095",
        "colors": [
            "#00b500",
            "#e6e600",
            "#ca3838"
        ],
        "seg1": "",
        "seg2": "",
        "diff": false,
        "className": "",
        "x": 1290,
        "y": 220,
        "wires": []
    },
    {
        "id": "6c81a43a22c62a31",
        "type": "ui_template",
        "z": "9cc5aa5d9083db88",
        "group": "1386c8c71c82ba37",
        "name": "",
        "order": 5,
        "width": 4,
        "height": 3,
        "format": "<div class=\"lamp-container\">\n    <h3>I4</h3>\n    <div class=\"lamp-wrapper\">\n        <div class=\"lamp\">\n            <div class=\"lamp-bulb\" style=\"background-color: {{msg.payload == 1 ? 'green' : 'red'}};\"></div>\n        </div>\n    </div>\n</div>\n\n<style>\n    .lamp-container {\n        text-align: center;\n        padding: 10px;\n    }\n\n    h3 {\n        margin-bottom: 10px;\n        font-family: Arial, sans-serif;\n        color: #333;\n    }\n\n    .lamp-wrapper {\n        display: inline-block;\n        padding: 10px;\n    }\n\n    .lamp {\n        position: relative;\n        width: 30px;\n        /* Smaller width for the black part */\n        height: 60px;\n        /* Smaller height for the black part */\n        background-color: #333;\n        border-radius: 15px 15px 0 0;\n        margin: 0 auto;\n        box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.3);\n    }\n\n    .lamp-bulb {\n        position: absolute;\n        top: 5px;\n        left: 50%;\n        width: 25px;\n        height: 25px;\n        margin-left: -12.5px;\n        background-color: red;\n        border-radius: 50%;\n        box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);\n        transition: background-color 0.3s ease;\n    }\n\n    .lamp::after {\n        content: '';\n        position: absolute;\n        bottom: -5px;\n        left: 50%;\n        width: 10px;\n        height: 20px;\n        margin-left: -5px;\n        background-color: #333;\n        border-radius: 50%;\n    }\n</style>",
        "storeOutMessages": true,
        "fwdInMessages": true,
        "resendOnRefresh": true,
        "templateScope": "local",
        "className": "",
        "x": 1300,
        "y": 400,
        "wires": [
            []
        ]
    },
    {
        "id": "b506c28c9a1566c7",
        "type": "ui_template",
        "z": "9cc5aa5d9083db88",
        "group": "1386c8c71c82ba37",
        "name": "",
        "order": 4,
        "width": 4,
        "height": 3,
        "format": "<div class=\"lamp-container\">\n    <h3>I3</h3>\n    <div class=\"lamp-wrapper\">\n        <div class=\"lamp\">\n            <div class=\"lamp-bulb\" style=\"background-color: {{msg.payload == 1 ? 'green' : 'red'}};\"></div>\n        </div>\n    </div>\n</div>\n\n<style>\n    .lamp-container {\n        text-align: center;\n        padding: 10px;\n    }\n\n    h3 {\n        margin-bottom: 10px;\n        font-family: Arial, sans-serif;\n        color: #333;\n    }\n\n    .lamp-wrapper {\n        display: inline-block;\n        padding: 10px;\n    }\n\n    .lamp {\n        position: relative;\n        width: 30px;\n        /* Smaller width for the black part */\n        height: 60px;\n        /* Smaller height for the black part */\n        background-color: #333;\n        border-radius: 15px 15px 0 0;\n        margin: 0 auto;\n        box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.3);\n    }\n\n    .lamp-bulb {\n        position: absolute;\n        top: 5px;\n        left: 50%;\n        width: 25px;\n        height: 25px;\n        margin-left: -12.5px;\n        background-color: red;\n        border-radius: 50%;\n        box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);\n        transition: background-color 0.3s ease;\n    }\n\n    .lamp::after {\n        content: '';\n        position: absolute;\n        bottom: -5px;\n        left: 50%;\n        width: 10px;\n        height: 20px;\n        margin-left: -5px;\n        background-color: #333;\n        border-radius: 50%;\n    }\n</style>",
        "storeOutMessages": true,
        "fwdInMessages": true,
        "resendOnRefresh": true,
        "templateScope": "local",
        "className": "",
        "x": 1300,
        "y": 340,
        "wires": [
            []
        ]
    },
    {
        "id": "a49cd9ef23f8678b",
        "type": "ui_template",
        "z": "9cc5aa5d9083db88",
        "group": "1386c8c71c82ba37",
        "name": "",
        "order": 3,
        "width": 4,
        "height": 3,
        "format": "<div class=\"lamp-container\">\n    <h3>I2</h3>\n    <div class=\"lamp-wrapper\">\n        <div class=\"lamp\">\n            <div class=\"lamp-bulb\" style=\"background-color: {{msg.payload == 1 ? 'green' : 'red'}};\"></div>\n        </div>\n    </div>\n</div>\n\n<style>\n    .lamp-container {\n        text-align: center;\n        padding: 10px;\n    }\n\n    h3 {\n        margin-bottom: 10px;\n        font-family: Arial, sans-serif;\n        color: #333;\n    }\n\n    .lamp-wrapper {\n        display: inline-block;\n        padding: 10px;\n    }\n\n    .lamp {\n        position: relative;\n        width: 35px;\n        /* Small black part width, just around the light */\n        height: 50px;\n        /* Adjusted height of the black part */\n        background-color: #333;\n        border-radius: 20px 20px 0 0;\n        /* Adjust the rounding for a closer fit */\n        margin: 0 auto;\n        box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.3);\n    }\n\n    .lamp-bulb {\n        position: absolute;\n        top: 8px;\n        /* Move the bulb closer to the top */\n        left: 50%;\n        width: 30px;\n        height: 30px;\n        margin-left: -15px;\n        background-color: red;\n        border-radius: 50%;\n        box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);\n        transition: background-color 0.3s ease;\n    }\n\n    .lamp::after {\n        content: '';\n        position: absolute;\n        bottom: -5px;\n        left: 50%;\n        width: 8px;\n        /* Smaller base below the light */\n        height: 15px;\n        margin-left: -4px;\n        background-color: #333;\n        border-radius: 50%;\n    }\n</style>",
        "storeOutMessages": true,
        "fwdInMessages": true,
        "resendOnRefresh": true,
        "templateScope": "local",
        "className": "",
        "x": 1300,
        "y": 280,
        "wires": [
            []
        ]
    },
    {
        "id": "0af2a30526d9366f",
        "type": "ui_group",
        "name": "Outputs",
        "tab": "e54c72d6d0931e54",
        "order": 1,
        "disp": true,
        "width": "3",
        "collapse": false,
        "className": ""
    },
    {
        "id": "1386c8c71c82ba37",
        "type": "ui_group",
        "name": "Inputs",
        "tab": "e54c72d6d0931e54",
        "order": 2,
        "disp": true,
        "width": 12,
        "collapse": false,
        "className": ""
    },
    {
        "id": "e54c72d6d0931e54",
        "type": "ui_tab",
        "name": "Home",
        "icon": "dashboard",
        "disabled": false,
        "hidden": false
    }
]