Guten Tag,
ich benutze nun den Sonoff Adapter auf meinen Iobroker, früher hatte ich den MQTT Adapter und konnte mit Ihm die Sonoff Geräte gut schalten aber bei dem neuen Sonoff Adapter bekomme ich das nicht mehr hin.
Sonoff Adapter ist aktiviert User und PW Port 1883 und die Geräte werden alle erkannt und die Datenpunkte werden gesetzt.
MQTT Adapter ist deaktiviert.
Das ist die Schaltung unter Node-Red die ich vom MQTT Adapter auf den Sonoff Adapter angepasst habe, leider finde ich meinen Fehler nicht.
Mfg
P.S
Hier ist die Funktionierende Schaltung in Verbindung mit dem MQTT Adapter
Code
[
{
"id": "399e734b.91854c",
"type": "change",
"z": "8b1c51c6.923be",
"name": "Geraet an",
"rules": [
{
"to": "ON",
"pt": "msg",
"tot": "str",
"p": "payload",
"t": "set"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 500,
"y": 180,
"wires": [
[
"8aff9fe4.3bfe7",
"8258a2d9.94b94"
]
]
},
{
"id": "5186ebb3.ba5e94",
"type": "change",
"z": "8b1c51c6.923be",
"name": "Geraet an",
"rules": [
{
"to": "true",
"pt": "msg",
"tot": "bool",
"p": "payload",
"t": "set"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 670,
"y": 60,
"wires": [
[
"f9447f9b.5dec9"
]
]
},
{
"id": "e04eacd.2a8765",
"type": "mqtt in",
"z": "8b1c51c6.923be",
"name": "",
"topic": "stat/Wasserfall/POWER",
"qos": "2",
"broker": "ca82f012.f428d",
"x": 160,
"y": 80,
"wires": [
[
"179722e5.22941d"
]
]
},
{
"id": "6d4ba866.25c208",
"type": "change",
"z": "8b1c51c6.923be",
"name": "Geraet aus",
"rules": [
{
"to": "OFF",
"pt": "msg",
"tot": "str",
"p": "payload",
"t": "set"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 510,
"y": 240,
"wires": [
[
"8aff9fe4.3bfe7",
"8258a2d9.94b94"
]
]
},
{
"id": "e5fed059.6c9d3",
"type": "switch",
"z": "8b1c51c6.923be",
"name": "",
"property": "payload",
"propertyType": "msg",
"rules": [
{
"vt": "str",
"t": "eq",
"v": "ON"
},
{
"vt": "str",
"t": "eq",
"v": "OFF"
}
],
"checkall": "true",
"repair": false,
"outputs": 2,
"x": 510,
"y": 80,
"wires": [
[
"5186ebb3.ba5e94"
],
[
"46f2da0c.cd72d4"
]
]
},
{
"id": "a50618e0.2d1038",
"type": "switch",
"z": "8b1c51c6.923be",
"name": "",
"property": "payload",
"propertyType": "msg",
"rules": [
{
"vt": "str",
"t": "eq",
"v": "true"
},
{
"vt": "str",
"t": "eq",
"v": "false"
}
],
"checkall": "true",
"repair": false,
"outputs": 2,
"x": 350,
"y": 200,
"wires": [
[
"399e734b.91854c"
],
[
"6d4ba866.25c208"
]
]
},
{
"id": "46f2da0c.cd72d4",
"type": "change",
"z": "8b1c51c6.923be",
"name": "Geraet aus",
"rules": [
{
"to": "false",
"pt": "msg",
"tot": "bool",
"p": "payload",
"t": "set"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 670,
"y": 100,
"wires": [
[
"f9447f9b.5dec9"
]
]
},
{
"id": "2378df81.f5609",
"type": "ioBroker in",
"z": "8b1c51c6.923be",
"name": "Garten Wasserfall Status",
"topic": "node-red.0.Garten.Wasserfall.Status",
"payloadType": "value",
"onlyack": "",
"func": "all",
"gap": "",
"x": 170,
"y": 200,
"wires": [
[
"a50618e0.2d1038"
]
]
},
{
"id": "179722e5.22941d",
"type": "rbe",
"z": "8b1c51c6.923be",
"name": "",
"func": "rbe",
"gap": "",
"start": "",
"inout": "out",
"property": "payload",
"x": 350,
"y": 80,
"wires": [
[
"e5fed059.6c9d3"
]
]
},
{
"id": "f9447f9b.5dec9",
"type": "ioBroker out",
"z": "8b1c51c6.923be",
"name": "Garten Wasserfall Status",
"topic": "node-red.0.Garten.Wasserfall.Status",
"ack": "true",
"autoCreate": "true",
"x": 930,
"y": 60,
"wires": []
},
{
"id": "8258a2d9.94b94",
"type": "mqtt out",
"z": "8b1c51c6.923be",
"name": "",
"topic": "cmnd/Wasserfall/POWER",
"qos": "",
"retain": "",
"broker": "ca82f012.f428d",
"x": 990,
"y": 200,
"wires": []
},
{
"id": "8aff9fe4.3bfe7",
"type": "ui_switch",
"z": "8b1c51c6.923be",
"name": "Wasserfall",
"label": "Wasserfall",
"tooltip": "",
"group": "dfd97091.a3e35",
"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": 730,
"y": 160,
"wires": [
[
"e5fed059.6c9d3",
"8258a2d9.94b94"
]
]
},
{
"id": "ca82f012.f428d",
"type": "mqtt-broker",
"z": "",
"name": "",
"broker": "192.168.178.42",
"port": "1883",
"clientid": "",
"usetls": false,
"compatmode": true,
"keepalive": "60",
"cleansession": true,
"birthTopic": "",
"birthQos": "0",
"birthPayload": "",
"closeTopic": "",
"closePayload": "",
"willTopic": "",
"willQos": "0",
"willPayload": ""
},
{
"id": "dfd97091.a3e35",
"type": "ui_group",
"z": "",
"name": "Garten",
"tab": "5220188f.a50508",
"order": 1,
"disp": true,
"width": "6",
"collapse": false
},
{
"id": "5220188f.a50508",
"type": "ui_tab",
"z": "",
"name": "Steckdosen Garten",
"icon": "dashboard",
"order": 2
}
]
Alles anzeigen