Skip to content

Event ‐ 事件

Monkey • D • Code edited this page Sep 12, 2023 · 1 revision
[
    {
        "id": "228108727a6cbe73",
        "type": "tab",
        "label": "Event",
        "disabled": false,
        "info": "",
        "env": []
    },
    {
        "id": "c19a665dfd9286ef",
        "type": "inject",
        "z": "228108727a6cbe73",
        "name": "",
        "props": [
            {
                "p": "payload"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "single",
        "payloadType": "str",
        "x": 170,
        "y": 160,
        "wires": [
            [
                "f5fb7ff939579952"
            ]
        ]
    },
    {
        "id": "f5fb7ff939579952",
        "type": "ha-mqtt-event",
        "z": "228108727a6cbe73",
        "server": "2a52200708303a64",
        "device": "42d6f2a7a999a723",
        "name": "Event",
        "types": "single,double,long_press",
        "config": "",
        "x": 390,
        "y": 220,
        "wires": []
    },
    {
        "id": "b19ed9f5429b8f28",
        "type": "inject",
        "z": "228108727a6cbe73",
        "name": "",
        "props": [
            {
                "p": "payload"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "{\"event_type\":\"double\",\"duration\":0.1}",
        "payloadType": "json",
        "x": 170,
        "y": 280,
        "wires": [
            [
                "f5fb7ff939579952"
            ]
        ]
    },
    {
        "id": "2a52200708303a64",
        "type": "mqtt-broker",
        "name": "",
        "broker": "localhost",
        "port": "1883",
        "clientid": "",
        "autoConnect": true,
        "usetls": false,
        "protocolVersion": "4",
        "keepalive": "60",
        "cleansession": true,
        "birthTopic": "",
        "birthQos": "0",
        "birthPayload": "",
        "birthMsg": {},
        "closeTopic": "",
        "closeQos": "0",
        "closePayload": "",
        "closeMsg": {},
        "willTopic": "",
        "willQos": "0",
        "willPayload": "",
        "willMsg": {},
        "userProps": "",
        "sessionExpiry": ""
    },
    {
        "id": "42d6f2a7a999a723",
        "type": "ha-mqtt-device",
        "name": "测试设备",
        "config": ""
    }
]