[
{
"id": "4c7438ae.bcfe38",
"type": "subflow",
"name": "MAX Auto Schlafzimmer",
"info": "# MAX Wochenprofil erstellen",
"category": "MAX Auto Profil",
"in": [
{
"x": 40,
"y": 260,
"wires": [
{
"id": "51b555c8.ab71cc"
}
]
}
],
"out": [
{
"x": 1240,
"y": 260,
"wires": [
{
"id": "11d5c223.e9692e",
"port": 0
},
{
"id": "5b3e5dc0.e43c84",
"port": 0
},
{
"id": "9c7d7d2e.50637",
"port": 0
},
{
"id": "4a57bb1a.df9924",
"port": 0
},
{
"id": "fb565e5a.fe907",
"port": 0
},
{
"id": "13a2b125.6ee33f",
"port": 0
},
{
"id": "fdd1014.e542e",
"port": 0
},
{
"id": "957e2c3a.ab6f6",
"port": 0
},
{
"id": "130aec2a.282f04",
"port": 0
}
]
}
],
"env": [],
"meta": {},
"color": "#FFAAAA",
"outputLabels": [
"AUTO Temperatur"
],
"icon": "font-awesome/fa-thermometer-2"
},
{
"id": "ea94e8f5.b33ed8",
"type": "switch",
"z": "4c7438ae.bcfe38",
"name": "Automatik <Template>- Zeitprofil Mo - Fr",
"property": "payload.time",
"propertyType": "msg",
"rules": [
{
"t": "btwn",
"v": "00:00",
"vt": "str",
"v2": "08:00",
"v2t": "str"
},
{
"t": "btwn",
"v": "08:00",
"vt": "str",
"v2": "09:00",
"v2t": "str"
},
{
"t": "btwn",
"v": "09:00",
"vt": "str",
"v2": "22:00",
"v2t": "str"
},
{
"t": "btwn",
"v": "22:00",
"vt": "str",
"v2": "23:00",
"v2t": "str"
},
{
"t": "btwn",
"v": "23:00",
"vt": "str",
"v2": "24:00",
"v2t": "str"
}
],
"checkall": "false",
"repair": false,
"outputs": 5,
"x": 780,
"y": 160,
"wires": [
[
"11d5c223.e9692e"
],
[
"5b3e5dc0.e43c84"
],
[
"9c7d7d2e.50637"
],
[
"4a57bb1a.df9924"
],
[
"fb565e5a.fe907"
]
]
},
{
"id": "51b555c8.ab71cc",
"type": "change",
"z": "4c7438ae.bcfe38",
"name": "Change $moment",
"rules": [
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "{\"weekday\":\"\",\"time\":\"\"}",
"tot": "json"
},
{
"t": "set",
"p": "payload.weekday",
"pt": "msg",
"to": "$moment().locale(\"de\").tz('Europe/Berlin').format('dddd')",
"tot": "jsonata"
},
{
"t": "set",
"p": "payload.time",
"pt": "msg",
"to": "$moment().locale(\"de\").tz('Europe/Berlin').format('HH:mm')",
"tot": "jsonata"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 190,
"y": 260,
"wires": [
[
"87830eea.d7c75"
]
]
},
{
"id": "5b3e5dc0.e43c84",
"type": "change",
"z": "4c7438ae.bcfe38",
"name": "22 °C",
"rules": [
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "22",
"tot": "num"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 1070,
"y": 120,
"wires": [
[]
]
},
{
"id": "9c7d7d2e.50637",
"type": "change",
"z": "4c7438ae.bcfe38",
"name": "17°C",
"rules": [
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "17",
"tot": "num"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 1070,
"y": 160,
"wires": [
[]
]
},
{
"id": "4a57bb1a.df9924",
"type": "change",
"z": "4c7438ae.bcfe38",
"name": "19 °C",
"rules": [
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "19",
"tot": "num"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 1070,
"y": 200,
"wires": [
[]
]
},
{
"id": "fb565e5a.fe907",
"type": "change",
"z": "4c7438ae.bcfe38",
"name": "17 °C",
"rules": [
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "17",
"tot": "num"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 1070,
"y": 240,
"wires": [
[]
]
},
{
"id": "fd71c298.e38d",
"type": "switch",
"z": "4c7438ae.bcfe38",
"name": "Automatik <Template> - Zeitprofil Sa + So",
"property": "payload.time",
"propertyType": "msg",
"rules": [
{
"t": "btwn",
"v": "00:00",
"vt": "str",
"v2": "08:00",
"v2t": "str"
},
{
"t": "btwn",
"v": "08:00",
"vt": "str",
"v2": "09:00",
"v2t": "str"
},
{
"t": "btwn",
"v": "09:00",
"vt": "str",
"v2": "22:00",
"v2t": "str"
},
{
"t": "btwn",
"v": "22:00",
"vt": "str",
"v2": "23:00",
"v2t": "str"
},
{
"t": "btwn",
"v": "23:00",
"vt": "str",
"v2": "24:00",
"v2t": "str"
}
],
"checkall": "false",
"repair": false,
"outputs": 5,
"x": 780,
"y": 380,
"wires": [
[
"13a2b125.6ee33f"
],
[
"fdd1014.e542e"
],
[
"957e2c3a.ab6f6"
],
[
"92e95f00.95ffb"
],
[
"130aec2a.282f04"
]
]
},
{
"id": "fdd1014.e542e",
"type": "change",
"z": "4c7438ae.bcfe38",
"name": "22 °C",
"rules": [
{
"t": "set",
"p": "topic",
"pt": "msg",
"to": "SaSo-Periode1",
"tot": "str"
},
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "22",
"tot": "num"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 1070,
"y": 340,
"wires": [
[]
]
},
{
"id": "87830eea.d7c75",
"type": "switch",
"z": "4c7438ae.bcfe38",
"name": "Selektiere Wochentage",
"property": "payload.weekday",
"propertyType": "msg",
"rules": [
{
"t": "regex",
"v": "Montag|Dienstag|Mittwoch|Donnerstag|Freitag",
"vt": "str",
"case": true
},
{
"t": "regex",
"v": "Samstag|Sonntag",
"vt": "str",
"case": true
}
],
"checkall": "true",
"repair": false,
"outputs": 2,
"x": 430,
"y": 260,
"wires": [
[
"ea94e8f5.b33ed8"
],
[
"fd71c298.e38d"
]
]
},
{
"id": "957e2c3a.ab6f6",
"type": "change",
"z": "4c7438ae.bcfe38",
"name": "17 °C",
"rules": [
{
"t": "set",
"p": "topic",
"pt": "msg",
"to": "SaSo-Periode1",
"tot": "str"
},
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "17",
"tot": "num"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 1070,
"y": 380,
"wires": [
[]
]
},
{
"id": "92e95f00.95ffb",
"type": "change",
"z": "4c7438ae.bcfe38",
"name": "22 °C",
"rules": [
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "22",
"tot": "num"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 1070,
"y": 420,
"wires": [
[]
]
},
{
"id": "130aec2a.282f04",
"type": "change",
"z": "4c7438ae.bcfe38",
"name": "17 °C",
"rules": [
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "17",
"tot": "num"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 1070,
"y": 460,
"wires": [
[]
]
},
{
"id": "13a2b125.6ee33f",
"type": "change",
"z": "4c7438ae.bcfe38",
"name": "17 °C",
"rules": [
{
"t": "set",
"p": "topic",
"pt": "msg",
"to": "SaSo-Periode1",
"tot": "str"
},
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "17",
"tot": "num"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 1070,
"y": 300,
"wires": [
[]
]
},
{
"id": "11d5c223.e9692e",
"type": "change",
"z": "4c7438ae.bcfe38",
"name": "17 °C",
"rules": [
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "17",
"tot": "num"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 1070,
"y": 80,
"wires": [
[]
]
},
{
"id": "82638b0c.eb3498",
"type": "subflow",
"name": "MAX Auto Bad",
"info": "# MAX Wochenprofil erstellen",
"category": "MAX Auto Profil",
"in": [
{
"x": 40,
"y": 260,
"wires": [
{
"id": "39d58864.e30568"
}
]
}
],
"out": [
{
"x": 1240,
"y": 260,
"wires": [
{
"id": "d23bc85e.43b228",
"port": 0
},
{
"id": "b9148fcf.db6b7",
"port": 0
},
{
"id": "3859cbf8.efeb64",
"port": 0
},
{
"id": "3687dedb.049902",
"port": 0
},
{
"id": "a1ea0b5e.c64828",
"port": 0
},
{
"id": "ce13d754.54b508",
"port": 0
},
{
"id": "7a662555.d7e99c",
"port": 0
},
{
"id": "b8f81c14.7e00e",
"port": 0
},
{
"id": "22fce80d.d8032",
"port": 0
}
]
}
],
"env": [],
"meta": {},
"color": "#FFAAAA",
"outputLabels": [
"AUTO Temperatur"
],
"icon": "font-awesome/fa-thermometer-2"
},
{
"id": "54394067.3d759",
"type": "switch",
"z": "82638b0c.eb3498",
"name": "Automatik <Template>- Zeitprofil Mo - Fr",
"property": "payload.time",
"propertyType": "msg",
"rules": [
{
"t": "btwn",
"v": "00:00",
"vt": "str",
"v2": "08:00",
"v2t": "str"
},
{
"t": "btwn",
"v": "08:00",
"vt": "str",
"v2": "09:00",
"v2t": "str"
},
{
"t": "btwn",
"v": "09:00",
"vt": "str",
"v2": "22:00",
"v2t": "str"
},
{
"t": "btwn",
"v": "22:00",
"vt": "str",
"v2": "23:00",
"v2t": "str"
},
{
"t": "btwn",
"v": "23:00",
"vt": "str",
"v2": "24:00",
"v2t": "str"
}
],
"checkall": "false",
"repair": false,
"outputs": 5,
"x": 780,
"y": 160,
"wires": [
[
"d23bc85e.43b228"
],
[
"b9148fcf.db6b7"
],
[
"3859cbf8.efeb64"
],
[
"3687dedb.049902"
],
[
"a1ea0b5e.c64828"
]
]
},
{
"id": "39d58864.e30568",
"type": "change",
"z": "82638b0c.eb3498",
"name": "Change $moment",
"rules": [
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "{\"weekday\":\"\",\"time\":\"\"}",
"tot": "json"
},
{
"t": "set",
"p": "payload.weekday",
"pt": "msg",
"to": "$moment().locale(\"de\").tz('Europe/Berlin').format('dddd')",
"tot": "jsonata"
},
{
"t": "set",
"p": "payload.time",
"pt": "msg",
"to": "$moment().locale(\"de\").tz('Europe/Berlin').format('HH:mm')",
"tot": "jsonata"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 190,
"y": 260,
"wires": [
[
"223e7dcb.393e22"
]
]
},
{
"id": "b9148fcf.db6b7",
"type": "change",
"z": "82638b0c.eb3498",
"name": "22 °C",
"rules": [
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "22",
"tot": "num"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 1070,
"y": 120,
"wires": [
[]
]
},
{
"id": "3859cbf8.efeb64",
"type": "change",
"z": "82638b0c.eb3498",
"name": "17°C",
"rules": [
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "17",
"tot": "num"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 1070,
"y": 160,
"wires": [
[]
]
},
{
"id": "3687dedb.049902",
"type": "change",
"z": "82638b0c.eb3498",
"name": "22 °C",
"rules": [
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "22",
"tot": "num"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 1070,
"y": 200,
"wires": [
[]
]
},
{
"id": "a1ea0b5e.c64828",
"type": "change",
"z": "82638b0c.eb3498",
"name": "17 °C",
"rules": [
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "17",
"tot": "num"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 1070,
"y": 240,
"wires": [
[]
]
},
{
"id": "e4cd333c.7cb3c",
"type": "switch",
"z": "82638b0c.eb3498",
"name": "Automatik <Template> - Zeitprofil Sa + So",
"property": "payload.time",
"propertyType": "msg",
"rules": [
{
"t": "btwn",
"v": "00:00",
"vt": "str",
"v2": "08:00",
"v2t": "str"
},
{
"t": "btwn",
"v": "08:00",
"vt": "str",
"v2": "09:00",
"v2t": "str"
},
{
"t": "btwn",
"v": "09:00",
"vt": "str",
"v2": "22:00",
"v2t": "str"
},
{
"t": "btwn",
"v": "22:00",
"vt": "str",
"v2": "23:00",
"v2t": "str"
},
{
"t": "btwn",
"v": "23:00",
"vt": "str",
"v2": "24:00",
"v2t": "str"
}
],
"checkall": "false",
"repair": false,
"outputs": 5,
"x": 780,
"y": 380,
"wires": [
[
"ce13d754.54b508"
],
[
"7a662555.d7e99c"
],
[
"b8f81c14.7e00e"
],
[
"f6138415.06d2f8"
],
[
"22fce80d.d8032"
]
]
},
{
"id": "7a662555.d7e99c",
"type": "change",
"z": "82638b0c.eb3498",
"name": "22 °C",
"rules": [
{
"t": "set",
"p": "topic",
"pt": "msg",
"to": "SaSo-Periode1",
"tot": "str"
},
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "22",
"tot": "num"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 1070,
"y": 340,
"wires": [
[]
]
},
{
"id": "223e7dcb.393e22",
"type": "switch",
"z": "82638b0c.eb3498",
"name": "Selektiere Wochentage",
"property": "payload.weekday",
"propertyType": "msg",
"rules": [
{
"t": "regex",
"v": "Montag|Dienstag|Mittwoch|Donnerstag|Freitag",
"vt": "str",
"case": true
},
{
"t": "regex",
"v": "Samstag|Sonntag",
"vt": "str",
"case": true
}
],
"checkall": "true",
"repair": false,
"outputs": 2,
"x": 430,
"y": 260,
"wires": [
[
"54394067.3d759"
],
[
"e4cd333c.7cb3c"
]
]
},
{
"id": "b8f81c14.7e00e",
"type": "change",
"z": "82638b0c.eb3498",
"name": "17 °C",
"rules": [
{
"t": "set",
"p": "topic",
"pt": "msg",
"to": "SaSo-Periode1",
"tot": "str"
},
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "17",
"tot": "num"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 1070,
"y": 380,
"wires": [
[]
]
},
{
"id": "f6138415.06d2f8",
"type": "change",
"z": "82638b0c.eb3498",
"name": "22 °C",
"rules": [
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "22",
"tot": "num"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 1070,
"y": 420,
"wires": [
[]
]
},
{
"id": "22fce80d.d8032",
"type": "change",
"z": "82638b0c.eb3498",
"name": "17 °C",
"rules": [
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "17",
"tot": "num"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 1070,
"y": 460,
"wires": [
[]
]
},
{
"id": "ce13d754.54b508",
"type": "change",
"z": "82638b0c.eb3498",
"name": "17 °C",
"rules": [
{
"t": "set",
"p": "topic",
"pt": "msg",
"to": "SaSo-Periode1",
"tot": "str"
},
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "17",
"tot": "num"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 1070,
"y": 300,
"wires": [
[]
]
},
{
"id": "d23bc85e.43b228",
"type": "change",
"z": "82638b0c.eb3498",
"name": "17 °C",
"rules": [
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "17",
"tot": "num"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 1070,
"y": 80,
"wires": [
[]
]
},
{
"id": "ab72ca6c.56b658",
"type": "ioBroker in",
"z": "6f3801b9.ba4b6",
"name": "absenceAll",
"topic": "0_userdata.0.testType",
"payloadType": "value",
"onlyack": "",
"func": "all",
"gap": "",
"fireOnStart": "true",
"x": 730,
"y": 940,
"wires": [
[
"7fb84e52.ded01"
]
]
},
{
"id": "7fb84e52.ded01",
"type": "switch",
"z": "6f3801b9.ba4b6",
"name": "alle weg?",
"property": "payload",
"propertyType": "msg",
"rules": [
{
"t": "true"
},
{
"t": "false"
}
],
"checkall": "true",
"repair": false,
"outputs": 2,
"x": 900,
"y": 940,
"wires": [
[
"ccc4a8e2.b3d208"
],
[
"d9b6f8e1.43a028",
"cb6c610c.b148b"
]
]
},
{
"id": "ccc4a8e2.b3d208",
"type": "change",
"z": "6f3801b9.ba4b6",
"name": "setze Temperatur auf 4.5 Grad",
"rules": [
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "4.5",
"tot": "num"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 1160,
"y": 880,
"wires": [
[
"42b431b2.7dc6b",
"bbdabb1a.476468"
]
]
},
{
"id": "42b431b2.7dc6b",
"type": "ioBroker out",
"z": "6f3801b9.ba4b6",
"name": "setze setpoint Bad",
"topic": "0_userdata.0.testType",
"ack": "false",
"autoCreate": "false",
"stateName": "",
"role": "",
"payloadType": "",
"readonly": "",
"stateUnit": "",
"stateMin": "",
"stateMax": "",
"x": 1470,
"y": 820,
"wires": []
},
{
"id": "bbdabb1a.476468",
"type": "ioBroker out",
"z": "6f3801b9.ba4b6",
"name": "setze setpoint Schlafzimmer",
"topic": "0_userdata.0.testType",
"ack": "false",
"autoCreate": "false",
"stateName": "",
"role": "",
"payloadType": "",
"readonly": "",
"stateUnit": "",
"stateMin": "",
"stateMax": "",
"x": 1500,
"y": 860,
"wires": []
},
{
"id": "d9b6f8e1.43a028",
"type": "subflow:82638b0c.eb3498",
"z": "6f3801b9.ba4b6",
"name": "",
"x": 1200,
"y": 960,
"wires": [
[
"42b431b2.7dc6b",
"88838135.299f8"
]
]
},
{
"id": "cb6c610c.b148b",
"type": "subflow:4c7438ae.bcfe38",
"z": "6f3801b9.ba4b6",
"name": "",
"x": 1170,
"y": 1000,
"wires": [
[
"bbdabb1a.476468",
"88838135.299f8"
]
]
},
{
"id": "88838135.299f8",
"type": "delay",
"z": "6f3801b9.ba4b6",
"name": "",
"pauseType": "delay",
"timeout": "1",
"timeoutUnits": "minutes",
"rate": "1",
"nbRateUnits": "1",
"rateUnits": "second",
"randomFirst": "1",
"randomLast": "5",
"randomUnits": "seconds",
"drop": false,
"x": 1460,
"y": 980,
"wires": [
[
"ca582e80.a5362"
]
]
},
{
"id": "ca582e80.a5362",
"type": "change",
"z": "6f3801b9.ba4b6",
"name": "setze AUTO(0)",
"rules": [
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "0",
"tot": "num"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 1660,
"y": 980,
"wires": [
[
"37a8e748.b93b78",
"db3c124d.be0ee"
]
]
},
{
"id": "37a8e748.b93b78",
"type": "ioBroker out",
"z": "6f3801b9.ba4b6",
"name": "setze mode Bad",
"topic": "0_userdata.0.testType",
"ack": "false",
"autoCreate": "false",
"stateName": "",
"role": "",
"payloadType": "",
"readonly": "",
"stateUnit": "",
"stateMin": "",
"stateMax": "",
"x": 1880,
"y": 960,
"wires": []
},
{
"id": "db3c124d.be0ee",
"type": "ioBroker out",
"z": "6f3801b9.ba4b6",
"name": "setze mode Schlafzimmer",
"topic": "0_userdata.0.testType",
"ack": "false",
"autoCreate": "false",
"stateName": "",
"role": "",
"payloadType": "",
"readonly": "",
"stateUnit": "",
"stateMin": "",
"stateMax": "",
"x": 1910,
"y": 1000,
"wires": []
}
]