Google fragen
Was tasmota und befehle angeht findet man hier alles. Tasmota git
Moin Stefan
wenn du es geschafft hast den Zähler zu reseten, würde ich den einmalig resetten, um zu sehen was du in deinem WoWa total verbraucht hast.
danach würde ich den Reset über Node-Red machen für den Aktuellen Verbrauch auf dem Campinplatz.
So etwa
schmeißt du meinen MQTT in raus und machst deinen dran. (wegen der Schreibfehler )
[
{
"id": "3c3745c7180ff39a",
"type": "ui_button",
"z": "1c23a182f2495bab",
"name": "",
"group": "72c2c14866638221",
"order": 7,
"width": 0,
"height": 0,
"passthru": false,
"label": "Reset",
"tooltip": "",
"color": "",
"bgcolor": "",
"className": "",
"icon": "",
"payload": "true",
"payloadType": "bool",
"topic": "reset",
"topicType": "msg",
"x": 270,
"y": 1040,
"wires": [
[
"46ea92a2cd01bbe2"
]
]
},
{
"id": "3c64105e310f8ea5",
"type": "mqtt in",
"z": "1c23a182f2495bab",
"name": "",
"topic": "braeker/tele/BraekerMOTA/SENSOR",
"qos": "2",
"datatype": "auto-detect",
"broker": "0ddb07c65cbb68bc",
"nl": false,
"rap": true,
"rh": 0,
"inputs": 0,
"x": 250,
"y": 1180,
"wires": [
[
"4f33b413a29ad04c",
"960a746d23e15fb3"
]
]
},
{
"id": "4f33b413a29ad04c",
"type": "function",
"z": "1c23a182f2495bab",
"name": "Total",
"func": "var total = msg.payload.ENERGY.Total;\n\nflow.set (\"Energy_Total\", total);\n\nmsg.payload= total;\n\nreturn msg;",
"outputs": 1,
"timeout": 0,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 550,
"y": 1180,
"wires": [
[
"d39d3740f6ed8001"
]
]
},
{
"id": "46ea92a2cd01bbe2",
"type": "function",
"z": "1c23a182f2495bab",
"name": "Energy_Reset",
"func": "var check = msg.payload;\nvar total = flow.get(\"Energy_Total\");\nif (check === true){\nflow.set (\"Energy_Reset\",total);\n}\nreturn msg;",
"outputs": 1,
"timeout": 0,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 500,
"y": 1040,
"wires": [
[
"4821b829796f8606"
]
]
},
{
"id": "02a7a327a0cd4f58",
"type": "comment",
"z": "1c23a182f2495bab",
"name": "Zahl für resset eingeben zum Testen",
"info": "",
"x": 370,
"y": 940,
"wires": []
},
{
"id": "d39d3740f6ed8001",
"type": "debug",
"z": "1c23a182f2495bab",
"name": "debug 668",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": true,
"complete": "true",
"targetType": "full",
"statusVal": "payload",
"statusType": "auto",
"x": 830,
"y": 1180,
"wires": []
},
{
"id": "4821b829796f8606",
"type": "debug",
"z": "1c23a182f2495bab",
"name": "debug 669",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": true,
"complete": "true",
"targetType": "full",
"statusVal": "payload",
"statusType": "auto",
"x": 690,
"y": 1040,
"wires": []
},
{
"id": "94bdccdb84b725c0",
"type": "inject",
"z": "1c23a182f2495bab",
"name": "",
"props": [
{
"p": "payload"
},
{
"p": "topic",
"v": "reset",
"vt": "msg"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "true",
"payloadType": "bool",
"x": 270,
"y": 1080,
"wires": [
[
"46ea92a2cd01bbe2"
]
]
},
{
"id": "960a746d23e15fb3",
"type": "function",
"z": "1c23a182f2495bab",
"name": "Aktuell",
"func": "var total = msg.payload.ENERGY.Total;\nvar check =flow.get (\"Energy_Reset\");\nvar aktuell = (total) - (check);\n \n\n\nmsg.payload = aktuell;\n\nreturn msg;",
"outputs": 1,
"timeout": 0,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 560,
"y": 1140,
"wires": [
[
"37758a661a4d17aa"
]
]
},
{
"id": "37758a661a4d17aa",
"type": "debug",
"z": "1c23a182f2495bab",
"name": "debug 670",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": true,
"complete": "true",
"targetType": "full",
"statusVal": "payload",
"statusType": "auto",
"x": 830,
"y": 1120,
"wires": []
},
{
"id": "7318c74318e53918",
"type": "inject",
"z": "1c23a182f2495bab",
"name": "",
"props": [
{
"p": "payload"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "3.221",
"payloadType": "num",
"x": 290,
"y": 980,
"wires": [
[
"d02aec77ee70dc59"
]
]
},
{
"id": "d02aec77ee70dc59",
"type": "function",
"z": "1c23a182f2495bab",
"name": "Total",
"func": "\nflow.set (\"Energy_Reset\", msg.payload);\n\n\n\nreturn msg;",
"outputs": 1,
"timeout": 0,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 430,
"y": 980,
"wires": [
[]
]
},
{
"id": "72c2c14866638221",
"type": "ui_group",
"name": "Zähler",
"tab": "54274e4b50867a76",
"order": 1,
"disp": true,
"width": "6",
"collapse": false,
"className": ""
},
{
"id": "0ddb07c65cbb68bc",
"type": "mqtt-broker",
"name": "",
"broker": "http://localhost",
"port": "1883",
"clientid": "",
"autoConnect": true,
"usetls": false,
"protocolVersion": "4",
"keepalive": "60",
"cleansession": true,
"birthTopic": "",
"birthQos": "0",
"birthPayload": "",
"birthMsg": {},
"closeTopic": "",
"closeQos": "0",
"closePayload": "",
"closeMsg": {},
"willTopic": "",
"willQos": "0",
"willPayload": "",
"willMsg": {},
"sessionExpiry": ""
},
{
"id": "54274e4b50867a76",
"type": "ui_tab",
"name": "Tasmota",
"icon": "dashboard",
"order": 47,
"disabled": false,
"hidden": false
}
]
sollte funktionieren.