Hast du denn einen MQTT broker auf 192.168.178.31 am laufen?
Anbei schon mal der geänderte Node-Red script.
Code
[
{
"id": "69d8d661.3dbcf",
"type": "ui_switch",
"z": "5659b0c3.170fb",
"name": "Wasserfall",
"label": "Wasserfall",
"group": "138425fc.4891a2",
"order": 0,
"width": 0,
"height": 0,
"passthru": false,
"decouple": "false",
"topic": "",
"style": "",
"onvalue": "ON",
"onvalueType": "str",
"onicon": "",
"oncolor": "",
"offvalue": "OFF",
"offvalueType": "str",
"officon": "",
"offcolor": "",
"x": 530,
"y": 240,
"wires": [
[
"6e708705.bf0f28"
]
]
},
{
"id": "ab88ad1d.b38428",
"type": "mqtt in",
"z": "5659b0c3.170fb",
"name": "",
"topic": "stat/sonoff/POWER",
"qos": "2",
"broker": "5d28e63e.6a331",
"x": 230,
"y": 240,
"wires": [
[
"69d8d661.3dbcf"
]
]
},
{
"id": "6e708705.bf0f28",
"type": "mqtt out",
"z": "5659b0c3.170fb",
"name": "",
"topic": "cmnd/sonoff/POWER",
"qos": "",
"retain": "",
"broker": "5d28e63e.6a331",
"x": 820,
"y": 240,
"wires": []
},
{
"id": "138425fc.4891a2",
"type": "ui_group",
"z": "",
"name": "Garten",
"tab": "7f08e07f.c8e53",
"order": 1,
"disp": true,
"width": "6",
"collapse": false
},
{
"id": "5d28e63e.6a331",
"type": "mqtt-broker",
"z": "",
"name": "",
"broker": "192.168.178.31",
"port": "1883",
"clientid": "",
"usetls": false,
"compatmode": true,
"keepalive": "60",
"cleansession": true,
"willTopic": "",
"willQos": "0",
"willPayload": "",
"birthTopic": "",
"birthQos": "0",
"birthPayload": ""
},
{
"id": "7f08e07f.c8e53",
"type": "ui_tab",
"z": "",
"name": "Sonoff Steckdosen",
"icon": "dashboard",
"order": 3
}
]
Alles anzeigen