[
    {
        "id": "15f104d00dc8b07b",
        "type": "tab",
        "label": "Ewelink",
        "disabled": false,
        "info": "",
        "env": []
    },
    {
        "id": "e78df4b3a9ffd8a8",
        "type": "ewelink-power-state-write",
        "z": "15f104d00dc8b07b",
        "name": "Luz Cubierta",
        "deviceId": "xxxxxxxx",
        "channel": "2",
        "auth": "7e18f914b49f711c",
        "x": 630,
        "y": 420,
        "wires": [
            [
                "fdf11e153e1f56d5"
            ]
        ]
    },
    {
        "id": "5d43bd88cfa99f51",
        "type": "ui_switch",
        "z": "15f104d00dc8b07b",
        "name": "",
        "label": "Luz cubierta",
        "tooltip": "",
        "group": "39b0a2675fe9f57d",
        "order": 0,
        "width": 0,
        "height": 0,
        "passthru": false,
        "decouple": "true",
        "topic": "topic",
        "topicType": "msg",
        "style": "",
        "onvalue": "on",
        "onvalueType": "str",
        "onicon": "",
        "oncolor": "",
        "offvalue": "off",
        "offvalueType": "str",
        "officon": "",
        "offcolor": "",
        "animate": false,
        "className": "",
        "x": 430,
        "y": 320,
        "wires": [
            [
                "e78df4b3a9ffd8a8"
            ]
        ]
    },
    {
        "id": "fdf11e153e1f56d5",
        "type": "function",
        "z": "15f104d00dc8b07b",
        "name": "Realimentacion",
        "func": "if (msg.payload.state == \"on\") {\n        msg.payload = \"on\";\n     return msg;\n     } else if (msg.payload.state == \"off\") {\n        msg.payload = \"off\";\n        return msg;\n        }\n        ",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 180,
        "y": 280,
        "wires": [
            [
                "5d43bd88cfa99f51"
            ]
        ]
    },
    {
        "id": "7479c2736c19c856",
        "type": "ewelink-power-state-read",
        "z": "15f104d00dc8b07b",
        "name": "Cambios externos",
        "deviceId": "xxxxxxxx",
        "channel": "2",
        "auth": "7e18f914b49f711c",
        "x": 470,
        "y": 220,
        "wires": [
            [
                "fdf11e153e1f56d5"
            ]
        ]
    },
    {
        "id": "23d18221b99083ec",
        "type": "inject",
        "z": "15f104d00dc8b07b",
        "name": "Cada 30 segundos",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "30",
        "crontab": "",
        "once": true,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "",
        "payloadType": "date",
        "x": 180,
        "y": 220,
        "wires": [
            [
                "7479c2736c19c856"
            ]
        ]
    },
    {
        "id": "0c114e7102437e49",
        "type": "ui_switch",
        "z": "15f104d00dc8b07b",
        "name": "",
        "label": "Luces Navegacion",
        "tooltip": "",
        "group": "39b0a2675fe9f57d",
        "order": 1,
        "width": 0,
        "height": 0,
        "passthru": true,
        "decouple": "false",
        "topic": "topic",
        "topicType": "msg",
        "style": "",
        "onvalue": "on",
        "onvalueType": "str",
        "onicon": "",
        "oncolor": "",
        "offvalue": "false",
        "offvalueType": "str",
        "officon": "",
        "offcolor": "",
        "animate": false,
        "className": "",
        "x": 150,
        "y": 100,
        "wires": [
            [
                "b4b2ad8bef0371aa"
            ]
        ]
    },
    {
        "id": "b4b2ad8bef0371aa",
        "type": "ewelink-power-state-write",
        "z": "15f104d00dc8b07b",
        "name": "Lces navegacion",
        "deviceId": "xxxxxxxx",
        "channel": 1,
        "auth": "7e18f914b49f711c",
        "x": 390,
        "y": 100,
        "wires": [
            []
        ]
    },
    {
        "id": "7e18f914b49f711c",
        "type": "ewelink-credentials"
    },
    {
        "id": "39b0a2675fe9f57d",
        "type": "ui_group",
        "name": "Interruptores",
        "tab": "9c5762cca0ff7a6d",
        "order": 1,
        "disp": true,
        "width": "6",
        "collapse": false,
        "className": ""
    },
    {
        "id": "9c5762cca0ff7a6d",
        "type": "ui_tab",
        "name": "Controles",
        "icon": "dashboard",
        "disabled": false,
        "hidden": false
    }
]