Ich versuche einen (Zweifach )Schalter der über Tasmota in IoBroker gesteuert wird über NodeRed in Homee einzubinden. Leider scheitere ich bei dem Versuch.
Ein einfacher Schalter (Ein/Aus) klappt problemlos. Doch sobald ich den Flow abändere und die zwei einzelnen Schalter als ein Gerät haben will funktioniert nicht einmal das schalten im debug.
Könnt Ihr mir hier helfen?
[
{
"id": "6051d29ed2ee6d48",
"type": "switch",
"z": "7c2a774f7d914ad1",
"name": "Switch",
"property": "payload.attributeId",
"propertyType": "msg",
"rules": [
{
"t": "eq",
"v": "221",
"vt": "str"
},
{
"t": "eq",
"v": "220",
"vt": "str"
}
],
"checkall": "true",
"repair": false,
"outputs": 2,
"x": 410,
"y": 1120,
"wires": [
[
"a8c674be7581034c",
"8c5ed1cc7fadaaad"
],
[
"36043d218eb23d61",
"8c5ed1cc7fadaaad"
]
]
},
{
"id": "36043d218eb23d61",
"type": "change",
"z": "7c2a774f7d914ad1",
"name": "",
"rules": [
{
"t": "change",
"p": "payload.targetValue",
"pt": "msg",
"from": "0",
"fromt": "num",
"to": "false",
"tot": "bool"
},
{
"t": "change",
"p": "payload.targetValue",
"pt": "msg",
"from": "1",
"fromt": "num",
"to": "true",
"tot": "bool"
},
{
"t": "move",
"p": "payload.targetValue",
"pt": "msg",
"to": "payload",
"tot": "msg"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 710,
"y": 1180,
"wires": [
[
"c4425faada999e6c"
]
]
},
{
"id": "c4425faada999e6c",
"type": "ioBroker out",
"z": "7c2a774f7d914ad1",
"name": "[object Object]",
"topic": "sonoff.0.DVES_14BF06.POWER2",
"ack": "false",
"autoCreate": "false",
"stateName": "",
"role": "",
"payloadType": "",
"readonly": "",
"stateUnit": "",
"stateMin": "",
"stateMax": "",
"x": 980,
"y": 1180,
"wires": []
},
{
"id": "17810f0a21e32f7c",
"type": "homeeDevice",
"z": "7c2a774f7d914ad1",
"virtual-homee": "",
"name": "Kellertuer",
"nodeId": "200",
"showNodeId": true,
"profile": "18",
"icon": "nodeicon_patiodoubledoor",
"attributes": [
{
"type": 1,
"state": 1,
"instance": 0,
"minimum": 0,
"maximum": 1,
"current_value": 0,
"target_value": 0,
"last_value": 0,
"data": "",
"name": "",
"unit": "",
"step_value": 1,
"editable": 1,
"last_changed": 1693168683,
"changed_by": 1,
"changed_by_id": 0,
"based_on": 1,
"options": [],
"id": "220",
"node_id": "200"
},
{
"type": 1,
"state": 1,
"instance": 0,
"minimum": 0,
"maximum": 1,
"current_value": 0,
"target_value": 0,
"last_value": 0,
"data": "",
"name": "",
"unit": "",
"step_value": 1,
"editable": 1,
"last_changed": 1690528421,
"changed_by": 1,
"changed_by_id": 0,
"based_on": 1,
"options": [],
"id": "221",
"node_id": "200"
}
],
"statusTemplate": "",
"x": 240,
"y": 1120,
"wires": [
[
"6051d29ed2ee6d48"
]
]
},
{
"id": "a8c674be7581034c",
"type": "change",
"z": "7c2a774f7d914ad1",
"name": "",
"rules": [
{
"t": "change",
"p": "payload.targetValue",
"pt": "msg",
"from": "0",
"fromt": "num",
"to": "false",
"tot": "bool"
},
{
"t": "change",
"p": "payload.targetValue",
"pt": "msg",
"from": "1",
"fromt": "num",
"to": "true",
"tot": "bool"
},
{
"t": "move",
"p": "payload.targetValue",
"pt": "msg",
"to": "payload",
"tot": "msg"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 710,
"y": 1020,
"wires": [
[
"dad77fc3e29cf4c5"
]
]
},
{
"id": "dad77fc3e29cf4c5",
"type": "ioBroker out",
"z": "7c2a774f7d914ad1",
"name": "[object Object]",
"topic": "sonoff.0.DVES_14BF06.POWER1",
"ack": "false",
"autoCreate": "false",
"stateName": "",
"role": "",
"payloadType": "",
"readonly": "",
"stateUnit": "",
"stateMin": "",
"stateMax": "",
"x": 980,
"y": 1020,
"wires": []
},
{
"id": "455b82f50a28830e",
"type": "function",
"z": "7c2a774f7d914ad1",
"name": "Rückkanal auf",
"func": "if (msg.payload === true)\n return {payload:{\"attribute\":{\"id\":221,\"value\":1}}};\nif (msg.payload === false)\n return {payload:{\"attribute\":{\"id\":221,\"value\":0}}};\n",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 300,
"y": 1020,
"wires": [
[
"17810f0a21e32f7c"
]
]
},
{
"id": "ec09d5220536d7ba",
"type": "ioBroker in",
"z": "7c2a774f7d914ad1",
"name": "[object Object]",
"topic": "sonoff.0.DVES_14BF06.POWER1",
"payloadType": "value",
"onlyack": "",
"func": "all",
"gap": "",
"fireOnStart": "false",
"outFormat": "MQTT",
"x": 100,
"y": 1020,
"wires": [
[
"455b82f50a28830e"
]
]
},
{
"id": "0ebc5bde59c01c90",
"type": "function",
"z": "7c2a774f7d914ad1",
"name": "Rückkanal zu",
"func": "if (msg.payload === true)\n return { payload: { \"attribute\": { \"id\": 220, \"value\": 1 } } };\nif (msg.payload === false)\n return { payload: { \"attribute\": { \"id\": 220, \"value\": 0 } } };",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 320,
"y": 1260,
"wires": [
[
"17810f0a21e32f7c"
]
]
},
{
"id": "84b1bb01949fd501",
"type": "ioBroker in",
"z": "7c2a774f7d914ad1",
"name": "[object Object]",
"topic": "sonoff.0.DVES_14BF06.POWER2",
"payloadType": "value",
"onlyack": "",
"func": "all",
"gap": "",
"fireOnStart": "false",
"outFormat": "MQTT",
"x": 100,
"y": 1260,
"wires": [
[
"0ebc5bde59c01c90"
]
]
},
{
"id": "8c5ed1cc7fadaaad",
"type": "debug",
"z": "7c2a774f7d914ad1",
"name": "debug 8",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "false",
"statusVal": "",
"statusType": "auto",
"x": 600,
"y": 1120,
"wires": []
}
]