[
    {
        "id": "7118a1ca3f938274",
        "type": "tab",
        "label": "Presencia BLE",
        "disabled": false,
        "info": "",
        "env": []
    },
    {
        "id": "69b41b82ede454c2",
        "type": "Beacon-Scanner",
        "z": "7118a1ca3f938274",
        "name": "Beacon Scanner",
        "gracePeriod": 1000,
        "x": 100,
        "y": 40,
        "wires": [
            [
                "f679438e984c7c6c"
            ]
        ]
    },
    {
        "id": "f679438e984c7c6c",
        "type": "function",
        "z": "7118a1ca3f938274",
        "name": "Filtrar solo los de mi llavero",
        "func": "if (msg.payload.iBeacon && msg.payload.iBeacon.major == 1 && msg.payload.iBeacon.minor == 2)\n    return msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 200,
        "y": 100,
        "wires": [
            [
                "69eb90d0d8fbe290",
                "fadce36adbe0a957"
            ]
        ]
    },
    {
        "id": "69eb90d0d8fbe290",
        "type": "template",
        "z": "7118a1ca3f938274",
        "name": "on",
        "field": "payload",
        "fieldType": "msg",
        "format": "handlebars",
        "syntax": "mustache",
        "template": "on",
        "output": "str",
        "x": 410,
        "y": 100,
        "wires": [
            [
                "69e42413b2828f0e"
            ]
        ]
    },
    {
        "id": "fadce36adbe0a957",
        "type": "trigger",
        "z": "7118a1ca3f938274",
        "name": "off despues de 10 segundos",
        "op1": "",
        "op2": "off",
        "op1type": "nul",
        "op2type": "str",
        "duration": "10",
        "extend": true,
        "overrideDelay": false,
        "units": "s",
        "reset": "",
        "bytopic": "all",
        "topic": "topic",
        "outputs": 1,
        "x": 340,
        "y": 180,
        "wires": [
            [
                "69e42413b2828f0e"
            ]
        ]
    },
    {
        "id": "69e42413b2828f0e",
        "type": "rbe",
        "z": "7118a1ca3f938274",
        "name": "Cambios",
        "func": "rbe",
        "gap": "",
        "start": "",
        "inout": "out",
        "septopics": true,
        "property": "payload",
        "topi": "topic",
        "x": 580,
        "y": 140,
        "wires": [
            [
                "3a7f504afd5e4314",
                "00ed9ebba6bf3a1e"
            ]
        ]
    },
    {
        "id": "3a7f504afd5e4314",
        "type": "debug",
        "z": "7118a1ca3f938274",
        "name": "debug 1",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "false",
        "statusVal": "",
        "statusType": "auto",
        "x": 600,
        "y": 220,
        "wires": []
    },
    {
        "id": "00ed9ebba6bf3a1e",
        "type": "ewelink-power-state-write",
        "z": "7118a1ca3f938274",
        "name": "Luz Cubierta",
        "deviceId": "xxxxxxxxxx",
        "channel": "2",
        "auth": "7e18f914b49f711c",
        "x": 570,
        "y": 300,
        "wires": [
            []
        ]
    },
    {
        "id": "7e18f914b49f711c",
        "type": "ewelink-credentials"
    }
]