[ {
"id": "82113ca9.afeb8",
"type": "tab",
"label": "Oliverbrauch",
"disabled": false,
"info": ""
},
{
"id": "11c087ba.220c58",
"type": "inject",
"z": "82113ca9.afeb8",
"name": "",
"topic": "",
"payload": "",
"payloadType": "date",
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"x": 168,
"y": 165,
"wires": [
[
"dee78175.5f021"
]
]
},
{
"id": "dee78175.5f021",
"type": "ioBroker get",
"z": "82113ca9.afeb8",
"name": "Oli_Menge_",
"topic": "Hilfsvariablen.0.Oli_Menge",
"attrname": "Menge",
"payloadType": "value",
"x": 374,
"y": 161,
"wires": [
[
"58635974.4e6638"
]
]
},
{
"id": "58635974.4e6638",
"type": "ioBroker get",
"z": "82113ca9.afeb8",
"name": "Oli_Verbrauch_",
"topic": "Hilfsvariablen.0.Oli_Verbrauch",
"attrname": "verbrauch",
"payloadType": "value",
"x": 602,
"y": 156,
"wires": [
[
"9a28af9e.561ef"
]
]
},
{
"id": "c37f668c.6d8b48",
"type": "debug",
"z": "82113ca9.afeb8",
"name": "",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "true",
"x": 1110,
"y": 440,
"wires": []
},
{
"id": "9a28af9e.561ef",
"type": "function",
"z": "82113ca9.afeb8",
"name": "math",
"func": "var math = Number(msg.Menge) / Number(msg.verbrauch);\nmsg.payload = math;\nreturn msg;",
"outputs": 1,
"noerr": 0,
"x": 816,
"y": 163,
"wires": [
[
"be5d8dd1.b93df"
]
]
},
{
"id": "be5d8dd1.b93df",
"type": "function",
"z": "82113ca9.afeb8",
"name": "runden auf 2 komma stellen",
"func": "msg.payload = Math.round(msg.payload * 100) / 100;\nreturn msg;",
"outputs": 1,
"noerr": 0,
"x": 822,
"y": 224,
"wires": [
[
"ce8147b1.660198"
]
]
},
{
"id": "ce8147b1.660198",
"type": "ioBroker out",
"z": "82113ca9.afeb8",
"name": "Oli_Tage_",
"topic": "Hilfsvariablen.0.Oli_Tage",
"ack": "false",
"autoCreate": "false",
"x": 869,
"y": 310,
"wires": []
},
{
"id": "567bbf74.10d11",
"type": "cron",
"z": "82113ca9.afeb8",
"name": "30 22 * * *",
"crontab": "30 22 * * *",
"x": 76,
"y": 228,
"wires": [
[
"b4ed5565.db9b08"
]
]
},
{
"id": "b4ed5565.db9b08",
"type": "ioBroker get",
"z": "82113ca9.afeb8",
"name": "Sommer_Winter",
"topic": "Hilfsvariablen.0.Sommer_Winter",
"attrname": "payload",
"payloadType": "value",
"x": 235,
"y": 226,
"wires": [
[
"30091427.846f5c"
]
]
},
{
"id": "30091427.846f5c",
"type": "switch",
"z": "82113ca9.afeb8",
"name": "Sommer_Winter",
"property": "payload",
"propertyType": "msg",
"rules": [
{
"t": "eq",
"v": "true",
"vt": "str"
},
{
"t": "eq",
"v": "false",
"vt": "str"
}
],
"checkall": "true",
"repair": false,
"outputs": 2,
"x": 438,
"y": 241,
"wires": [
[
"dee78175.5f021"
],
[]
]
},
{
"id": "bb27e682.88e398",
"type": "function",
"z": "82113ca9.afeb8",
"name": "math",
"func": "var math = Number(msg.Menge) / Number(msg.verbrauch);\nmsg.payload = math;\nreturn msg;",
"outputs": 1,
"noerr": 0,
"x": 866,
"y": 478,
"wires": [
[
"d20fc28c.60be"
]
]
},
{
"id": "d20fc28c.60be",
"type": "function",
"z": "82113ca9.afeb8",
"name": "runden auf 0 komma stellen",
"func": "msg.payload = Math.round(msg.payload * 1) / 1;\nreturn msg;",
"outputs": 1,
"noerr": 0,
"x": 580,
"y": 530,
"wires": [
[
"30113f34.97908"
]
]
},
{
"id": "6f64d14d.5cc31",
"type": "ioBroker get",
"z": "82113ca9.afeb8",
"name": "Oli_Menge_",
"topic": "Hilfsvariablen.0.Oli_Menge",
"attrname": "Menge",
"payloadType": "value",
"x": 602,
"y": 400,
"wires": [
[
"7ae4decd.8e369"
]
]
},
{
"id": "7ae4decd.8e369",
"type": "ioBroker get",
"z": "82113ca9.afeb8",
"name": "Oli_Verbrauch_",
"topic": "Hilfsvariablen.0.Oli_Verbrauch",
"attrname": "verbrauch",
"payloadType": "value",
"x": 800,
"y": 417,
"wires": [
[
"bb27e682.88e398"
]
]
},
{
"id": "66bf633e.b601ac",
"type": "cron",
"z": "82113ca9.afeb8",
"name": "00 22 * * 6",
"crontab": "00 22 * * 6",
"x": 67,
"y": 430,
"wires": [
[
"63a428f3.033af8"
]
]
},
{
"id": "63a428f3.033af8",
"type": "ioBroker get",
"z": "82113ca9.afeb8",
"name": "Sommer_Winter",
"topic": "Hilfsvariablen.0.Sommer_Winter",
"attrname": "payload",
"payloadType": "value",
"x": 232,
"y": 401,
"wires": [
[
"176e45b8.96b25a"
]
]
},
{
"id": "176e45b8.96b25a",
"type": "switch",
"z": "82113ca9.afeb8",
"name": "Sommer_Winter",
"property": "payload",
"propertyType": "msg",
"rules": [
{
"t": "eq",
"v": "true",
"vt": "str"
},
{
"t": "eq",
"v": "false",
"vt": "str"
}
],
"checkall": "true",
"repair": false,
"outputs": 2,
"x": 435,
"y": 416,
"wires": [
[
"6f64d14d.5cc31"
],
[]
]
},
{
"id": "764c51da.c4b52",
"type": "ioBroker out",
"z": "82113ca9.afeb8",
"name": "speak",
"topic": "alexa2.0.Echo-Devices.90F00818732500U1.Commands.speak",
"ack": "false",
"autoCreate": "false",
"x": 985,
"y": 590,
"wires": []
},
{
"id": "aa427eb2.eb5a",
"type": "inject",
"z": "82113ca9.afeb8",
"name": "",
"topic": "",
"payload": "",
"payloadType": "date",
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"x": 82,
"y": 365,
"wires": [
[
"63a428f3.033af8"
]
]
},
{
"id": "30113f34.97908",
"type": "function",
"z": "82113ca9.afeb8",
"name": "text bauen",
"func": "msg.payload = 'Der Heizölvorrat reicht noch ' + msg.payload + ' Tage';\n\nreturn msg;",
"outputs": 1,
"noerr": 0,
"x": 683,
"y": 588,
"wires": [
[
"764c51da.c4b52",
"c37f668c.6d8b48"
]
]
}
]