[ {
"id": "f671a88c.d70aa8",
"type": "tab",
"label": "Stromverbrauch",
"disabled": false,
"info": ""
},
{
"id": "b5f9c64d.f0b748",
"type": "inject",
"z": "f671a88c.d70aa8",
"name": "",
"topic": "",
"payload": "",
"payloadType": "date",
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"x": 268,
"y": 78,
"wires": [
[
"5a66a3ce.ff658c"
]
]
},
{
"id": "5a66a3ce.ff658c",
"type": "ioBroker get",
"z": "f671a88c.d70aa8",
"name": "19",
"topic": "tuya.0.01484160dc4f22d03663.19",
"attrname": "Menge",
"payloadType": "value",
"x": 454,
"y": 74,
"wires": [
[
"9f967bff.cb6cc8"
]
]
},
{
"id": "9f967bff.cb6cc8",
"type": "ioBroker get",
"z": "f671a88c.d70aa8",
"name": "Strom_Verbrauch_24Std_Server_",
"topic": "Hilfsvariablen.0.Strom_Verbrauch_24Std_Server",
"attrname": "verbrauch",
"payloadType": "value",
"x": 741,
"y": 76,
"wires": [
[
"7fdd9244.11db2c"
]
]
},
{
"id": "7fdd9244.11db2c",
"type": "function",
"z": "f671a88c.d70aa8",
"name": "math",
"func": "var math = Number(msg.Menge) * Number(msg.verbrauch);\nmsg.payload = math;\nreturn msg;",
"outputs": 1,
"noerr": 0,
"x": 983,
"y": 77,
"wires": [
[
"1e82477.348b4b9"
]
]
},
{
"id": "1e82477.348b4b9",
"type": "function",
"z": "f671a88c.d70aa8",
"name": "runden auf 2 komma stellen",
"func": "msg.payload = Math.round(msg.payload) / 10000;\nreturn msg;",
"outputs": 1,
"noerr": 0,
"x": 922,
"y": 137,
"wires": [
[
"1f13d4c5.b168db"
]
]
},
{
"id": "1f13d4c5.b168db",
"type": "ioBroker out",
"z": "f671a88c.d70aa8",
"name": "Strom_Verbrauch_Tag_Server_",
"topic": "Hilfsvariablen.0.Strom_Verbrauch_Tag_Server",
"ack": "false",
"autoCreate": "false",
"x": 1039,
"y": 223,
"wires": []
},
{
"id": "6b0d2f14.5dd9b",
"type": "cron",
"z": "f671a88c.d70aa8",
"name": "00 00 * * *",
"crontab": "00 00 * * *",
"x": 270,
"y": 130,
"wires": [
[
"5a66a3ce.ff658c"
]
]
},
{
"id": "53521ad9.90b0e4",
"type": "inject",
"z": "f671a88c.d70aa8",
"name": "",
"topic": "",
"payload": "",
"payloadType": "date",
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"x": 183,
"y": 485,
"wires": [
[
"db255051.9a02d"
]
]
},
{
"id": "db255051.9a02d",
"type": "ioBroker get",
"z": "f671a88c.d70aa8",
"name": "Strom_Verbrauch_Tag_Server_",
"topic": "Hilfsvariablen.0.Strom_Verbrauch_Tag_Server",
"attrname": "Menge",
"payloadType": "value",
"x": 449,
"y": 481,
"wires": [
[
"b2bbb3d8.e951b"
]
]
},
{
"id": "b2bbb3d8.e951b",
"type": "ioBroker get",
"z": "f671a88c.d70aa8",
"name": "Strom_Verbrauch_Tage_Monat_",
"topic": "Hilfsvariablen.0.Strom_Verbrauch_Tage_Monat",
"attrname": "verbrauch",
"payloadType": "value",
"x": 720,
"y": 420,
"wires": [
[
"f1bdf40f.0d86d8"
]
]
},
{
"id": "f1bdf40f.0d86d8",
"type": "function",
"z": "f671a88c.d70aa8",
"name": "math",
"func": "var math = Number(msg.Menge) * Number(msg.verbrauch);\nmsg.payload = math;\nreturn msg;",
"outputs": 1,
"noerr": 0,
"x": 898,
"y": 484,
"wires": [
[
"2a3f97a2.0e4498"
]
]
},
{
"id": "2a3f97a2.0e4498",
"type": "function",
"z": "f671a88c.d70aa8",
"name": "runden auf 2 komma stellen",
"func": "msg.payload = Math.round(msg.payload);\nreturn msg;",
"outputs": 1,
"noerr": 0,
"x": 837,
"y": 544,
"wires": [
[
"adbf4398.00ccf"
]
]
},
{
"id": "adbf4398.00ccf",
"type": "ioBroker out",
"z": "f671a88c.d70aa8",
"name": "Strom_Verbrauch_Monat_Server_",
"topic": "Hilfsvariablen.0.Strom_Verbrauch_Monat_Server",
"ack": "false",
"autoCreate": "false",
"x": 964,
"y": 630,
"wires": []
},
{
"id": "371ed933.5e4c66",
"type": "cron",
"z": "f671a88c.d70aa8",
"name": "00 00 * * *",
"crontab": "00 00 * * *",
"x": 180,
"y": 541,
"wires": [
[
"db255051.9a02d"
]
]
},
{
"id": "62f6a86.5af9458",
"type": "inject",
"z": "f671a88c.d70aa8",
"name": "",
"topic": "",
"payload": "",
"payloadType": "date",
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"x": 157,
"y": 819,
"wires": [
[
"a40c0acd.129008"
]
]
},
{
"id": "a40c0acd.129008",
"type": "ioBroker get",
"z": "f671a88c.d70aa8",
"name": "Strom_Verbrauch_Monat_Server_",
"topic": "Hilfsvariablen.0.Strom_Verbrauch_Monat_Server",
"attrname": "Menge",
"payloadType": "value",
"x": 433,
"y": 815,
"wires": [
[
"71a1c661.24d368"
]
]
},
{
"id": "71a1c661.24d368",
"type": "ioBroker get",
"z": "f671a88c.d70aa8",
"name": "Strom_Verbrauch_Monate_",
"topic": "Hilfsvariablen.0.Strom_Verbrauch_Monate",
"attrname": "verbrauch",
"payloadType": "value",
"x": 684,
"y": 754,
"wires": [
[
"f3ebe826.7f7888"
]
]
},
{
"id": "f3ebe826.7f7888",
"type": "function",
"z": "f671a88c.d70aa8",
"name": "math",
"func": "var math = Number(msg.Menge) * Number(msg.verbrauch);\nmsg.payload = math;\nreturn msg;",
"outputs": 1,
"noerr": 0,
"x": 872,
"y": 818,
"wires": [
[
"a175ba43.9cd3f8"
]
]
},
{
"id": "a175ba43.9cd3f8",
"type": "function",
"z": "f671a88c.d70aa8",
"name": "runden auf 2 komma stellen",
"func": "msg.payload = Math.round(msg.payload);\nreturn msg;",
"outputs": 1,
"noerr": 0,
"x": 811,
"y": 878,
"wires": [
[
"78cae278.2e0e7c"
]
]
},
{
"id": "78cae278.2e0e7c",
"type": "ioBroker out",
"z": "f671a88c.d70aa8",
"name": "Strom_Verbrauch_Jahr_Server_",
"topic": "Hilfsvariablen.0.Strom_Verbrauch_Jahr_Server",
"ack": "false",
"autoCreate": "false",
"x": 928,
"y": 964,
"wires": []
},
{
"id": "784932ba.38390c",
"type": "cron",
"z": "f671a88c.d70aa8",
"name": "00 00 * * *",
"crontab": "00 00 * * *",
"x": 150,
"y": 880,
"wires": [
[
"a40c0acd.129008"
]
]
}
]