[
{
"id": "8a9f2e53cba0f9db",
"type": "mqtt in",
"z": "dc34425fdcbad6f6",
"name": "",
"topic": "openWB/housebattery/W",
"qos": "2",
"datatype": "auto-detect",
"broker": "25bae39f364832cf",
"nl": false,
"rap": true,
"rh": 0,
"inputs": 0,
"x": 170,
"y": 620,
"wires": [
[
"710bbfb486a16c1c"
]
]
},
{
"id": "042f531628c05590",
"type": "debug",
"z": "dc34425fdcbad6f6",
"name": "SMA Ladung",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 490,
"y": 580,
"wires": []
},
{
"id": "1289f2571390bf1d",
"type": "mqtt in",
"z": "dc34425fdcbad6f6",
"name": "",
"topic": "openWB/housebattery/%Soc",
"qos": "0",
"datatype": "auto-detect",
"broker": "25bae39f364832cf",
"nl": false,
"rap": true,
"rh": 0,
"inputs": 0,
"x": 180,
"y": 860,
"wires": [
[
"da65b9c21543aaef"
]
]
},
{
"id": "5755a104d1fefad9",
"type": "debug",
"z": "dc34425fdcbad6f6",
"name": "SMA SOC",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 450,
"y": 1000,
"wires": []
},
{
"id": "9ad4a20bd808759f",
"type": "change",
"z": "dc34425fdcbad6f6",
"name": "SMAcharge",
"rules": [
{
"t": "set",
"p": "topic",
"pt": "msg",
"to": "SMAcharge",
"tot": "str"
},
{
"t": "set",
"p": "SMAcharge",
"pt": "flow",
"to": "payload",
"tot": "msg"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 330,
"y": 700,
"wires": [
[
"042f531628c05590",
"7a7ae0708f9c160e"
]
]
},
{
"id": "d1476c81b719d3da",
"type": "change",
"z": "dc34425fdcbad6f6",
"name": "SMAsoc",
"rules": [
{
"t": "set",
"p": "topic",
"pt": "msg",
"to": "SMAsoc",
"tot": "str"
},
{
"t": "set",
"p": "SMAsoc",
"pt": "flow",
"to": "payload",
"tot": "msg"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 320,
"y": 940,
"wires": [
[
"5755a104d1fefad9",
"2ce6b6ac8beaaac7",
"c9e121e18c3858cb"
]
]
},
{
"id": "710bbfb486a16c1c",
"type": "rbe",
"z": "dc34425fdcbad6f6",
"name": "",
"func": "rbe",
"gap": "",
"start": "",
"inout": "out",
"septopics": false,
"property": "payload",
"topi": "topic",
"x": 150,
"y": 700,
"wires": [
[
"9ad4a20bd808759f"
]
]
},
{
"id": "da65b9c21543aaef",
"type": "rbe",
"z": "dc34425fdcbad6f6",
"name": "",
"func": "rbe",
"gap": "",
"start": "",
"inout": "out",
"septopics": false,
"property": "payload",
"topi": "topic",
"x": 150,
"y": 940,
"wires": [
[
"d1476c81b719d3da"
]
]
},
{
"id": "2ce6b6ac8beaaac7",
"type": "switch",
"z": "dc34425fdcbad6f6",
"name": "",
"property": "payload",
"propertyType": "msg",
"rules": [
{
"t": "lt",
"v": "49",
"vt": "num"
},
{
"t": "btwn",
"v": "49",
"vt": "num",
"v2": "55",
"v2t": "num"
},
{
"t": "gt",
"v": "55",
"vt": "num"
}
],
"checkall": "true",
"repair": false,
"outputs": 3,
"x": 510,
"y": 940,
"wires": [
[
"139b9845ae856742",
"f65081881e7f66b3"
],
[
"6d3df0cbf367ec31"
],
[
"a3f73d4f7afb5fbf",
"146e9ccbe758b0b9"
]
]
},
{
"id": "7a7ae0708f9c160e",
"type": "switch",
"z": "dc34425fdcbad6f6",
"name": "",
"property": "payload",
"propertyType": "msg",
"rules": [
{
"t": "lt",
"v": "1500",
"vt": "num"
},
{
"t": "btwn",
"v": "1500",
"vt": "num",
"v2": "3800",
"v2t": "num"
},
{
"t": "gt",
"v": "3800",
"vt": "num"
}
],
"checkall": "true",
"repair": false,
"outputs": 3,
"x": 510,
"y": 700,
"wires": [
[
"edabec89dec66e03",
"2614728e8f3a3b36"
],
[
"67c43fd717fc2e41"
],
[
"1267fb0309718af7",
"a1f415285d8f9ca9"
]
]
},
{
"id": "139b9845ae856742",
"type": "trigger",
"z": "dc34425fdcbad6f6",
"name": "setze false",
"op1": "",
"op2": "false",
"op1type": "nul",
"op2type": "bool",
"duration": "60",
"extend": false,
"overrideDelay": true,
"units": "s",
"reset": "",
"bytopic": "all",
"topic": "topic",
"outputs": 1,
"x": 870,
"y": 880,
"wires": [
[
"edf0fcde21432d8f"
]
]
},
{
"id": "a3f73d4f7afb5fbf",
"type": "trigger",
"z": "dc34425fdcbad6f6",
"name": "setze true",
"op1": "",
"op2": "true",
"op1type": "nul",
"op2type": "bool",
"duration": "60",
"extend": false,
"overrideDelay": true,
"units": "s",
"reset": "",
"bytopic": "all",
"topic": "topic",
"outputs": 1,
"x": 880,
"y": 980,
"wires": [
[
"7e5a064ccd5b98b9"
]
]
},
{
"id": "f65081881e7f66b3",
"type": "change",
"z": "dc34425fdcbad6f6",
"name": "reset",
"rules": [
{
"t": "set",
"p": "reset",
"pt": "msg",
"to": "true",
"tot": "bool"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 690,
"y": 860,
"wires": [
[
"a3f73d4f7afb5fbf"
]
]
},
{
"id": "6d3df0cbf367ec31",
"type": "change",
"z": "dc34425fdcbad6f6",
"name": "reset",
"rules": [
{
"t": "set",
"p": "reset",
"pt": "msg",
"to": "true",
"tot": "bool"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 690,
"y": 940,
"wires": [
[
"139b9845ae856742",
"a3f73d4f7afb5fbf"
]
]
},
{
"id": "146e9ccbe758b0b9",
"type": "change",
"z": "dc34425fdcbad6f6",
"name": "reset",
"rules": [
{
"t": "set",
"p": "reset",
"pt": "msg",
"to": "true",
"tot": "bool"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 730,
"y": 1000,
"wires": [
[
"139b9845ae856742"
]
]
},
{
"id": "edabec89dec66e03",
"type": "trigger",
"z": "dc34425fdcbad6f6",
"name": "setze false",
"op1": "",
"op2": "false",
"op1type": "nul",
"op2type": "bool",
"duration": "60",
"extend": false,
"overrideDelay": true,
"units": "s",
"reset": "",
"bytopic": "all",
"topic": "topic",
"outputs": 1,
"x": 870,
"y": 640,
"wires": [
[
"9cb270a3cc1dbcba"
]
]
},
{
"id": "1267fb0309718af7",
"type": "trigger",
"z": "dc34425fdcbad6f6",
"name": "setze true",
"op1": "",
"op2": "true",
"op1type": "nul",
"op2type": "bool",
"duration": "60",
"extend": false,
"overrideDelay": true,
"units": "s",
"reset": "",
"bytopic": "all",
"topic": "topic",
"outputs": 1,
"x": 860,
"y": 720,
"wires": [
[
"f6a8cb46c61a8f11"
]
]
},
{
"id": "2614728e8f3a3b36",
"type": "change",
"z": "dc34425fdcbad6f6",
"name": "reset",
"rules": [
{
"t": "set",
"p": "reset",
"pt": "msg",
"to": "true",
"tot": "bool"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 690,
"y": 620,
"wires": [
[
"1267fb0309718af7"
]
]
},
{
"id": "67c43fd717fc2e41",
"type": "change",
"z": "dc34425fdcbad6f6",
"name": "reset",
"rules": [
{
"t": "set",
"p": "reset",
"pt": "msg",
"to": "true",
"tot": "bool"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 690,
"y": 700,
"wires": [
[
"edabec89dec66e03",
"1267fb0309718af7"
]
]
},
{
"id": "a1f415285d8f9ca9",
"type": "change",
"z": "dc34425fdcbad6f6",
"name": "reset",
"rules": [
{
"t": "set",
"p": "reset",
"pt": "msg",
"to": "true",
"tot": "bool"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 690,
"y": 760,
"wires": [
[
"edabec89dec66e03"
]
]
},
{
"id": "f6a8cb46c61a8f11",
"type": "rbe",
"z": "dc34425fdcbad6f6",
"name": "",
"func": "rbe",
"gap": "",
"start": "",
"inout": "out",
"septopics": false,
"property": "payload",
"topi": "topic",
"x": 1030,
"y": 720,
"wires": [
[
"fc6969463c24a6b0"
]
]
},
{
"id": "fdf451d9f508d165",
"type": "change",
"z": "dc34425fdcbad6f6",
"name": "AND ?",
"rules": [
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "$reduce(payload.*,function($i, $j){$i and $j})",
"tot": "jsonata"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 1250,
"y": 800,
"wires": [
[
"a68dfdf79d15a609"
]
],
"info": "# All Property of an object must be true.\n\nAll properties of an object must be true.\n\n`{\n \"Office\": true,\n \"Bedroom\": true,\n \"Living Room Balcony\": true,\n \"Living Room Right Window\": true,\n \"Living Room Left Window\": true\n}`\n\nis true,\n\n`{\n \"Office\": true,\n \"Bedroom\": false,\n \"Living Room Balcony\": true,\n \"Living Room Right Window\": true,\n \"Living Room Left Window\": true\n}`\n\nis false.\n\n# Alle Eigenschaften eines Objektes müssen wahr sein\n\nAlle Eigenschaften eines Objektes müssen wahr sein.\n\n`{\n \"Büro Balkon\": true,\n \"Schlafzimmer Balkon\": true,\n \"Wohnzimmer Balkon\": true,\n \"Wohnzimmer rechtes Fenster\": true,\n \"Wohnzimmer linkes Fenster\": true\n}`\n\nergibt true,\n\n`{\n \"Büro Balkon\": true,\n \"Schlafzimmer Balkon\": true,\n \"Wohnzimmer Balkon\": true,\n \"Wohnzimmer rechtes Fenster\": false,\n \"Wohnzimmer linkes Fenster\": true\n}`\n\nergibt false."
},
{
"id": "7e5a064ccd5b98b9",
"type": "rbe",
"z": "dc34425fdcbad6f6",
"name": "",
"func": "rbe",
"gap": "",
"start": "",
"inout": "out",
"septopics": false,
"property": "payload",
"topi": "topic",
"x": 1010,
"y": 980,
"wires": [
[
"fc6969463c24a6b0"
]
]
},
{
"id": "fc6969463c24a6b0",
"type": "join",
"z": "dc34425fdcbad6f6",
"name": "",
"mode": "custom",
"build": "object",
"property": "payload",
"propertyType": "msg",
"key": "topic",
"joiner": "\\n",
"joinerType": "str",
"accumulate": false,
"timeout": "",
"count": "2",
"reduceRight": false,
"reduceExp": "",
"reduceInit": "",
"reduceInitType": "",
"reduceFixup": "",
"x": 1130,
"y": 800,
"wires": [
[
"fdf451d9f508d165"
]
]
},
{
"id": "a68dfdf79d15a609",
"type": "change",
"z": "dc34425fdcbad6f6",
"name": "Force -1500",
"rules": [
{
"t": "set",
"p": "forcevictron",
"pt": "flow",
"to": "-1500",
"tot": "num"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 1410,
"y": 800,
"wires": [
[]
]
},
{
"id": "12d3de1061f8cd89",
"type": "change",
"z": "dc34425fdcbad6f6",
"name": "Force 0",
"rules": [
{
"t": "set",
"p": "forcevictron",
"pt": "flow",
"to": "0",
"tot": "num"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 1400,
"y": 880,
"wires": [
[]
]
},
{
"id": "edf0fcde21432d8f",
"type": "rbe",
"z": "dc34425fdcbad6f6",
"name": "",
"func": "rbe",
"gap": "",
"start": "",
"inout": "out",
"septopics": false,
"property": "payload",
"topi": "topic",
"x": 1010,
"y": 880,
"wires": [
[
"12d3de1061f8cd89"
]
]
},
{
"id": "9cb270a3cc1dbcba",
"type": "rbe",
"z": "dc34425fdcbad6f6",
"name": "",
"func": "rbe",
"gap": "",
"start": "",
"inout": "out",
"septopics": false,
"property": "payload",
"topi": "topic",
"x": 1030,
"y": 640,
"wires": [
[
"12d3de1061f8cd89"
]
]
},
{
"id": "c9e121e18c3858cb",
"type": "switch",
"z": "dc34425fdcbad6f6",
"name": "",
"property": "payload",
"propertyType": "msg",
"rules": [
{
"t": "lt",
"v": "94",
"vt": "num"
},
{
"t": "btwn",
"v": "94",
"vt": "num",
"v2": "95",
"v2t": "num"
},
{
"t": "gt",
"v": "95",
"vt": "num"
}
],
"checkall": "true",
"repair": false,
"outputs": 3,
"x": 530,
"y": 1160,
"wires": [
[
"77dd766d73980f05"
],
[
"4021a2f868b6ef56"
],
[
"185d0153538ea72e",
"a68dfdf79d15a609"
]
]
},
{
"id": "77dd766d73980f05",
"type": "trigger",
"z": "dc34425fdcbad6f6",
"name": "setze false",
"op1": "",
"op2": "false",
"op1type": "nul",
"op2type": "bool",
"duration": "60",
"extend": false,
"overrideDelay": true,
"units": "s",
"reset": "",
"bytopic": "all",
"topic": "topic",
"outputs": 1,
"x": 890,
"y": 1100,
"wires": [
[
"ac2af08c0f7ccd9b"
]
]
},
{
"id": "4021a2f868b6ef56",
"type": "change",
"z": "dc34425fdcbad6f6",
"name": "reset",
"rules": [
{
"t": "set",
"p": "reset",
"pt": "msg",
"to": "true",
"tot": "bool"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 710,
"y": 1160,
"wires": [
[
"77dd766d73980f05"
]
]
},
{
"id": "185d0153538ea72e",
"type": "change",
"z": "dc34425fdcbad6f6",
"name": "reset",
"rules": [
{
"t": "set",
"p": "reset",
"pt": "msg",
"to": "true",
"tot": "bool"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 710,
"y": 1220,
"wires": [
[
"77dd766d73980f05"
]
]
},
{
"id": "ac2af08c0f7ccd9b",
"type": "rbe",
"z": "dc34425fdcbad6f6",
"name": "",
"func": "rbe",
"gap": "",
"start": "",
"inout": "out",
"septopics": false,
"property": "payload",
"topi": "topic",
"x": 1030,
"y": 1100,
"wires": [
[
"12d3de1061f8cd89"
]
]
},
{
"id": "25bae39f364832cf",
"type": "mqtt-broker",
"name": "OpenWB4",
"broker": "192.168.123.14",
"port": "1883",
"clientid": "",
"autoConnect": true,
"usetls": false,
"protocolVersion": "4",
"keepalive": "60",
"cleansession": true,
"autoUnsubscribe": true,
"birthTopic": "",
"birthQos": "0",
"birthRetain": "false",
"birthPayload": "",
"birthMsg": {},
"closeTopic": "",
"closeQos": "0",
"closeRetain": "false",
"closePayload": "",
"closeMsg": {},
"willTopic": "",
"willQos": "0",
"willRetain": "false",
"willPayload": "",
"willMsg": {},
"userProps": "",
"sessionExpiry": ""
}
]