[
    {
        "id": "6902a6847b646ed1",
        "type": "group",
        "z": "ba8c546112684f56",
        "name": "Отправка статуса состояния устройства в Яндекс",
        "style": {
            "label": true,
            "color": "#3f3f3f"
        },
        "nodes": [
            "1e54ef83ddc0306a",
            "bba26e0303e3c377",
            "e60f0211d3ad1a16",
            "19a8aad979761497",
            "f70f7f7c0dd02193",
            "149eac1b83f40f8f"
        ],
        "x": 34,
        "y": 39,
        "w": 872,
        "h": 122
    },
    {
        "id": "1e54ef83ddc0306a",
        "type": "mqtt out",
        "z": "ba8c546112684f56",
        "g": "6902a6847b646ed1",
        "name": "",
        "topic": "zal/svet1/power/state",
        "qos": "2",
        "retain": "",
        "respTopic": "",
        "contentType": "",
        "userProps": "",
        "correl": "",
        "expiry": "",
        "broker": "fa7d5a6e6bff81e0",
        "x": 780,
        "y": 100,
        "wires": []
    },
    {
        "id": "bba26e0303e3c377",
        "type": "event-state",
        "z": "ba8c546112684f56",
        "g": "6902a6847b646ed1",
        "name": "",
        "server": "bbb98c6fe0bc04f3",
        "list": "",
        "category": "switch",
        "device": "0x70c59cfffe835017",
        "state": "power",
        "x": 130,
        "y": 100,
        "wires": [
            [
                "e60f0211d3ad1a16"
            ]
        ]
    },
    {
        "id": "e60f0211d3ad1a16",
        "type": "json",
        "z": "ba8c546112684f56",
        "g": "6902a6847b646ed1",
        "name": "",
        "property": "payload",
        "action": "",
        "pretty": false,
        "x": 290,
        "y": 100,
        "wires": [
            [
                "19a8aad979761497"
            ]
        ]
    },
    {
        "id": "19a8aad979761497",
        "type": "switch",
        "z": "ba8c546112684f56",
        "g": "6902a6847b646ed1",
        "name": "ON/OFF",
        "property": "payload.payload.power.powerState",
        "propertyType": "msg",
        "rules": [
            {
                "t": "cont",
                "v": "on",
                "vt": "str"
            },
            {
                "t": "cont",
                "v": "off",
                "vt": "str"
            }
        ],
        "checkall": "true",
        "repair": false,
        "outputs": 2,
        "x": 440,
        "y": 100,
        "wires": [
            [
                "f70f7f7c0dd02193"
            ],
            [
                "149eac1b83f40f8f"
            ]
        ]
    },
    {
        "id": "f70f7f7c0dd02193",
        "type": "change",
        "z": "ba8c546112684f56",
        "g": "6902a6847b646ed1",
        "name": "Вкл",
        "rules": [
            {
                "t": "set",
                "p": "payload",
                "pt": "msg",
                "to": "1",
                "tot": "num"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 590,
        "y": 80,
        "wires": [
            [
                "1e54ef83ddc0306a"
            ]
        ]
    },
    {
        "id": "149eac1b83f40f8f",
        "type": "change",
        "z": "ba8c546112684f56",
        "g": "6902a6847b646ed1",
        "name": "Выкл",
        "rules": [
            {
                "t": "set",
                "p": "payload",
                "pt": "msg",
                "to": "0",
                "tot": "num"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 590,
        "y": 120,
        "wires": [
            [
                "1e54ef83ddc0306a"
            ]
        ]
    },
    {
        "id": "fa7d5a6e6bff81e0",
        "type": "mqtt-broker",
        "name": "",
        "broker": "m9.wqtt.ru",
        "port": "19076",
        "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": "bbb98c6fe0bc04f3",
        "type": "api-server",
        "name": "iHostLocal",
        "ip": "127.0.0.1",
        "ipaddr": "",
        "token": "8785ae3b-c31f-40b4-87fd-5551836df332"
    },
    {
        "id": "4986c58d75bb2dc9",
        "type": "group",
        "z": "ba8c546112684f56",
        "name": "Прием команды от Яндекса",
        "style": {
            "label": true,
            "color": "#3f3f3f"
        },
        "nodes": [
            "17182f89c11591be",
            "538871d84788bdae",
            "57535161acd83af2",
            "21f9936067e4fcec"
        ],
        "x": 34,
        "y": 199,
        "w": 512,
        "h": 122
    },
    {
        "id": "17182f89c11591be",
        "type": "switch",
        "z": "ba8c546112684f56",
        "g": "4986c58d75bb2dc9",
        "name": "ON/OFF",
        "property": "payload",
        "propertyType": "msg",
        "rules": [
            {
                "t": "eq",
                "v": "1",
                "vt": "num"
            },
            {
                "t": "eq",
                "v": "0",
                "vt": "num"
            }
        ],
        "checkall": "true",
        "repair": false,
        "outputs": 2,
        "x": 320,
        "y": 260,
        "wires": [
            [
                "57535161acd83af2"
            ],
            [
                "21f9936067e4fcec"
            ]
        ]
    },
    {
        "id": "538871d84788bdae",
        "type": "mqtt in",
        "z": "ba8c546112684f56",
        "g": "4986c58d75bb2dc9",
        "name": "",
        "topic": "zal/svet1/power",
        "qos": "2",
        "datatype": "auto-detect",
        "broker": "fa7d5a6e6bff81e0",
        "nl": false,
        "rap": true,
        "rh": 0,
        "inputs": 0,
        "x": 140,
        "y": 260,
        "wires": [
            [
                "17182f89c11591be"
            ]
        ]
    },
    {
        "id": "57535161acd83af2",
        "type": "control-device",
        "z": "ba8c546112684f56",
        "g": "4986c58d75bb2dc9",
        "name": "Вкл",
        "server": "bbb98c6fe0bc04f3",
        "list": "",
        "category": "switch",
        "device": "0x70c59cfffe835017",
        "v2Data": "{\"state\":{\"power\":{\"powerState\":\"on\"}}}",
        "usePageData": "true",
        "x": 470,
        "y": 240,
        "wires": [
            []
        ]
    },
    {
        "id": "21f9936067e4fcec",
        "type": "control-device",
        "z": "ba8c546112684f56",
        "g": "4986c58d75bb2dc9",
        "name": "Выкл",
        "server": "bbb98c6fe0bc04f3",
        "list": "",
        "category": "switch",
        "device": "0x70c59cfffe835017",
        "v2Data": "{\"state\":{\"power\":{\"powerState\":\"off\"}}}",
        "usePageData": "true",
        "x": 470,
        "y": 280,
        "wires": [
            []
        ]
    },
    {
        "id": "ea97956348319c4b",
        "type": "global-config",
        "env": [],
        "modules": {
            "node-red-contrib-ewelink-cube": "1.3.7"
        }
    }
]