Hier ein Beispiel mit der Keymatic. Aber es scheint, dass Du ein grundsätzliches Problem mit MQTT hast, wenn es sich nicht verbindet…
[
{
"id": "9dc3197d.e5e48",
"type": "tab",
"label": "Keymatic",
"disabled": true,
"info": ""
},
{
"id": "84602d6.c954ed",
"type": "mqtt out",
"z": "9dc3197d.e5e48",
"name": "Keymatic Open",
"topic": "homegear/1234-5678-9abc/set/13/1/OPEN",
"qos": "",
"retain": "",
"broker": "c10daf00.dcd48",
"x": 620,
"y": 440,
"wires": []
},
{
"id": "8fe6971d.8e4548",
"type": "mqtt out",
"z": "9dc3197d.e5e48",
"name": "Keymatic State",
"topic": "homegear/1234-5678-9abc/set/13/1/STATE",
"qos": "",
"retain": "",
"broker": "c10daf00.dcd48",
"x": 620,
"y": 520,
"wires": []
},
{
"id": "b1c32473.0bc848",
"type": "inject",
"z": "9dc3197d.e5e48",
"name": "",
"topic": "Open door",
"payload": "true",
"payloadType": "bool",
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"x": 320,
"y": 440,
"wires": [
[
"84602d6.c954ed"
]
]
},
{
"id": "e9449d13.b7365",
"type": "inject",
"z": "9dc3197d.e5e48",
"name": "",
"topic": "Lock door",
"payload": "false",
"payloadType": "bool",
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"x": 320,
"y": 500,
"wires": [
[
"8fe6971d.8e4548"
]
]
},
{
"id": "5819ad42.e6e05c",
"type": "inject",
"z": "9dc3197d.e5e48",
"name": "",
"topic": "Unlock door",
"payload": "true",
"payloadType": "bool",
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"x": 320,
"y": 540,
"wires": [
[
"8fe6971d.8e4548"
]
]
},
{
"id": "c10daf00.dcd48",
"type": "mqtt-broker",
"z": "",
"broker": "localhost",
"port": "1883",
"clientid": "node-red",
"usetls": false,
"compatmode": true,
"keepalive": "60",
"cleansession": true,
"birthTopic": "",
"birthQos": "0",
"birthPayload": "",
"willTopic": "",
"willQos": "0",
"willPayload": ""
}
]