[
{
"id": "a7dded3eda2b221d",
"type": "homeeDevice",
"z": "7860fa74c036a094",
"virtual-homee": "",
"name": "Garagentor",
"nodeId": "0001",
"showNodeId": true,
"profile": "2000",
"icon": "nodeicon_sectionaldoor",
"attributes": [
{
"instance": 0,
"minimum": 0,
"maximum": 1,
"current_value": 1,
"target_value": 1,
"last_value": 0,
"unit": "n%2Fa",
"step_value": 1,
"editable": 0,
"type": 14,
"state": 1,
"last_changed": 1572873723,
"changed_by": 1,
"changed_by_id": 0,
"based_on": 1,
"data": "",
"id": "90",
"node_id": "0001"
},
{
"instance": 0,
"minimum": 0,
"maximum": 100,
"current_value": 100,
"target_value": 100,
"last_value": 100,
"unit": "%25",
"step_value": 1,
"editable": 0,
"type": 8,
"state": 1,
"last_changed": 1589205961,
"changed_by": 1,
"changed_by_id": 0,
"based_on": 1,
"data": "",
"name": "Batterie Status",
"id": "91",
"node_id": "0001"
}
],
"statusTemplate": "",
"x": 845,
"y": 240,
"wires": [
[]
],
"l": false
},
{
"id": "c676d7bec2af28b7",
"type": "function",
"z": "7860fa74c036a094",
"name": "Garagentor_Status",
"func": "var auf = flow.get(\"sensorauf\");\nvar zu = flow.get(\"sensorzu\");\nif (auf === true && zu === false){\nnode.send({payload:{\"attribute\":{\"id\":90,\"value\":1}}})}\nelse if (auf === false && zu === true){\nnode.send({payload:{\"attribute\":{\"id\":90,\"value\":0}}})}",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 590,
"y": 240,
"wires": [
[
"a7dded3eda2b221d"
]
]
},
{
"id": "61230e99b726524b",
"type": "ioBroker in",
"z": "7860fa74c036a094",
"name": "Garagentor Zu.OpenClose",
"topic": "homee.0.OpenCloseAndTemperatureSensor-98.OpenClose-682",
"payloadType": "value",
"onlyack": "",
"func": "all",
"gap": "",
"fireOnStart": "true",
"x": 170,
"y": 220,
"wires": [
[
"e0984d46.12e898"
]
]
},
{
"id": "67bf80608fc6acfc",
"type": "ioBroker in",
"z": "7860fa74c036a094",
"name": "Garagentor Offen.OpenClose",
"topic": "homee.0.OpenCloseAndTemperatureSensor-99.OpenClose-694",
"payloadType": "value",
"onlyack": "",
"func": "all",
"gap": "",
"fireOnStart": "true",
"x": 180,
"y": 280,
"wires": [
[
"a58e4bac.415d9"
]
]
},
{
"id": "e0984d46.12e898",
"type": "change",
"z": "7860fa74c036a094",
"name": "",
"rules": [
{
"t": "move",
"p": "payload",
"pt": "msg",
"to": "sensorzu",
"tot": "flow"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 420,
"y": 200,
"wires": [
[
"c676d7bec2af28b7"
]
]
},
{
"id": "a58e4bac.415d9",
"type": "change",
"z": "7860fa74c036a094",
"name": "",
"rules": [
{
"t": "move",
"p": "payload",
"pt": "msg",
"to": "sensorauf",
"tot": "flow"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 420,
"y": 280,
"wires": [
[
"c676d7bec2af28b7"
]
]
}
]
Schau ob es dir hilft.