[
{
"id": "7168f4fee6b218e3",
"type": "mqtt in",
"z": "7e6af0015415146d",
"d": true,
"name": "",
"topic": "tor",
"qos": "2",
"datatype": "auto-detect",
"broker": "be6c1eaab0dff4fe",
"nl": false,
"rap": true,
"rh": 0,
"inputs": 0,
"x": 130,
"y": 6900,
"wires": [
[
"e4fa43d23db23eed"
]
]
},
{
"id": "e4fa43d23db23eed",
"type": "switch",
"z": "7e6af0015415146d",
"name": "Tor geht auf/zu",
"property": "payload",
"propertyType": "msg",
"rules": [
{
"t": "gt",
"v": "",
"vt": "prev"
},
{
"t": "lt",
"v": "",
"vt": "prev"
}
],
"checkall": "true",
"repair": false,
"outputs": 2,
"x": 300,
"y": 6900,
"wires": [
[
"e1f420dd6fa1957c"
],
[]
],
"outputLabels": [
"Tor auf",
"Tor zu"
]
},
{
"id": "e1f420dd6fa1957c",
"type": "switch",
"z": "7e6af0015415146d",
"name": "Tor über 20%",
"property": "payload",
"propertyType": "msg",
"rules": [
{
"t": "gte",
"v": "20",
"vt": "num"
}
],
"checkall": "true",
"repair": false,
"outputs": 1,
"x": 510,
"y": 6860,
"wires": [
[
"c449567fbe887ce5"
]
]
},
{
"id": "c449567fbe887ce5",
"type": "ioBroker get",
"z": "7e6af0015415146d",
"name": "Licht status?",
"topic": "",
"attrname": "payload",
"payloadType": "value",
"errOnInvalidState": "nothing",
"x": 690,
"y": 6860,
"wires": [
[
"6303e8da33fc9b23"
]
]
},
{
"id": "6303e8da33fc9b23",
"type": "switch",
"z": "7e6af0015415146d",
"name": "Licht aus?",
"property": "payload",
"propertyType": "msg",
"rules": [
{
"t": "false"
}
],
"checkall": "true",
"repair": false,
"outputs": 1,
"x": 870,
"y": 6860,
"wires": [
[
"6f9d4a16951d6222"
]
]
},
{
"id": "9e43424f8a404313",
"type": "debug",
"z": "7e6af0015415146d",
"name": "Licht ein",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 1220,
"y": 6900,
"wires": []
},
{
"id": "6f9d4a16951d6222",
"type": "change",
"z": "7e6af0015415146d",
"name": "Licht ein",
"rules": [
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "true",
"tot": "bool"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 1040,
"y": 6860,
"wires": [
[
"9e43424f8a404313"
]
]
},
{
"id": "be6c1eaab0dff4fe",
"type": "mqtt-broker",
"name": "",
"broker": "192.168.178.104",
"port": "1883",
"clientid": "mqttClientNodeRedTest",
"autoConnect": true,
"usetls": false,
"protocolVersion": "4",
"keepalive": "60",
"cleansession": true,
"autoUnsubscribe": true,
"birthTopic": "",
"birthQos": "0",
"birthPayload": "",
"birthMsg": {},
"closeTopic": "",
"closeQos": "0",
"closePayload": "",
"closeMsg": {},
"willTopic": "",
"willQos": "0",
"willPayload": "",
"willMsg": {},
"userProps": "",
"sessionExpiry": ""
}
]