Skip to content

Button ‐ 按钮

Monkey • D • Code edited this page Sep 12, 2023 · 1 revision
[
    {
        "id": "3dfc666523423310",
        "type": "tab",
        "label": "Button",
        "disabled": false,
        "info": "",
        "env": []
    },
    {
        "id": "d15e47c3e83a143b",
        "type": "ha-mqtt-button",
        "z": "3dfc666523423310",
        "server": "8672849eb803c6e3",
        "device": "02c940ba547f5196",
        "name": "按钮",
        "config": "{\"device_class\":\"restart\"}",
        "x": 370,
        "y": 200,
        "wires": [
            [
                "3763262b59b72124"
            ]
        ]
    },
    {
        "id": "ba8d11958f7bbb71",
        "type": "inject",
        "z": "3dfc666523423310",
        "name": "",
        "props": [
            {
                "p": "attributes",
                "v": "{\"key\":\"value\"}",
                "vt": "json"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "x": 190,
        "y": 200,
        "wires": [
            [
                "d15e47c3e83a143b"
            ]
        ]
    },
    {
        "id": "3763262b59b72124",
        "type": "debug",
        "z": "3dfc666523423310",
        "name": "",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "false",
        "statusVal": "",
        "statusType": "auto",
        "x": 570,
        "y": 200,
        "wires": []
    },
    {
        "id": "8672849eb803c6e3",
        "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": {},
        "sessionExpiry": ""
    },
    {
        "id": "02c940ba547f5196",
        "type": "ha-mqtt-device",
        "name": "测试设备",
        "config": ""
    }
]