[
    {
        "id": "d81d8b77ec9ac07f",
        "type": "tab",
        "label": "Actuadores",
        "disabled": false,
        "info": "",
        "env": []
    },
    {
        "id": "6d58113593bd1968",
        "type": "tab",
        "label": "Sensores",
        "disabled": false,
        "info": "",
        "env": []
    },
    {
        "id": "e549078d73529525",
        "type": "tab",
        "label": "Selector color",
        "disabled": false,
        "info": "",
        "env": []
    },
    {
        "id": "5000729defeb6ba4",
        "type": "ui_tab",
        "name": "Home",
        "icon": "dashboard",
        "disabled": false,
        "hidden": false
    },
    {
        "id": "6a242262cdb28621",
        "type": "ui_base",
        "theme": {
            "name": "theme-light",
            "lightTheme": {
                "default": "#0094CE",
                "baseColor": "#0094CE",
                "baseFont": "-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif",
                "edited": false
            },
            "darkTheme": {
                "default": "#097479",
                "baseColor": "#097479",
                "baseFont": "-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif",
                "edited": false
            },
            "customTheme": {
                "name": "Untitled Theme 1",
                "default": "#4B7930",
                "baseColor": "#4B7930",
                "baseFont": "-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif"
            },
            "themeState": {
                "base-color": {
                    "default": "#0094CE",
                    "value": "#0094CE",
                    "edited": false
                },
                "page-titlebar-backgroundColor": {
                    "value": "#0094CE",
                    "edited": false
                },
                "page-backgroundColor": {
                    "value": "#fafafa",
                    "edited": false
                },
                "page-sidebar-backgroundColor": {
                    "value": "#ffffff",
                    "edited": false
                },
                "group-textColor": {
                    "value": "#1bbfff",
                    "edited": false
                },
                "group-borderColor": {
                    "value": "#ffffff",
                    "edited": false
                },
                "group-backgroundColor": {
                    "value": "#ffffff",
                    "edited": false
                },
                "widget-textColor": {
                    "value": "#111111",
                    "edited": false
                },
                "widget-backgroundColor": {
                    "value": "#0094ce",
                    "edited": false
                },
                "widget-borderColor": {
                    "value": "#ffffff",
                    "edited": false
                },
                "base-font": {
                    "value": "-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif"
                }
            },
            "angularTheme": {
                "primary": "indigo",
                "accents": "blue",
                "warn": "red",
                "background": "grey",
                "palette": "light"
            }
        },
        "site": {
            "name": "Node-RED Dashboard",
            "hideToolbar": "false",
            "allowSwipe": "false",
            "lockMenu": "false",
            "allowTempTheme": "true",
            "dateFormat": "DD/MM/YYYY",
            "sizes": {
                "sx": 48,
                "sy": 48,
                "gx": 6,
                "gy": 6,
                "cx": 6,
                "cy": 6,
                "px": 0,
                "py": 0
            }
        }
    },
    {
        "id": "43c6d6fc24ad7b6d",
        "type": "mqtt-broker",
        "name": "mi_mosquitto_broker",
        "broker": "localhost",
        "port": "1883",
        "clientid": "",
        "autoConnect": true,
        "usetls": false,
        "protocolVersion": "4",
        "keepalive": "60",
        "cleansession": true,
        "autoUnsubscribe": 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": "615e8f18fe9c69c8",
        "type": "mqtt-broker",
        "name": "mi_mosquitto_broker",
        "broker": "localhost",
        "port": "1883",
        "clientid": "",
        "autoConnect": true,
        "usetls": false,
        "protocolVersion": "4",
        "keepalive": "60",
        "cleansession": true,
        "autoUnsubscribe": 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": "903fa3e2969e67a7",
        "type": "ui_tab",
        "name": "Dashboard",
        "icon": "dashboard",
        "disabled": false,
        "hidden": false
    },
    {
        "id": "46a07a740cadf472",
        "type": "ui_group",
        "name": "RGB",
        "tab": "903fa3e2969e67a7",
        "order": 2,
        "disp": true,
        "width": "6",
        "collapse": false,
        "className": ""
    },
    {
        "id": "654b2b9f30da2b80",
        "type": "ui_group",
        "name": "Actuadores dixitais",
        "tab": "5000729defeb6ba4",
        "order": 2,
        "disp": true,
        "width": "6",
        "collapse": false,
        "className": ""
    },
    {
        "id": "c53663da46870e07",
        "type": "ui_group",
        "name": "Servo",
        "tab": "5000729defeb6ba4",
        "order": 3,
        "disp": true,
        "width": "6",
        "collapse": false,
        "className": ""
    },
    {
        "id": "f6944751069b5adc",
        "type": "ui_group",
        "name": "DHT11",
        "tab": "5000729defeb6ba4",
        "order": 4,
        "disp": true,
        "width": "6",
        "collapse": false,
        "className": ""
    },
    {
        "id": "c0f746ddfd218e59",
        "type": "ui_group",
        "name": "Luz",
        "tab": "5000729defeb6ba4",
        "order": 5,
        "disp": true,
        "width": "6",
        "collapse": false,
        "className": ""
    },
    {
        "id": "b269e0b3e51f6c99",
        "type": "serial-port",
        "name": "",
        "serialport": "/dev/ttyUSB0",
        "serialbaud": "115200",
        "databits": "8",
        "parity": "none",
        "stopbits": "1",
        "waitfor": "",
        "dtr": "none",
        "rts": "none",
        "cts": "none",
        "dsr": "none",
        "newline": "\\n",
        "bin": "false",
        "out": "char",
        "addchar": "",
        "responsetimeout": "10000"
    },
    {
        "id": "ea630c2b22549a26",
        "type": "ui_group",
        "name": "Sensores dixitais",
        "tab": "5000729defeb6ba4",
        "order": 5,
        "disp": true,
        "width": "6",
        "collapse": false,
        "className": ""
    },
    {
        "id": "9ba835fbf439de01",
        "type": "ui_switch",
        "z": "d81d8b77ec9ac07f",
        "name": "",
        "label": "interruptorLED",
        "tooltip": "",
        "group": "654b2b9f30da2b80",
        "order": 0,
        "width": 0,
        "height": 0,
        "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": 100,
        "y": 40,
        "wires": [
            [
                "92e822e8f4a9649f"
            ]
        ]
    },
    {
        "id": "92e822e8f4a9649f",
        "type": "mqtt out",
        "z": "d81d8b77ec9ac07f",
        "name": "",
        "topic": "casa/actuadores/led",
        "qos": "2",
        "retain": "",
        "respTopic": "",
        "contentType": "",
        "userProps": "",
        "correl": "",
        "expiry": "",
        "broker": "43c6d6fc24ad7b6d",
        "x": 340,
        "y": 40,
        "wires": []
    },
    {
        "id": "282b584475dd03a4",
        "type": "ui_switch",
        "z": "d81d8b77ec9ac07f",
        "name": "",
        "label": "relé",
        "tooltip": "",
        "group": "654b2b9f30da2b80",
        "order": 0,
        "width": 0,
        "height": 0,
        "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": 70,
        "y": 120,
        "wires": [
            [
                "b632105312e3aa5f"
            ]
        ]
    },
    {
        "id": "b632105312e3aa5f",
        "type": "mqtt out",
        "z": "d81d8b77ec9ac07f",
        "name": "",
        "topic": "casa/actuadores/rele",
        "qos": "2",
        "retain": "",
        "respTopic": "",
        "contentType": "",
        "userProps": "",
        "correl": "",
        "expiry": "",
        "broker": "43c6d6fc24ad7b6d",
        "x": 360,
        "y": 120,
        "wires": []
    },
    {
        "id": "7788f93097cc6ca2",
        "type": "mqtt out",
        "z": "d81d8b77ec9ac07f",
        "name": "",
        "topic": "casa/actuadores/servo",
        "qos": "2",
        "retain": "",
        "respTopic": "",
        "contentType": "",
        "userProps": "",
        "correl": "",
        "expiry": "",
        "broker": "43c6d6fc24ad7b6d",
        "x": 460,
        "y": 200,
        "wires": []
    },
    {
        "id": "b27691322fdfaee1",
        "type": "ui_button",
        "z": "d81d8b77ec9ac07f",
        "name": "",
        "group": "c53663da46870e07",
        "order": 5,
        "width": 0,
        "height": 0,
        "passthru": true,
        "label": "0º",
        "tooltip": "",
        "color": "",
        "bgcolor": "",
        "className": "",
        "icon": "",
        "payload": "1",
        "payloadType": "str",
        "topic": "topic",
        "topicType": "msg",
        "x": 70,
        "y": 180,
        "wires": [
            [
                "8a6136ad6f2c50ed"
            ]
        ]
    },
    {
        "id": "0bb4798fa4e9306b",
        "type": "ui_button",
        "z": "d81d8b77ec9ac07f",
        "name": "",
        "group": "c53663da46870e07",
        "order": 6,
        "width": 0,
        "height": 0,
        "passthru": true,
        "label": "90º",
        "tooltip": "",
        "color": "",
        "bgcolor": "",
        "className": "",
        "icon": "",
        "payload": "50",
        "payloadType": "str",
        "topic": "topic",
        "topicType": "msg",
        "x": 70,
        "y": 240,
        "wires": [
            [
                "8a6136ad6f2c50ed"
            ]
        ]
    },
    {
        "id": "d777729cb2a98f9f",
        "type": "ui_button",
        "z": "d81d8b77ec9ac07f",
        "name": "",
        "group": "c53663da46870e07",
        "order": 7,
        "width": 0,
        "height": 0,
        "passthru": true,
        "label": "180º",
        "tooltip": "",
        "color": "",
        "bgcolor": "",
        "className": "",
        "icon": "",
        "payload": "100",
        "payloadType": "str",
        "topic": "topic",
        "topicType": "msg",
        "x": 70,
        "y": 300,
        "wires": [
            [
                "8a6136ad6f2c50ed"
            ]
        ]
    },
    {
        "id": "8a6136ad6f2c50ed",
        "type": "function",
        "z": "d81d8b77ec9ac07f",
        "name": "Estado_servo",
        "func": "\nreturn msg;",
        "outputs": 1,
        "timeout": 0,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 240,
        "y": 240,
        "wires": [
            [
                "7788f93097cc6ca2",
                "d2f60f7e99059ec4"
            ]
        ]
    },
    {
        "id": "d2f60f7e99059ec4",
        "type": "ui_gauge",
        "z": "d81d8b77ec9ac07f",
        "name": "",
        "group": "c53663da46870e07",
        "order": 8,
        "width": 0,
        "height": 0,
        "gtype": "gage",
        "title": "Posición",
        "label": "%",
        "format": "{{value}}",
        "min": 0,
        "max": "100",
        "colors": [
            "#00b500",
            "#e6e600",
            "#ca3838"
        ],
        "seg1": "",
        "seg2": "",
        "diff": false,
        "className": "",
        "x": 440,
        "y": 280,
        "wires": []
    },
    {
        "id": "022d49275a757316",
        "type": "ui_switch",
        "z": "d81d8b77ec9ac07f",
        "name": "",
        "label": "Zoador",
        "tooltip": "",
        "group": "654b2b9f30da2b80",
        "order": 0,
        "width": 0,
        "height": 0,
        "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": 80,
        "y": 460,
        "wires": [
            [
                "9b8a169c7788426f"
            ]
        ]
    },
    {
        "id": "9b8a169c7788426f",
        "type": "mqtt out",
        "z": "d81d8b77ec9ac07f",
        "name": "",
        "topic": "casa/actuadores/zoador",
        "qos": "2",
        "retain": "",
        "respTopic": "",
        "contentType": "",
        "userProps": "",
        "correl": "",
        "expiry": "",
        "broker": "43c6d6fc24ad7b6d",
        "x": 350,
        "y": 460,
        "wires": []
    },
    {
        "id": "8434f11ae7841a18",
        "type": "ui_slider",
        "z": "d81d8b77ec9ac07f",
        "name": "",
        "label": "PosicionServo",
        "tooltip": "",
        "group": "c53663da46870e07",
        "order": 11,
        "width": 0,
        "height": 0,
        "passthru": true,
        "outs": "all",
        "topic": "topic",
        "topicType": "msg",
        "min": 0,
        "max": "100",
        "step": 1,
        "className": "",
        "x": 100,
        "y": 360,
        "wires": [
            [
                "f6795823485cc110"
            ]
        ]
    },
    {
        "id": "ad2a26ede3294dd1",
        "type": "mqtt out",
        "z": "d81d8b77ec9ac07f",
        "name": "",
        "topic": "casa/actuadores/servo",
        "qos": "2",
        "retain": "",
        "respTopic": "",
        "contentType": "",
        "userProps": "",
        "correl": "",
        "expiry": "",
        "broker": "43c6d6fc24ad7b6d",
        "x": 560,
        "y": 320,
        "wires": []
    },
    {
        "id": "f6795823485cc110",
        "type": "function",
        "z": "d81d8b77ec9ac07f",
        "name": "Estado_servo",
        "func": "\nreturn msg;",
        "outputs": 1,
        "timeout": 0,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 300,
        "y": 360,
        "wires": [
            [
                "ad2a26ede3294dd1",
                "cfeb76f7b9235e3b"
            ]
        ]
    },
    {
        "id": "cfeb76f7b9235e3b",
        "type": "ui_gauge",
        "z": "d81d8b77ec9ac07f",
        "name": "",
        "group": "c53663da46870e07",
        "order": 8,
        "width": 0,
        "height": 0,
        "gtype": "gage",
        "title": "Posición",
        "label": "%",
        "format": "{{value}}",
        "min": 0,
        "max": "100",
        "colors": [
            "#00b500",
            "#e6e600",
            "#ca3838"
        ],
        "seg1": "",
        "seg2": "",
        "diff": false,
        "className": "",
        "x": 520,
        "y": 400,
        "wires": []
    },
    {
        "id": "fb952aa676e2f008",
        "type": "ui_gauge",
        "z": "6d58113593bd1968",
        "name": "",
        "group": "f6944751069b5adc",
        "order": 1,
        "width": 0,
        "height": 0,
        "gtype": "gage",
        "title": "Temperatura",
        "label": "units",
        "format": "{{value}}",
        "min": 0,
        "max": "100",
        "colors": [
            "#00b500",
            "#e6e600",
            "#ca3838"
        ],
        "seg1": "",
        "seg2": "",
        "diff": false,
        "className": "",
        "x": 410,
        "y": 200,
        "wires": []
    },
    {
        "id": "31b25453fe25b362",
        "type": "ui_chart",
        "z": "6d58113593bd1968",
        "name": "",
        "group": "f6944751069b5adc",
        "order": 2,
        "width": 0,
        "height": 0,
        "label": "gráfico",
        "chartType": "line",
        "legend": "false",
        "xformat": "HH:mm:ss",
        "interpolate": "linear",
        "nodata": "",
        "dot": false,
        "ymin": "",
        "ymax": "",
        "removeOlder": 1,
        "removeOlderPoints": "",
        "removeOlderUnit": "3600",
        "cutout": 0,
        "useOneColor": false,
        "useUTC": false,
        "colors": [
            "#1f77b4",
            "#aec7e8",
            "#ff7f0e",
            "#2ca02c",
            "#98df8a",
            "#d62728",
            "#ff9896",
            "#9467bd",
            "#c5b0d5"
        ],
        "outputs": 1,
        "useDifferentColor": false,
        "className": "",
        "x": 390,
        "y": 100,
        "wires": [
            []
        ]
    },
    {
        "id": "506b98d924006a10",
        "type": "mqtt in",
        "z": "6d58113593bd1968",
        "name": "",
        "topic": "casa/sensores/temperatura",
        "qos": "2",
        "datatype": "auto-detect",
        "broker": "615e8f18fe9c69c8",
        "nl": false,
        "rap": true,
        "rh": 0,
        "inputs": 0,
        "x": 130,
        "y": 200,
        "wires": [
            [
                "fb952aa676e2f008",
                "31b25453fe25b362"
            ]
        ]
    },
    {
        "id": "9c7767a992388fd3",
        "type": "ui_gauge",
        "z": "6d58113593bd1968",
        "name": "",
        "group": "f6944751069b5adc",
        "order": 1,
        "width": 0,
        "height": 0,
        "gtype": "donut",
        "title": "Humidade",
        "label": "units",
        "format": "{{value}}",
        "min": 0,
        "max": "100",
        "colors": [
            "#00b500",
            "#e6e600",
            "#ca3838"
        ],
        "seg1": "",
        "seg2": "",
        "diff": false,
        "className": "",
        "x": 430,
        "y": 40,
        "wires": []
    },
    {
        "id": "ec2109de30528565",
        "type": "mqtt in",
        "z": "6d58113593bd1968",
        "name": "",
        "topic": "casa/sensores/humidade",
        "qos": "2",
        "datatype": "auto-detect",
        "broker": "615e8f18fe9c69c8",
        "nl": false,
        "rap": true,
        "rh": 0,
        "inputs": 0,
        "x": 130,
        "y": 40,
        "wires": [
            [
                "9c7767a992388fd3"
            ]
        ]
    },
    {
        "id": "16b1ff529d97df8e",
        "type": "debug",
        "z": "6d58113593bd1968",
        "name": "debug 2",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "payload",
        "targetType": "msg",
        "statusVal": "",
        "statusType": "auto",
        "x": 340,
        "y": 280,
        "wires": []
    },
    {
        "id": "470d78b6777908a7",
        "type": "mqtt in",
        "z": "6d58113593bd1968",
        "name": "",
        "topic": "depuracion",
        "qos": "2",
        "datatype": "auto-detect",
        "broker": "43c6d6fc24ad7b6d",
        "nl": false,
        "rap": true,
        "rh": 0,
        "inputs": 0,
        "x": 80,
        "y": 280,
        "wires": [
            [
                "16b1ff529d97df8e"
            ]
        ]
    },
    {
        "id": "ad2e3150113b2d04",
        "type": "mqtt in",
        "z": "6d58113593bd1968",
        "name": "",
        "topic": "casa/sensores/boton",
        "qos": "2",
        "datatype": "auto-detect",
        "broker": "43c6d6fc24ad7b6d",
        "nl": false,
        "rap": true,
        "rh": 0,
        "inputs": 0,
        "x": 110,
        "y": 360,
        "wires": [
            [
                "daa0195d42050c86",
                "268b6a10fefabd79",
                "655388fa12322f46"
            ]
        ]
    },
    {
        "id": "daa0195d42050c86",
        "type": "function",
        "z": "6d58113593bd1968",
        "name": "function 1",
        "func": "// Le a mensaxe recibida desde o nodo MQTT input\nvar mensaje = msg.payload;\n\n// Verifica se a mensaxe di que pulsaron o botón\nif (mensaje == true) {\n    // Acende o LED\n    msg.payload = { pin: 2, estado: true };\n} else {\n    // Apaga o LED\n    msg.payload = { pin: 2, estado: false };\n}\n\n// Devolve a mensaxe para controlar o estado do LED\nreturn msg;\n",
        "outputs": 1,
        "timeout": 0,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 340,
        "y": 420,
        "wires": [
            []
        ]
    },
    {
        "id": "268b6a10fefabd79",
        "type": "debug",
        "z": "6d58113593bd1968",
        "name": "enviadoBoton",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "payload",
        "targetType": "msg",
        "statusVal": "",
        "statusType": "auto",
        "x": 360,
        "y": 480,
        "wires": []
    },
    {
        "id": "b1d9e2e1bf8fc98d",
        "type": "mqtt in",
        "z": "6d58113593bd1968",
        "name": "",
        "topic": "casa/sensores/PIR",
        "qos": "2",
        "datatype": "auto-detect",
        "broker": "43c6d6fc24ad7b6d",
        "nl": false,
        "rap": true,
        "rh": 0,
        "inputs": 0,
        "x": 110,
        "y": 640,
        "wires": [
            [
                "9de3345e1787e695",
                "be8e4480b8a3aa25",
                "80fc2c67efaa767e",
                "ae863af98007f0a4"
            ]
        ]
    },
    {
        "id": "9de3345e1787e695",
        "type": "function",
        "z": "6d58113593bd1968",
        "name": "function 2",
        "func": "// Le a mensaxe recibida desde o nodo MQTT input\nvar mensaje = msg.payload;\n\n// Verifica se a mensaxe di que o PIR detecta presenza\nif (mensaje == true) {\n    // Fai soar o zoador\n    msg.payload = { pin: 16, estado: true };\n} else {\n    // Fai soar o zoador\n    msg.payload = { pin: 16, estado: false };\n}\n\n// Devolve a mensaxe para controlar o estado do LED\nreturn msg;\n",
        "outputs": 1,
        "timeout": 0,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 340,
        "y": 580,
        "wires": [
            []
        ]
    },
    {
        "id": "be8e4480b8a3aa25",
        "type": "debug",
        "z": "6d58113593bd1968",
        "name": "enviadoPIR",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "payload",
        "targetType": "msg",
        "statusVal": "",
        "statusType": "auto",
        "x": 330,
        "y": 700,
        "wires": []
    },
    {
        "id": "5aac0e67375519f6",
        "type": "mqtt in",
        "z": "6d58113593bd1968",
        "name": "",
        "topic": "casa/sensores/ldr",
        "qos": "2",
        "datatype": "auto-detect",
        "broker": "43c6d6fc24ad7b6d",
        "nl": false,
        "rap": true,
        "rh": 0,
        "inputs": 0,
        "x": 120,
        "y": 840,
        "wires": [
            [
                "8ccf6887d81aac63",
                "ed32081dc0a8b16f"
            ]
        ]
    },
    {
        "id": "8ccf6887d81aac63",
        "type": "ui_gauge",
        "z": "6d58113593bd1968",
        "name": "Luz",
        "group": "c0f746ddfd218e59",
        "order": 12,
        "width": 0,
        "height": 0,
        "gtype": "wave",
        "title": "Luz",
        "label": "units",
        "format": "{{value}}",
        "min": 0,
        "max": "4095",
        "colors": [
            "#00b500",
            "#e6e600",
            "#ca3838"
        ],
        "seg1": "",
        "seg2": "",
        "diff": false,
        "className": "",
        "x": 350,
        "y": 840,
        "wires": []
    },
    {
        "id": "ed32081dc0a8b16f",
        "type": "ui_chart",
        "z": "6d58113593bd1968",
        "name": "",
        "group": "c0f746ddfd218e59",
        "order": 1,
        "width": 0,
        "height": 0,
        "label": "Luz",
        "chartType": "line",
        "legend": "false",
        "xformat": "HH:mm:ss",
        "interpolate": "linear",
        "nodata": "",
        "dot": false,
        "ymin": "0",
        "ymax": "4095",
        "removeOlder": 1,
        "removeOlderPoints": "",
        "removeOlderUnit": "3600",
        "cutout": 0,
        "useOneColor": false,
        "useUTC": false,
        "colors": [
            "#1f77b4",
            "#aec7e8",
            "#ff7f0e",
            "#2ca02c",
            "#98df8a",
            "#d62728",
            "#ff9896",
            "#9467bd",
            "#c5b0d5"
        ],
        "outputs": 1,
        "useDifferentColor": false,
        "className": "",
        "x": 350,
        "y": 900,
        "wires": [
            []
        ]
    },
    {
        "id": "80fc2c67efaa767e",
        "type": "ui_text",
        "z": "6d58113593bd1968",
        "group": "ea630c2b22549a26",
        "order": 1,
        "width": 0,
        "height": 0,
        "name": "",
        "label": "PIR",
        "format": "{{msg.payload}}",
        "layout": "col-center",
        "className": "",
        "style": false,
        "font": "",
        "fontSize": 16,
        "color": "#000000",
        "x": 330,
        "y": 540,
        "wires": []
    },
    {
        "id": "ae863af98007f0a4",
        "type": "ui_switch",
        "z": "6d58113593bd1968",
        "name": "",
        "label": "Alarma Zoador",
        "tooltip": "",
        "group": "654b2b9f30da2b80",
        "order": 0,
        "width": 0,
        "height": 0,
        "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": 360,
        "y": 640,
        "wires": [
            [
                "3820dfe7030d2d47"
            ]
        ]
    },
    {
        "id": "3820dfe7030d2d47",
        "type": "mqtt out",
        "z": "6d58113593bd1968",
        "name": "",
        "topic": "casa/actuadores/zoador",
        "qos": "2",
        "retain": "",
        "respTopic": "",
        "contentType": "",
        "userProps": "",
        "correl": "",
        "expiry": "",
        "broker": "43c6d6fc24ad7b6d",
        "x": 610,
        "y": 640,
        "wires": []
    },
    {
        "id": "655388fa12322f46",
        "type": "ui_switch",
        "z": "6d58113593bd1968",
        "name": "",
        "label": "Boton do LED",
        "tooltip": "",
        "group": "654b2b9f30da2b80",
        "order": 0,
        "width": 0,
        "height": 0,
        "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": 360,
        "y": 360,
        "wires": [
            [
                "18431bb1cd816e73"
            ]
        ]
    },
    {
        "id": "18431bb1cd816e73",
        "type": "mqtt out",
        "z": "6d58113593bd1968",
        "name": "",
        "topic": "casa/actuadores/led",
        "qos": "2",
        "retain": "",
        "respTopic": "",
        "contentType": "",
        "userProps": "",
        "correl": "",
        "expiry": "",
        "broker": "43c6d6fc24ad7b6d",
        "x": 600,
        "y": 360,
        "wires": []
    },
    {
        "id": "994f088715684899",
        "type": "ui_colour_picker",
        "z": "e549078d73529525",
        "name": "",
        "label": "",
        "group": "46a07a740cadf472",
        "format": "rgb",
        "outformat": "object",
        "showSwatch": true,
        "showPicker": false,
        "showValue": false,
        "showHue": false,
        "showAlpha": false,
        "showLightness": true,
        "square": "false",
        "dynOutput": "false",
        "order": 12,
        "width": 0,
        "height": 0,
        "passthru": true,
        "topic": "topic",
        "topicType": "msg",
        "className": "",
        "x": 130,
        "y": 100,
        "wires": [
            [
                "c5955a55d41de341",
                "0a2d2daae48ff191"
            ]
        ]
    },
    {
        "id": "c5955a55d41de341",
        "type": "mqtt out",
        "z": "e549078d73529525",
        "name": "",
        "topic": "casa/actuadores/LED_RGB",
        "qos": "2",
        "retain": "",
        "respTopic": "",
        "contentType": "",
        "userProps": "",
        "correl": "",
        "expiry": "",
        "broker": "43c6d6fc24ad7b6d",
        "x": 420,
        "y": 100,
        "wires": []
    },
    {
        "id": "0a2d2daae48ff191",
        "type": "debug",
        "z": "e549078d73529525",
        "name": "debug 1",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "payload",
        "targetType": "msg",
        "statusVal": "",
        "statusType": "auto",
        "x": 360,
        "y": 160,
        "wires": []
    },
    {
        "id": "f5f6d2b295c4066d",
        "type": "ui_slider",
        "z": "e549078d73529525",
        "name": "",
        "label": "RGB R",
        "tooltip": "",
        "group": "46a07a740cadf472",
        "order": 4,
        "width": 0,
        "height": 0,
        "passthru": true,
        "outs": "all",
        "topic": "topic",
        "topicType": "msg",
        "min": 0,
        "max": "255",
        "step": 1,
        "className": "",
        "x": 200,
        "y": 240,
        "wires": [
            [
                "e7a0f7719648d3ab"
            ]
        ]
    },
    {
        "id": "e7a0f7719648d3ab",
        "type": "mqtt out",
        "z": "e549078d73529525",
        "name": "",
        "topic": "casa/actuadores/ledr",
        "qos": "2",
        "retain": "",
        "respTopic": "",
        "contentType": "",
        "userProps": "",
        "correl": "",
        "expiry": "",
        "broker": "43c6d6fc24ad7b6d",
        "x": 480,
        "y": 240,
        "wires": []
    },
    {
        "id": "6652585f2e861cd3",
        "type": "ui_slider",
        "z": "e549078d73529525",
        "name": "",
        "label": "RGB B",
        "tooltip": "",
        "group": "46a07a740cadf472",
        "order": 4,
        "width": 0,
        "height": 0,
        "passthru": true,
        "outs": "all",
        "topic": "topic",
        "topicType": "msg",
        "min": 0,
        "max": "255",
        "step": 1,
        "className": "",
        "x": 200,
        "y": 360,
        "wires": [
            [
                "a6cc19e35e8bdf05"
            ]
        ]
    },
    {
        "id": "a6cc19e35e8bdf05",
        "type": "mqtt out",
        "z": "e549078d73529525",
        "name": "",
        "topic": "casa/actuadores/ledb",
        "qos": "2",
        "retain": "",
        "respTopic": "",
        "contentType": "",
        "userProps": "",
        "correl": "",
        "expiry": "",
        "broker": "43c6d6fc24ad7b6d",
        "x": 480,
        "y": 360,
        "wires": []
    },
    {
        "id": "9c6fe0039e1aafa5",
        "type": "ui_slider",
        "z": "e549078d73529525",
        "name": "",
        "label": "RGB G",
        "tooltip": "",
        "group": "46a07a740cadf472",
        "order": 4,
        "width": 0,
        "height": 0,
        "passthru": true,
        "outs": "all",
        "topic": "topic",
        "topicType": "msg",
        "min": 0,
        "max": "255",
        "step": 1,
        "className": "",
        "x": 200,
        "y": 300,
        "wires": [
            [
                "69e3b32628ce1e15"
            ]
        ]
    },
    {
        "id": "69e3b32628ce1e15",
        "type": "mqtt out",
        "z": "e549078d73529525",
        "name": "",
        "topic": "casa/actuadores/ledg",
        "qos": "2",
        "retain": "",
        "respTopic": "",
        "contentType": "",
        "userProps": "",
        "correl": "",
        "expiry": "",
        "broker": "43c6d6fc24ad7b6d",
        "x": 480,
        "y": 300,
        "wires": []
    }
]