NEWS
Node Red Tasmota und Switsch
-
@josefthal Nein in codetags - die ''' müssen in einer extra Zeile stehen
code_text
-
-
-
@josefthal Ja geht schon - ich hab Dir aber doch hier einen Vorschlag zum Import eingestellt: https://forum.iobroker.net/post/1053445
-
@josefthal sagte in Node Red Tasmota und Switsch:
So zu Deinen Fehler die ich seheDie Eigenschaft ist richtig, aber Du musst auf Groß-und Kleinschreibung achten. Es kommt - auf der KONSOLE ein "ON" und kein "on".
Dann brauchst Du dafür keine 2 switch Nodes - sondern ein mit 2 Ausgängen.
Bei der Eingabe ist tasmota nicht case-sensitiv - das heißt wird automatisch verstanden.
Aber wie gesagt ich hab Dir einen Vorschlag unten geschickt.
-
@mickym Danke
hat ein fehler beim Übertragen gegeben groß und kleinschreibung
sensor muß Groß sein SENSOR
und dann ging es
und ich Spiele und Lesen ca 2 wochen rum
und du machst es in 30 S
-
@josefthal sagte in Node Red Tasmota und Switsch:
und du machst es in 30 S
Mit etwas Übung schaffst Du das auch.
-
@mickym Danke
-
benötige noch mal euer hilfe
es geht soweit ,die batterie über 91 % voll schaltet er eine wenn er unter 71 % ist schaltet er aus.
wenn ich den taster Starten ( Manuel ) geht es aber wenn die Batterie runter geht ( z.b. 50 % auf 49 % ) schaltet der Timer aus obwohl die zeit nicht abgelaufen isthab schon versucht eine undglied einzusetzt geht nicht
[ { "id": "e4aa7e9b9fb405d9", "type": "tab", "label": "Tasmota Test1", "disabled": false, "info": "", "env": [] }, { "id": "74f2d76bc3ce958f", "type": "junction", "z": "e4aa7e9b9fb405d9", "x": 1060, "y": 480, "wires": [ [] ] }, { "id": "e5c4d789e94d350e", "type": "debug", "z": "e4aa7e9b9fb405d9", "name": "debug 81", "active": false, "tosidebar": true, "console": false, "tostatus": false, "complete": "false", "statusVal": "", "statusType": "auto", "x": 1040, "y": 160, "wires": [] }, { "id": "7cf3622b17046eee", "type": "change", "z": "e4aa7e9b9fb405d9", "name": "Spannung", "rules": [ { "t": "move", "p": "payload.ENERGY.Voltage", "pt": "msg", "to": "payload", "tot": "msg" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 580, "y": 160, "wires": [ [ "e5c4d789e94d350e", "a10b8a367682404e" ] ] }, { "id": "a10b8a367682404e", "type": "ui_gauge", "z": "e4aa7e9b9fb405d9", "name": "", "group": "04d5298db5344c1e", "order": 1, "width": 0, "height": 0, "gtype": "gage", "title": "volt Test 1", "label": "units", "format": "{{value}}", "min": 0, "max": "240", "colors": [ "#ff0000", "#ffff00", "#008000" ], "seg1": "200", "seg2": "220", "x": 760, "y": 160, "wires": [] }, { "id": "77456c5a3405fff3", "type": "debug", "z": "e4aa7e9b9fb405d9", "name": "debug 82", "active": false, "tosidebar": true, "console": false, "tostatus": false, "complete": "false", "statusVal": "", "statusType": "auto", "x": 440, "y": 100, "wires": [] }, { "id": "89e9cf65394790da", "type": "change", "z": "e4aa7e9b9fb405d9", "name": "Strom Filter", "rules": [ { "t": "move", "p": "payload.ENERGY.Current[1]", "pt": "msg", "to": "payload", "tot": "msg" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 570, "y": 200, "wires": [ [ "e60c46e0c106e4dc" ] ] }, { "id": "318a5c613a88c769", "type": "debug", "z": "e4aa7e9b9fb405d9", "name": "debug 83", "active": false, "tosidebar": true, "console": false, "tostatus": false, "complete": "false", "statusVal": "", "statusType": "auto", "x": 1040, "y": 200, "wires": [] }, { "id": "401d1fdd51ecce14", "type": "victron-input-battery", "z": "e4aa7e9b9fb405d9", "service": "com.victronenergy.battery.socketcan_can1", "path": "/Soc", "serviceObj": { "service": "com.victronenergy.battery.socketcan_can1", "name": "Pylontech battery" }, "pathObj": { "path": "/Soc", "type": "float", "name": "State of charge (%)" }, "initial": "", "name": "", "onlyChanges": false, "x": 190, "y": 340, "wires": [ [ "6ddde74da4bb9545" ] ] }, { "id": "5369f8cb591ac34d", "type": "switch", "z": "e4aa7e9b9fb405d9", "name": "", "property": "payload", "propertyType": "msg", "rules": [ { "t": "gt", "v": "91", "vt": "num" }, { "t": "lt", "v": "70", "vt": "num" } ], "checkall": "true", "repair": false, "outputs": 2, "x": 210, "y": 500, "wires": [ [ "e5fea5b934a2efc7", "b9ed6599cf70de74" ], [ "5012c46291e78a77", "cbe9c595bb01b81e" ] ] }, { "id": "f237aa09ab50cbd7", "type": "debug", "z": "e4aa7e9b9fb405d9", "name": "debug 84", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "payload", "targetType": "msg", "statusVal": "", "statusType": "auto", "x": 720, "y": 1020, "wires": [] }, { "id": "5d01b124055bea37", "type": "debug", "z": "e4aa7e9b9fb405d9", "name": "State Of Charge", "active": false, "tosidebar": true, "console": false, "tostatus": false, "complete": "payload", "targetType": "msg", "statusVal": "", "statusType": "auto", "x": 1100, "y": 360, "wires": [] }, { "id": "6ddde74da4bb9545", "type": "change", "z": "e4aa7e9b9fb405d9", "name": "", "rules": [ { "t": "set", "p": "StateOfCharge", "pt": "global", "to": "payload", "tot": "msg" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 560, "y": 340, "wires": [ [ "5d01b124055bea37", "52e26a73c3b27f6e", "50eb11e95ce1c4f3" ] ] }, { "id": "bd97fddd9dcd4646", "type": "ui_slider", "z": "e4aa7e9b9fb405d9", "name": "", "label": "0 bis 100 test 1eingang", "tooltip": "", "group": "04d5298db5344c1e", "order": 3, "width": 0, "height": 0, "passthru": true, "outs": "all", "topic": "topic", "topicType": "msg", "min": 0, "max": "100", "step": 1, "x": 120, "y": 760, "wires": [ [ "1b2e513f58f2960b", "5369f8cb591ac34d" ] ] }, { "id": "1b2e513f58f2960b", "type": "ui_gauge", "z": "e4aa7e9b9fb405d9", "name": "", "group": "04d5298db5344c1e", "order": 4, "width": 0, "height": 0, "gtype": "gage", "title": "0 bis 100 test 1 Ausgang", "label": "Batterie", "format": "{{value}}", "min": 0, "max": "100", "colors": [ "#ff0000", "#e6e600", "#00ff00" ], "seg1": "", "seg2": "", "x": 490, "y": 760, "wires": [] }, { "id": "0d5525e74b9b0109", "type": "debug", "z": "e4aa7e9b9fb405d9", "name": "debug 86", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "false", "statusVal": "", "statusType": "auto", "x": 680, "y": 580, "wires": [] }, { "id": "73f440c9fc6e840c", "type": "debug", "z": "e4aa7e9b9fb405d9", "name": "debug 87", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "false", "statusVal": "", "statusType": "auto", "x": 1060, "y": 280, "wires": [] }, { "id": "6ebf1c2b99b260a0", "type": "debug", "z": "e4aa7e9b9fb405d9", "name": "debug 88", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "false", "statusVal": "", "statusType": "auto", "x": 920, "y": 880, "wires": [] }, { "id": "99db0d2dae9eefe5", "type": "change", "z": "e4aa7e9b9fb405d9", "name": "Strom power", "rules": [ { "t": "move", "p": "payload.Switch1", "pt": "msg", "to": "payload", "tot": "msg" }, { "t": "set", "p": "payload", "pt": "msg", "to": "on", "tot": "str" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 570, "y": 280, "wires": [ [ "ec8f88403a3d804a" ] ] }, { "id": "d6f7d9277bab1b46", "type": "ui_chart", "z": "e4aa7e9b9fb405d9", "name": "", "group": "a9d0f0d6dc0f0a7e", "order": 1, "width": 0, "height": 0, "label": "1Strom Test1", "chartType": "bar", "legend": "true", "xformat": "HH:mm:ss", "interpolate": "linear", "nodata": "", "dot": false, "ymin": "", "ymax": "", "removeOlder": 1, "removeOlderPoints": "", "removeOlderUnit": "3600", "cutout": 0, "useOneColor": false, "useUTC": false, "colors": [ "#1f77b4", "#aec7e8", "#ff7f0e", "#2ca02c", "#98df8a", "#d62728", "#ff9896", "#9467bd", "#c5b0d5" ], "outputs": 1, "useDifferentColor": false, "x": 770, "y": 240, "wires": [ [ "eba281a8c7d862c3" ] ] }, { "id": "eba281a8c7d862c3", "type": "debug", "z": "e4aa7e9b9fb405d9", "name": "debug 89", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "false", "statusVal": "", "statusType": "auto", "x": 1060, "y": 240, "wires": [] }, { "id": "f5252ff2d2f5e5c1", "type": "change", "z": "e4aa7e9b9fb405d9", "name": "Strom Filter", "rules": [ { "t": "move", "p": "payload.ENERGY.Current[0]", "pt": "msg", "to": "payload", "tot": "msg" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 570, "y": 240, "wires": [ [ "d6f7d9277bab1b46" ] ] }, { "id": "e60c46e0c106e4dc", "type": "ui_chart", "z": "e4aa7e9b9fb405d9", "name": "", "group": "04d5298db5344c1e", "order": 5, "width": 0, "height": 0, "label": "Strom Test1", "chartType": "bar", "legend": "false", "xformat": "HH:mm:ss", "interpolate": "linear", "nodata": "", "dot": false, "ymin": "", "ymax": "", "removeOlder": 1, "removeOlderPoints": "", "removeOlderUnit": "3600", "cutout": 0, "useOneColor": false, "useUTC": false, "colors": [ "#1f77b4", "#aec7e8", "#ff7f0e", "#2ca02c", "#98df8a", "#d62728", "#ff9896", "#9467bd", "#c5b0d5" ], "outputs": 1, "useDifferentColor": false, "x": 770, "y": 200, "wires": [ [ "318a5c613a88c769" ] ] }, { "id": "e5fea5b934a2efc7", "type": "change", "z": "e4aa7e9b9fb405d9", "name": "", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "ON", "tot": "str" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 630, "y": 480, "wires": [ [ "a3ff7d845272b908", "d00e1f649acb16f3" ] ] }, { "id": "7dd91967b9ae0e11", "type": "Tasmota Sensor", "z": "e4aa7e9b9fb405d9", "broker": "7a7b311bf649aa87", "device": "Tasmota_test1", "name": "", "outputs": 1, "uidisabler": false, "fullTopic": "", "cmndPrefix": "", "statPrefix": "", "telePrefix": "", "qos": 1, "retain": false, "rules": [], "outputTopic": "", "x": 240, "y": 140, "wires": [ [ "99db0d2dae9eefe5", "f5252ff2d2f5e5c1", "89e9cf65394790da", "7cf3622b17046eee", "77456c5a3405fff3" ] ] }, { "id": "ec8f88403a3d804a", "type": "ui_chart", "z": "e4aa7e9b9fb405d9", "name": "", "group": "04d5298db5344c1e", "order": 6, "width": 0, "height": 0, "label": "Pauer Test1", "chartType": "bar", "legend": "true", "xformat": "HH:mm:ss", "interpolate": "linear", "nodata": "", "dot": false, "ymin": "", "ymax": "", "removeOlder": 1, "removeOlderPoints": "", "removeOlderUnit": "3600", "cutout": 0, "useOneColor": false, "useUTC": false, "colors": [ "#1f77b4", "#aec7e8", "#ff7f0e", "#2ca02c", "#98df8a", "#d62728", "#ff9896", "#9467bd", "#c5b0d5" ], "outputs": 1, "useDifferentColor": false, "x": 770, "y": 280, "wires": [ [ "73f440c9fc6e840c" ] ] }, { "id": "d00e1f649acb16f3", "type": "mqtt out", "z": "e4aa7e9b9fb405d9", "name": "", "topic": "cmnd/Tasmota_test1/POWER1", "qos": "", "retain": "", "respTopic": "", "contentType": "", "userProps": "", "correl": "", "expiry": "", "broker": "b84a725bf6dd8e6b", "x": 1530, "y": 500, "wires": [] }, { "id": "d9062f21b1c4fdaf", "type": "switch", "z": "e4aa7e9b9fb405d9", "name": "", "property": "payload.Switch1", "propertyType": "msg", "rules": [ { "t": "eq", "v": "ON", "vt": "str" } ], "checkall": "true", "repair": false, "outputs": 1, "x": 470, "y": 1020, "wires": [ [ "b22e13f626cd98a3", "f237aa09ab50cbd7" ] ] }, { "id": "56a67d7f80182ecc", "type": "mqtt in", "z": "e4aa7e9b9fb405d9", "name": "", "topic": "tele/Tasmota_test1/SENSOR", "qos": "0", "datatype": "json", "broker": "b84a725bf6dd8e6b", "nl": false, "rap": true, "rh": 0, "inputs": 0, "x": 190, "y": 980, "wires": [ [ "d9062f21b1c4fdaf", "a79580173aa2a19f" ] ] }, { "id": "b22e13f626cd98a3", "type": "trigger", "z": "e4aa7e9b9fb405d9", "name": "", "op1": "ON", "op2": "OFF", "op1type": "str", "op2type": "str", "duration": "12", "extend": false, "overrideDelay": true, "units": "s", "reset": "", "bytopic": "all", "topic": "topic", "outputs": 1, "x": 630, "y": 880, "wires": [ [ "6ebf1c2b99b260a0", "d00e1f649acb16f3" ] ] }, { "id": "a3ff7d845272b908", "type": "debug", "z": "e4aa7e9b9fb405d9", "name": "debug 98", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "false", "statusVal": "", "statusType": "auto", "x": 620, "y": 420, "wires": [] }, { "id": "a79580173aa2a19f", "type": "debug", "z": "e4aa7e9b9fb405d9", "name": "debug 100", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "payload", "targetType": "msg", "statusVal": "", "statusType": "auto", "x": 430, "y": 900, "wires": [] }, { "id": "52e26a73c3b27f6e", "type": "ui_text", "z": "e4aa7e9b9fb405d9", "group": "71e172fc8641b4f7", "order": 6, "width": 6, "height": 1, "name": "", "label": "Batterie test 1", "format": "{{msg.payload}}", "layout": "row-spread", "x": 830, "y": 380, "wires": [] }, { "id": "50eb11e95ce1c4f3", "type": "ui_gauge", "z": "e4aa7e9b9fb405d9", "name": "", "group": "04d5298db5344c1e", "order": 2, "width": 0, "height": 0, "gtype": "gage", "title": "Batterie Test 1", "label": "units", "format": "{{value}}", "min": 0, "max": "100", "colors": [ "#ff0000", "#ffff00", "#008000" ], "seg1": "30", "seg2": "75", "x": 840, "y": 420, "wires": [] }, { "id": "5012c46291e78a77", "type": "change", "z": "e4aa7e9b9fb405d9", "name": "", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "OFF", "tot": "str" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 630, "y": 520, "wires": [ [ "0d5525e74b9b0109", "d00e1f649acb16f3" ] ] }, { "id": "b9ed6599cf70de74", "type": "debug", "z": "e4aa7e9b9fb405d9", "name": "debug 101", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "false", "statusVal": "", "statusType": "auto", "x": 390, "y": 440, "wires": [] }, { "id": "cbe9c595bb01b81e", "type": "debug", "z": "e4aa7e9b9fb405d9", "name": "debug 102", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "false", "statusVal": "", "statusType": "auto", "x": 370, "y": 600, "wires": [] }, { "id": "934a40174dc661ef", "type": "function", "z": "e4aa7e9b9fb405d9", "name": "function 1", "func": "\nreturn msg;", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 1340, "y": 240, "wires": [ [] ] }, { "id": "04d5298db5344c1e", "type": "ui_group", "name": "Group 4", "tab": "12a65f5c2118623e", "order": 3, "disp": true, "width": 6 }, { "id": "a9d0f0d6dc0f0a7e", "type": "ui_group", "name": "Default", "tab": "12a65f5c2118623e", "order": 4, "disp": true, "width": 6, "collapse": false }, { "id": "7a7b311bf649aa87", "type": "tasmota-mqtt-broker", "name": "", "broker": "localhost", "port": "1883", "clientid": "", "usetls": false, "keepalive": "60", "cleansession": true }, { "id": "b84a725bf6dd8e6b", "type": "mqtt-broker", "name": "CerboGX", "broker": "192.168.178.35", "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": {}, "userProps": "", "sessionExpiry": "" }, { "id": "71e172fc8641b4f7", "type": "ui_group", "name": "Stapler ", "tab": "12a65f5c2118623e", "order": 1, "disp": true, "width": "6", "collapse": false }, { "id": "12a65f5c2118623e", "type": "ui_tab", "name": "Home", "icon": "dashboard", "order": 2, "disabled": false, "hidden": false } ]
-
@josefthal Verstehe zwar nicht wie das gehen Soll, ausser der Tasmota Sensor gibt längere Zeit kein ON Signal.
Du hast doch nur EINE externe Quelle in Deinem Flow - der selbstständig schalten kann? (ROT markiert).
Bist Du Dir denn sicher, dass das Ganze was mit dem NodeRedFlow zu tun hat?
-
-
-
@josefthal Wie ich sagte - der Flow kann nur von dem unterne Kasten automatisch schalten, das siehst Du doch an der debug Node 55
-
Grundsätzlich ist es jedoch so, um Dir allgemein zu helfen. Du brauchste keine UND Node oder so einen Schmarn. Wenn Du willst das ein Flow an einer Stelle unterbrochen wird, machst Du eine SwitchNode rein und prüfst dort auf den Zustand einer Flowvariablen.
Diese Flowvariable kannst Du an anderer Stelle setzen - egal durch was. -
@mickym [
{
"id": "c38eca0b6d0feb3e",
"type": "tab",
"label": "Flow 2",
"disabled": false,
"info": "",
"env": []
},
{
"id": "1e1408fe355f5f7c",
"type": "mqtt in",
"z": "c38eca0b6d0feb3e",
"name": "",
"topic": "tele/Tasmota_test1/SENSOR",
"qos": "0",
"datatype": "json",
"broker": "b84a725bf6dd8e6b",
"nl": false,
"rap": true,
"rh": 0,
"inputs": 0,
"x": 240,
"y": 260,
"wires": [
[
"99a27f412cc4724b"
]
]
},
{
"id": "99a27f412cc4724b",
"type": "change",
"z": "c38eca0b6d0feb3e",
"name": "Strom power",
"rules": [
{
"t": "move",
"p": "payload.Switch1",
"pt": "msg",
"to": "payload",
"tot": "msg"
},
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "on",
"tot": "str"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 530,
"y": 260,
"wires": [
[
"e4734f30a2286602"
]
]
},
{
"id": "e4734f30a2286602",
"type": "debug",
"z": "c38eca0b6d0feb3e",
"name": "debug 113",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "false",
"statusVal": "",
"statusType": "auto",
"x": 760,
"y": 260,
"wires": []
},
{
"id": "b84a725bf6dd8e6b",
"type": "mqtt-broker",
"name": "CerboGX",
"broker": "192.168.178.35",
"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": {},
"userProps": "",
"sessionExpiry": ""
}
] -
-
da habe ich noch einen Fehler aber komme nicht drauf wie ich es hin bekommen
das signal mus erst einmal für 2 sekunden anlegen das es durchgeschaltet wird wenn es unter 2 Sekunden anlegt soll nicht pasieren
-
- Einen Flow hier einzustellen ohne ihn in Code-Tags zu packen, ist total sinnlos.
- Der Tele Ast übermittelt keine Zustandsänderungen, wenn sie auftreten sondern in zeitlich definierten Abständen und ist deshalb ungeeignet
- wenn ein Zustand für eine bestimmte Zeit anhalten soll, dann musst du ja auch analysieren wenn der Zustand nicht mehr vorliegt. Also benötigt man einen Switch.
- Realisieren tut man es mit einer Trigger Node, die zurückgesetzt wird, wenn der zu überprüfende Zustand nicht mehr vorliegt.
-
@mickym ```
[
{
"id": "e4aa7e9b9fb405d9",
"type": "tab",
"label": "Tasmota Test1",
"disabled": false,
"info": "",
"env": []
},
{
"id": "e5c4d789e94d350e",
"type": "debug",
"z": "e4aa7e9b9fb405d9",
"name": "debug 81",
"active": false,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "false",
"statusVal": "",
"statusType": "auto",
"x": 1040,
"y": 160,
"wires": []
},
{
"id": "7cf3622b17046eee",
"type": "change",
"z": "e4aa7e9b9fb405d9",
"name": "Spannung",
"rules": [
{
"t": "move",
"p": "payload.ENERGY.Voltage",
"pt": "msg",
"to": "payload",
"tot": "msg"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 580,
"y": 160,
"wires": [
[
"e5c4d789e94d350e",
"a10b8a367682404e"
]
]
},
{
"id": "a10b8a367682404e",
"type": "ui_gauge",
"z": "e4aa7e9b9fb405d9",
"name": "",
"group": "04d5298db5344c1e",
"order": 2,
"width": 0,
"height": 0,
"gtype": "gage",
"title": "volt Test 1",
"label": "units",
"format": "{{value}}",
"min": 0,
"max": "240",
"colors": [
"#ff0000",
"#ffff00",
"#008000"
],
"seg1": "200",
"seg2": "220",
"x": 760,
"y": 160,
"wires": []
},
{
"id": "77456c5a3405fff3",
"type": "debug",
"z": "e4aa7e9b9fb405d9",
"name": "debug 82",
"active": false,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "false",
"statusVal": "",
"statusType": "auto",
"x": 440,
"y": 100,
"wires": []
},
{
"id": "89e9cf65394790da",
"type": "change",
"z": "e4aa7e9b9fb405d9",
"name": "Strom Filter",
"rules": [
{
"t": "move",
"p": "payload.ENERGY.Current[1]",
"pt": "msg",
"to": "payload",
"tot": "msg"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 570,
"y": 200,
"wires": [
[
"e60c46e0c106e4dc"
]
]
},
{
"id": "318a5c613a88c769",
"type": "debug",
"z": "e4aa7e9b9fb405d9",
"name": "debug 83",
"active": false,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "false",
"statusVal": "",
"statusType": "auto",
"x": 1040,
"y": 200,
"wires": []
},
{
"id": "401d1fdd51ecce14",
"type": "victron-input-battery",
"z": "e4aa7e9b9fb405d9",
"service": "com.victronenergy.battery.socketcan_can1",
"path": "/Soc",
"serviceObj": {
"service": "com.victronenergy.battery.socketcan_can1",
"name": "Pylontech battery"
},
"pathObj": {
"path": "/Soc",
"type": "float",
"name": "State of charge (%)"
},
"initial": "",
"name": "",
"onlyChanges": false,
"x": 180,
"y": 520,
"wires": [
[
"6ddde74da4bb9545"
]
]
},
{
"id": "5369f8cb591ac34d",
"type": "switch",
"z": "e4aa7e9b9fb405d9",
"name": "",
"property": "payload",
"propertyType": "msg",
"rules": [
{
"t": "gt",
"v": "101",
"vt": "num"
},
{
"t": "lt",
"v": "70",
"vt": "num"
}
],
"checkall": "false",
"repair": false,
"outputs": 2,
"x": 390,
"y": 1000,
"wires": [
[
"e5fea5b934a2efc7",
"b9ed6599cf70de74"
],
[
"5012c46291e78a77",
"cbe9c595bb01b81e"
]
]
},
{
"id": "f237aa09ab50cbd7",
"type": "debug",
"z": "e4aa7e9b9fb405d9",
"name": "debug 84",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 660,
"y": 380,
"wires": []
},
{
"id": "5d01b124055bea37",
"type": "debug",
"z": "e4aa7e9b9fb405d9",
"name": "State Of Charge",
"active": false,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 800,
"y": 580,
"wires": []
},
{
"id": "6ddde74da4bb9545",
"type": "change",
"z": "e4aa7e9b9fb405d9",
"name": "",
"rules": [
{
"t": "set",
"p": "StateOfCharge",
"pt": "global",
"to": "payload",
"tot": "msg"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 520,
"y": 520,
"wires": [
[
"5d01b124055bea37",
"52e26a73c3b27f6e",
"50eb11e95ce1c4f3"
]
]
},
{
"id": "bd97fddd9dcd4646",
"type": "ui_slider",
"z": "e4aa7e9b9fb405d9",
"name": "",
"label": "0 bis 100 test 1eingang",
"tooltip": "",
"group": "04d5298db5344c1e",
"order": 4,
"width": 0,
"height": 0,
"passthru": true,
"outs": "all",
"topic": "topic",
"topicType": "msg",
"min": 0,
"max": "100",
"step": 1,
"x": 160,
"y": 600,
"wires": [
[
"1b2e513f58f2960b",
"236cb5a6278abac6",
"5ba74f68268192ec",
"e5c7f72323657170",
"dbc6348bafca49a8"
]
]
},
{
"id": "1b2e513f58f2960b",
"type": "ui_gauge",
"z": "e4aa7e9b9fb405d9",
"name": "",
"group": "04d5298db5344c1e",
"order": 5,
"width": 0,
"height": 0,
"gtype": "gage",
"title": "0 bis 100 test 1 Ausgang",
"label": "Batterie",
"format": "{{value}}",
"min": 0,
"max": "100",
"colors": [
"#ff0000",
"#e6e600",
"#00ff00"
],
"seg1": "",
"seg2": "",
"x": 590,
"y": 600,
"wires": []
},
{
"id": "0d5525e74b9b0109",
"type": "debug",
"z": "e4aa7e9b9fb405d9",
"name": "debug 86",
"active": false,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "false",
"statusVal": "",
"statusType": "auto",
"x": 880,
"y": 1120,
"wires": []
},
{
"id": "73f440c9fc6e840c",
"type": "debug",
"z": "e4aa7e9b9fb405d9",
"name": "debug 87",
"active": false,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "false",
"statusVal": "",
"statusType": "auto",
"x": 1060,
"y": 280,
"wires": []
},
{
"id": "6ebf1c2b99b260a0",
"type": "debug",
"z": "e4aa7e9b9fb405d9",
"name": "debug 88",
"active": false,
"tosidebar": true,
"console": false,
"tostatus": true,
"complete": "payload",
"targetType": "msg",
"statusVal": "payload",
"statusType": "auto",
"x": 940,
"y": 760,
"wires": []
},
{
"id": "99db0d2dae9eefe5",
"type": "change",
"z": "e4aa7e9b9fb405d9",
"name": "Strom power",
"rules": [
{
"t": "move",
"p": "payload.Switch1",
"pt": "msg",
"to": "payload",
"tot": "msg"
},
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "on",
"tot": "str"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 570,
"y": 280,
"wires": [
[
"ec8f88403a3d804a"
]
]
},
{
"id": "d6f7d9277bab1b46",
"type": "ui_chart",
"z": "e4aa7e9b9fb405d9",
"name": "",
"group": "a9d0f0d6dc0f0a7e",
"order": 11,
"width": 0,
"height": 0,
"label": "1Strom Test1",
"chartType": "bar",
"legend": "true",
"xformat": "HH:mm:ss",
"interpolate": "linear",
"nodata": "",
"dot": false,
"ymin": "",
"ymax": "",
"removeOlder": 1,
"removeOlderPoints": "",
"removeOlderUnit": "3600",
"cutout": 0,
"useOneColor": false,
"useUTC": false,
"colors": [
"#1f77b4",
"#aec7e8",
"#ff7f0e",
"#2ca02c",
"#98df8a",
"#d62728",
"#ff9896",
"#9467bd",
"#c5b0d5"
],
"outputs": 1,
"useDifferentColor": false,
"x": 770,
"y": 240,
"wires": [
[
"eba281a8c7d862c3"
]
]
},
{
"id": "eba281a8c7d862c3",
"type": "debug",
"z": "e4aa7e9b9fb405d9",
"name": "debug 89",
"active": false,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "false",
"statusVal": "",
"statusType": "auto",
"x": 1060,
"y": 240,
"wires": []
},
{
"id": "f5252ff2d2f5e5c1",
"type": "change",
"z": "e4aa7e9b9fb405d9",
"name": "Strom Filter",
"rules": [
{
"t": "move",
"p": "payload.ENERGY.Current[0]",
"pt": "msg",
"to": "payload",
"tot": "msg"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 570,
"y": 240,
"wires": [
[
"d6f7d9277bab1b46"
]
]
},
{
"id": "e60c46e0c106e4dc",
"type": "ui_chart",
"z": "e4aa7e9b9fb405d9",
"name": "",
"group": "04d5298db5344c1e",
"order": 6,
"width": 0,
"height": 0,
"label": "Strom Test1",
"chartType": "bar",
"legend": "false",
"xformat": "HH:mm:ss",
"interpolate": "linear",
"nodata": "",
"dot": false,
"ymin": "",
"ymax": "",
"removeOlder": 1,
"removeOlderPoints": "",
"removeOlderUnit": "3600",
"cutout": 0,
"useOneColor": false,
"useUTC": false,
"colors": [
"#1f77b4",
"#aec7e8",
"#ff7f0e",
"#2ca02c",
"#98df8a",
"#d62728",
"#ff9896",
"#9467bd",
"#c5b0d5"
],
"outputs": 1,
"useDifferentColor": false,
"x": 770,
"y": 200,
"wires": [
[
"318a5c613a88c769"
]
]
},
{
"id": "e5fea5b934a2efc7",
"type": "change",
"z": "e4aa7e9b9fb405d9",
"name": "",
"rules": [
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "ON",
"tot": "str"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 630,
"y": 1020,
"wires": [
[
"a3ff7d845272b908",
"d00e1f649acb16f3"
]
]
},
{
"id": "7dd91967b9ae0e11",
"type": "Tasmota Sensor",
"z": "e4aa7e9b9fb405d9",
"broker": "7a7b311bf649aa87",
"device": "Tasmota_test1",
"name": "",
"outputs": 1,
"uidisabler": false,
"fullTopic": "",
"cmndPrefix": "",
"statPrefix": "",
"telePrefix": "",
"qos": 1,
"retain": false,
"rules": [],
"outputTopic": "",
"x": 240,
"y": 140,
"wires": [
[
"99db0d2dae9eefe5",
"f5252ff2d2f5e5c1",
"89e9cf65394790da",
"7cf3622b17046eee",
"77456c5a3405fff3"
]
]
},
{
"id": "ec8f88403a3d804a",
"type": "ui_chart",
"z": "e4aa7e9b9fb405d9",
"name": "",
"group": "04d5298db5344c1e",
"order": 7,
"width": 0,
"height": 0,
"label": "Pauer Test1",
"chartType": "bar",
"legend": "true",
"xformat": "HH:mm:ss",
"interpolate": "linear",
"nodata": "",
"dot": false,
"ymin": "",
"ymax": "",
"removeOlder": 1,
"removeOlderPoints": "",
"removeOlderUnit": "3600",
"cutout": 0,
"useOneColor": false,
"useUTC": false,
"colors": [
"#1f77b4",
"#aec7e8",
"#ff7f0e",
"#2ca02c",
"#98df8a",
"#d62728",
"#ff9896",
"#9467bd",
"#c5b0d5"
],
"outputs": 1,
"useDifferentColor": false,
"x": 770,
"y": 280,
"wires": [
[
"73f440c9fc6e840c"
]
]
},
{
"id": "d00e1f649acb16f3",
"type": "mqtt out",
"z": "e4aa7e9b9fb405d9",
"name": "",
"topic": "cmnd/Tasmota_test1/POWER1",
"qos": "",
"retain": "",
"respTopic": "",
"contentType": "",
"userProps": "",
"correl": "",
"expiry": "",
"broker": "b84a725bf6dd8e6b",
"x": 1010,
"y": 1020,
"wires": []
},
{
"id": "56a67d7f80182ecc",
"type": "mqtt in",
"z": "e4aa7e9b9fb405d9",
"name": "",
"topic": "tele/Tasmota_test1/SENSOR",
"qos": "0",
"datatype": "json",
"broker": "b84a725bf6dd8e6b",
"nl": false,
"rap": true,
"rh": 0,
"inputs": 0,
"x": 140,
"y": 320,
"wires": [
[
"a79580173aa2a19f",
"0ae9a66a06af1dd3"
]
]
},
{
"id": "a3ff7d845272b908",
"type": "debug",
"z": "e4aa7e9b9fb405d9",
"name": "debug 98",
"active": false,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "false",
"statusVal": "",
"statusType": "auto",
"x": 980,
"y": 980,
"wires": []
},
{
"id": "a79580173aa2a19f",
"type": "debug",
"z": "e4aa7e9b9fb405d9",
"name": "debug 100",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 660,
"y": 320,
"wires": []
},
{
"id": "52e26a73c3b27f6e",
"type": "ui_text",
"z": "e4aa7e9b9fb405d9",
"group": "71e172fc8641b4f7",
"order": 6,
"width": 6,
"height": 1,
"name": "",
"label": "Batterie test 1",
"format": "{{msg.payload}}",
"layout": "row-spread",
"x": 1090,
"y": 560,
"wires": []
},
{
"id": "50eb11e95ce1c4f3",
"type": "ui_gauge",
"z": "e4aa7e9b9fb405d9",
"name": "",
"group": "04d5298db5344c1e",
"order": 3,
"width": 0,
"height": 0,
"gtype": "gage",
"title": "Batterie Test 1",
"label": "units",
"format": "{{value}}",
"min": 0,
"max": "100",
"colors": [
"#ff0000",
"#ffff00",
"#008000"
],
"seg1": "30",
"seg2": "75",
"x": 1100,
"y": 520,
"wires": []
},
{
"id": "5012c46291e78a77",
"type": "change",
"z": "e4aa7e9b9fb405d9",
"name": "",
"rules": [
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "OFF",
"tot": "str"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 630,
"y": 1060,
"wires": [
[
"0d5525e74b9b0109",
"d00e1f649acb16f3"
]
]
},
{
"id": "b9ed6599cf70de74",
"type": "debug",
"z": "e4aa7e9b9fb405d9",
"name": "debug 101",
"active": false,
"tosidebar": true,
"console": false,
"tostatus": true,
"complete": "payload",
"targetType": "msg",
"statusVal": "payload",
"statusType": "auto",
"x": 720,
"y": 940,
"wires": []
},
{
"id": "cbe9c595bb01b81e",
"type": "debug",
"z": "e4aa7e9b9fb405d9",
"name": "debug 102",
"active": false,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "false",
"statusVal": "",
"statusType": "auto",
"x": 640,
"y": 1120,
"wires": []
},
{
"id": "934a40174dc661ef",
"type": "function",
"z": "e4aa7e9b9fb405d9",
"name": "function 1",
"func": "\nreturn msg;",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 1340,
"y": 240,
"wires": [
[]
]
},
{
"id": "7b549e85395e6e3a",
"type": "function",
"z": "e4aa7e9b9fb405d9",
"name": "Zähler 1",
"func": "var f_zaehler1 = flow.get(f_zaehler1
) || 0;\nf_zaehler1 = 100;\nflow.set('f_zaehler1', f_zaehler1);\nmsg.payload = f_zaehler1;\nreturn msg;",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 860,
"y": 440,
"wires": [
[
"091cad702c61cd45"
]
]
},
{
"id": "091cad702c61cd45",
"type": "debug",
"z": "e4aa7e9b9fb405d9",
"name": "debug 104",
"active": false,
"tosidebar": true,
"console": false,
"tostatus": true,
"complete": "payload",
"targetType": "msg",
"statusVal": "payload",
"statusType": "auto",
"x": 1020,
"y": 400,
"wires": []
},
{
"id": "89f93330dc0e65fa",
"type": "debug",
"z": "e4aa7e9b9fb405d9",
"name": "debug 105",
"active": false,
"tosidebar": true,
"console": false,
"tostatus": true,
"complete": "payload",
"targetType": "msg",
"statusVal": "payload",
"statusType": "auto",
"x": 920,
"y": 700,
"wires": []
},
{
"id": "e14d12f8a327f7d2",
"type": "debug",
"z": "e4aa7e9b9fb405d9",
"name": "debug 106",
"active": false,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "false",
"statusVal": "",
"statusType": "auto",
"x": 120,
"y": 920,
"wires": []
},
{
"id": "7f4199879ec3aeda",
"type": "debug",
"z": "e4aa7e9b9fb405d9",
"name": "debug 107",
"active": false,
"tosidebar": true,
"console": false,
"tostatus": true,
"complete": "payload",
"targetType": "msg",
"statusVal": "payload",
"statusType": "auto",
"x": 1020,
"y": 480,
"wires": []
},
{
"id": "5ba74f68268192ec",
"type": "switch",
"z": "e4aa7e9b9fb405d9",
"name": "",
"property": "payload",
"propertyType": "msg",
"rules": [
{
"t": "gt",
"v": "1",
"vt": "num"
},
{
"t": "lt",
"v": "0",
"vt": "num"
}
],
"checkall": "false",
"repair": false,
"outputs": 2,
"x": 150,
"y": 720,
"wires": [
[],
[]
]
},
{
"id": "dbc6348bafca49a8",
"type": "function",
"z": "e4aa7e9b9fb405d9",
"name": "Zähler 2",
"func": "var f_zaehler2 = flow.get(f_zaehler2
) || 0;\nflow.set('f_zaehler2',msg.payload);\nreturn msg;",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 660,
"y": 700,
"wires": [
[
"89f93330dc0e65fa"
]
]
},
{
"id": "0ae9a66a06af1dd3",
"type": "change",
"z": "e4aa7e9b9fb405d9",
"name": "Strom power",
"rules": [
{
"t": "move",
"p": "payload.Switch1",
"pt": "msg",
"to": "payload",
"tot": "msg"
},
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "on",
"tot": "str"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 350,
"y": 380,
"wires": [
[
"f237aa09ab50cbd7",
"799b36b1217126ae"
]
]
},
{
"id": "799b36b1217126ae",
"type": "trigger",
"z": "e4aa7e9b9fb405d9",
"name": "",
"op1": "ON",
"op2": "ON",
"op1type": "str",
"op2type": "str",
"duration": "18",
"extend": false,
"overrideDelay": false,
"units": "s",
"reset": "",
"bytopic": "all",
"topic": "topic",
"outputs": 2,
"x": 670,
"y": 460,
"wires": [
[
"7b549e85395e6e3a"
],
[
"65753d1d393ce5f9"
]
]
},
{
"id": "65753d1d393ce5f9",
"type": "function",
"z": "e4aa7e9b9fb405d9",
"name": "Zähler 1",
"func": "var f_zaehler1 = flow.get(f_zaehler1
) || 0;\nf_zaehler1 = 0;\nflow.set('f_zaehler1', f_zaehler1);\nmsg.payload = f_zaehler1;\nreturn msg;",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 860,
"y": 480,
"wires": [
[
"7f4199879ec3aeda"
]
]
},
{
"id": "3ce3731fa2de008c",
"type": "function",
"z": "e4aa7e9b9fb405d9",
"name": "Zähler 4",
"func": "var f_zaehler1 = flow.get(f_zaehler1
) || 0;\nvar f_zaehler2 = flow.get(f_zaehler2
) || 0;\nvar f_zaehler4 = flow.get(f_zaehler4
) || 0;\nf_zaehler4 = f_zaehler1 + f_zaehler2;\nflow.set('f_zaehler4', f_zaehler4);\nmsg.payload = f_zaehler4;\nreturn msg;",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 720,
"y": 760,
"wires": [
[
"6ebf1c2b99b260a0"
]
]
},
{
"id": "236cb5a6278abac6",
"type": "switch",
"z": "e4aa7e9b9fb405d9",
"name": "",
"property": "payload",
"propertyType": "msg",
"rules": [
{
"t": "gt",
"v": "1",
"vt": "num"
}
],
"checkall": "false",
"repair": false,
"outputs": 1,
"x": 150,
"y": 800,
"wires": [
[
"e14d12f8a327f7d2",
"1d22878d092191cd"
]
]
},
{
"id": "f18bedcfdbd9660f",
"type": "debug",
"z": "e4aa7e9b9fb405d9",
"name": "debug 109",
"active": false,
"tosidebar": true,
"console": false,
"tostatus": true,
"complete": "payload",
"targetType": "msg",
"statusVal": "payload",
"statusType": "auto",
"x": 960,
"y": 880,
"wires": []
},
{
"id": "e5c7f72323657170",
"type": "switch",
"z": "e4aa7e9b9fb405d9",
"name": "",
"property": "payload",
"propertyType": "msg",
"rules": [
{
"t": "gt",
"v": "1",
"vt": "num"
}
],
"checkall": "false",
"repair": false,
"outputs": 1,
"x": 150,
"y": 760,
"wires": [
[
"5317e2e4064ae269"
]
]
},
{
"id": "241a3883ea624c8d",
"type": "debug",
"z": "e4aa7e9b9fb405d9",
"name": "debug 110",
"active": false,
"tosidebar": true,
"console": false,
"tostatus": true,
"complete": "payload",
"targetType": "msg",
"statusVal": "payload",
"statusType": "auto",
"x": 960,
"y": 820,
"wires": []
},
{
"id": "aaf5f791f630a6a3",
"type": "function",
"z": "e4aa7e9b9fb405d9",
"name": "Zähler 3",
"func": "var f_zaehler4 = flow.get(f_zaehler4
) || 0;\nvar f_zaehler3 = flow.get(f_zaehler3
) || 0;\nf_zaehler3 = f_zaehler4;\nflow.set('f_zaehler3', f_zaehler3);\nmsg.payload = f_zaehler3;\nreturn msg;",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 720,
"y": 820,
"wires": [
[
"241a3883ea624c8d",
"5369f8cb591ac34d"
]
]
},
{
"id": "47b0ef4a8fb9242e",
"type": "debug",
"z": "e4aa7e9b9fb405d9",
"name": "debug 111",
"active": false,
"tosidebar": true,
"console": false,
"tostatus": true,
"complete": "payload",
"targetType": "msg",
"statusVal": "payload",
"statusType": "auto",
"x": 180,
"y": 1060,
"wires": []
},
{
"id": "f30c68af18f7aef1",
"type": "ui_button",
"z": "e4aa7e9b9fb405d9",
"name": "",
"group": "04d5298db5344c1e",
"order": 1,
"width": 0,
"height": 0,
"passthru": false,
"label": "button",
"tooltip": "",
"color": "",
"bgcolor": "",
"icon": "",
"payload": "",
"payloadType": "str",
"topic": "topic",
"topicType": "msg",
"x": 150,
"y": 460,
"wires": [
[
"799b36b1217126ae"
]
]
},
{
"id": "474cddab788eb28b",
"type": "function",
"z": "e4aa7e9b9fb405d9",
"name": "Zähler 2",
"func": "var f_zaehler2 = flow.get(f_zaehler2
) || 0;\n\nif (msg.topic === "modbus/1/holdingRegisters/30/2600_L1_Power") context.set("L1",msg.payload);\nif (msg.topic === "modbus/1/holdingRegisters/30/2601_L2_Power") context.set("L2",msg.payload);\nif (msg.topic === "modbus/1/holdingRegisters/30/2602_L3_Power") context.set("L3",msg.payload);\n\nvar L1 = context.get("L1") || 0;\nvar L2 = context.get("L2") || 0;\nvar L3 = context.get("L3") || 0;\n\nmsg.payload = L1 + L2 + L3;\n\n\n\n\n\nflow.set('f_zaehler2',msg.payload);\nreturn msg;",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 220,
"y": 980,
"wires": [
[]
]
},
{
"id": "1d22878d092191cd",
"type": "trigger",
"z": "e4aa7e9b9fb405d9",
"name": "",
"op1": "ON",
"op2": "Taster OFF",
"op1type": "str",
"op2type": "str",
"duration": "-2",
"extend": false,
"overrideDelay": true,
"units": "s",
"reset": "",
"bytopic": "all",
"topic": "topic",
"outputs": 1,
"x": 500,
"y": 820,
"wires": [
[
"aaf5f791f630a6a3"
]
]
},
{
"id": "5317e2e4064ae269",
"type": "trigger",
"z": "e4aa7e9b9fb405d9",
"name": "",
"op1": "ON",
"op2": "Taster OFF",
"op1type": "str",
"op2type": "str",
"duration": "-2",
"extend": false,
"overrideDelay": true,
"units": "s",
"reset": "",
"bytopic": "all",
"topic": "topic",
"outputs": 1,
"x": 480,
"y": 760,
"wires": [
[
"3ce3731fa2de008c"
]
]
},
{
"id": "04d5298db5344c1e",
"type": "ui_group",
"name": "Test 1",
"tab": "12a65f5c2118623e",
"order": 3,
"disp": true,
"width": "6",
"collapse": false
},
{
"id": "a9d0f0d6dc0f0a7e",
"type": "ui_group",
"name": "Default",
"tab": "12a65f5c2118623e",
"order": 4,
"disp": true,
"width": 6,
"collapse": false
},
{
"id": "7a7b311bf649aa87",
"type": "tasmota-mqtt-broker",
"name": "",
"broker": "localhost",
"port": "1883",
"clientid": "",
"usetls": false,
"keepalive": "60",
"cleansession": true
},
{
"id": "b84a725bf6dd8e6b",
"type": "mqtt-broker",
"name": "CerboGX",
"broker": "192.168.178.35",
"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": {},
"userProps": "",
"sessionExpiry": ""
},
{
"id": "71e172fc8641b4f7",
"type": "ui_group",
"name": "Stapler ",
"tab": "12a65f5c2118623e",
"order": 1,
"disp": true,
"width": "6",
"collapse": false
},
{
"id": "12a65f5c2118623e",
"type": "ui_tab",
"name": "Home",
"icon": "dashboard",
"order": 2,
"disabled": false,
"hidden": false
}
] -
[ { "id": "e4aa7e9b9fb405d9", "type": "tab", "label": "Tasmota Test1", "disabled": false, "info": "", "env": [] }, { "id": "e5c4d789e94d350e", "type": "debug", "z": "e4aa7e9b9fb405d9", "name": "debug 81", "active": false, "tosidebar": true, "console": false, "tostatus": false, "complete": "false", "statusVal": "", "statusType": "auto", "x": 1040, "y": 160, "wires": [] }, { "id": "7cf3622b17046eee", "type": "change", "z": "e4aa7e9b9fb405d9", "name": "Spannung", "rules": [ { "t": "move", "p": "payload.ENERGY.Voltage", "pt": "msg", "to": "payload", "tot": "msg" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 580, "y": 160, "wires": [ [ "e5c4d789e94d350e", "a10b8a367682404e" ] ] }, { "id": "a10b8a367682404e", "type": "ui_gauge", "z": "e4aa7e9b9fb405d9", "name": "", "group": "04d5298db5344c1e", "order": 2, "width": 0, "height": 0, "gtype": "gage", "title": "volt Test 1", "label": "units", "format": "{{value}}", "min": 0, "max": "240", "colors": [ "#ff0000", "#ffff00", "#008000" ], "seg1": "200", "seg2": "220", "x": 760, "y": 160, "wires": [] }, { "id": "77456c5a3405fff3", "type": "debug", "z": "e4aa7e9b9fb405d9", "name": "debug 82", "active": false, "tosidebar": true, "console": false, "tostatus": false, "complete": "false", "statusVal": "", "statusType": "auto", "x": 440, "y": 100, "wires": [] }, { "id": "89e9cf65394790da", "type": "change", "z": "e4aa7e9b9fb405d9", "name": "Strom Filter", "rules": [ { "t": "move", "p": "payload.ENERGY.Current[1]", "pt": "msg", "to": "payload", "tot": "msg" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 570, "y": 200, "wires": [ [ "e60c46e0c106e4dc" ] ] }, { "id": "318a5c613a88c769", "type": "debug", "z": "e4aa7e9b9fb405d9", "name": "debug 83", "active": false, "tosidebar": true, "console": false, "tostatus": false, "complete": "false", "statusVal": "", "statusType": "auto", "x": 1040, "y": 200, "wires": [] }, { "id": "401d1fdd51ecce14", "type": "victron-input-battery", "z": "e4aa7e9b9fb405d9", "service": "com.victronenergy.battery.socketcan_can1", "path": "/Soc", "serviceObj": { "service": "com.victronenergy.battery.socketcan_can1", "name": "Pylontech battery" }, "pathObj": { "path": "/Soc", "type": "float", "name": "State of charge (%)" }, "initial": "", "name": "", "onlyChanges": false, "x": 180, "y": 520, "wires": [ [ "6ddde74da4bb9545" ] ] }, { "id": "5369f8cb591ac34d", "type": "switch", "z": "e4aa7e9b9fb405d9", "name": "", "property": "payload", "propertyType": "msg", "rules": [ { "t": "gt", "v": "101", "vt": "num" }, { "t": "lt", "v": "70", "vt": "num" } ], "checkall": "false", "repair": false, "outputs": 2, "x": 390, "y": 1000, "wires": [ [ "e5fea5b934a2efc7", "b9ed6599cf70de74" ], [ "5012c46291e78a77", "cbe9c595bb01b81e" ] ] }, { "id": "f237aa09ab50cbd7", "type": "debug", "z": "e4aa7e9b9fb405d9", "name": "debug 84", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "payload", "targetType": "msg", "statusVal": "", "statusType": "auto", "x": 660, "y": 380, "wires": [] }, { "id": "5d01b124055bea37", "type": "debug", "z": "e4aa7e9b9fb405d9", "name": "State Of Charge", "active": false, "tosidebar": true, "console": false, "tostatus": false, "complete": "payload", "targetType": "msg", "statusVal": "", "statusType": "auto", "x": 800, "y": 580, "wires": [] }, { "id": "6ddde74da4bb9545", "type": "change", "z": "e4aa7e9b9fb405d9", "name": "", "rules": [ { "t": "set", "p": "StateOfCharge", "pt": "global", "to": "payload", "tot": "msg" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 520, "y": 520, "wires": [ [ "5d01b124055bea37", "52e26a73c3b27f6e", "50eb11e95ce1c4f3" ] ] }, { "id": "bd97fddd9dcd4646", "type": "ui_slider", "z": "e4aa7e9b9fb405d9", "name": "", "label": "0 bis 100 test 1eingang", "tooltip": "", "group": "04d5298db5344c1e", "order": 4, "width": 0, "height": 0, "passthru": true, "outs": "all", "topic": "topic", "topicType": "msg", "min": 0, "max": "100", "step": 1, "x": 160, "y": 600, "wires": [ [ "1b2e513f58f2960b", "236cb5a6278abac6", "5ba74f68268192ec", "e5c7f72323657170", "dbc6348bafca49a8" ] ] }, { "id": "1b2e513f58f2960b", "type": "ui_gauge", "z": "e4aa7e9b9fb405d9", "name": "", "group": "04d5298db5344c1e", "order": 5, "width": 0, "height": 0, "gtype": "gage", "title": "0 bis 100 test 1 Ausgang", "label": "Batterie", "format": "{{value}}", "min": 0, "max": "100", "colors": [ "#ff0000", "#e6e600", "#00ff00" ], "seg1": "", "seg2": "", "x": 590, "y": 600, "wires": [] }, { "id": "0d5525e74b9b0109", "type": "debug", "z": "e4aa7e9b9fb405d9", "name": "debug 86", "active": false, "tosidebar": true, "console": false, "tostatus": false, "complete": "false", "statusVal": "", "statusType": "auto", "x": 880, "y": 1120, "wires": [] }, { "id": "73f440c9fc6e840c", "type": "debug", "z": "e4aa7e9b9fb405d9", "name": "debug 87", "active": false, "tosidebar": true, "console": false, "tostatus": false, "complete": "false", "statusVal": "", "statusType": "auto", "x": 1060, "y": 280, "wires": [] }, { "id": "6ebf1c2b99b260a0", "type": "debug", "z": "e4aa7e9b9fb405d9", "name": "debug 88", "active": false, "tosidebar": true, "console": false, "tostatus": true, "complete": "payload", "targetType": "msg", "statusVal": "payload", "statusType": "auto", "x": 940, "y": 760, "wires": [] }, { "id": "99db0d2dae9eefe5", "type": "change", "z": "e4aa7e9b9fb405d9", "name": "Strom power", "rules": [ { "t": "move", "p": "payload.Switch1", "pt": "msg", "to": "payload", "tot": "msg" }, { "t": "set", "p": "payload", "pt": "msg", "to": "on", "tot": "str" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 570, "y": 280, "wires": [ [ "ec8f88403a3d804a" ] ] }, { "id": "d6f7d9277bab1b46", "type": "ui_chart", "z": "e4aa7e9b9fb405d9", "name": "", "group": "a9d0f0d6dc0f0a7e", "order": 11, "width": 0, "height": 0, "label": "1Strom Test1", "chartType": "bar", "legend": "true", "xformat": "HH:mm:ss", "interpolate": "linear", "nodata": "", "dot": false, "ymin": "", "ymax": "", "removeOlder": 1, "removeOlderPoints": "", "removeOlderUnit": "3600", "cutout": 0, "useOneColor": false, "useUTC": false, "colors": [ "#1f77b4", "#aec7e8", "#ff7f0e", "#2ca02c", "#98df8a", "#d62728", "#ff9896", "#9467bd", "#c5b0d5" ], "outputs": 1, "useDifferentColor": false, "x": 770, "y": 240, "wires": [ [ "eba281a8c7d862c3" ] ] }, { "id": "eba281a8c7d862c3", "type": "debug", "z": "e4aa7e9b9fb405d9", "name": "debug 89", "active": false, "tosidebar": true, "console": false, "tostatus": false, "complete": "false", "statusVal": "", "statusType": "auto", "x": 1060, "y": 240, "wires": [] }, { "id": "f5252ff2d2f5e5c1", "type": "change", "z": "e4aa7e9b9fb405d9", "name": "Strom Filter", "rules": [ { "t": "move", "p": "payload.ENERGY.Current[0]", "pt": "msg", "to": "payload", "tot": "msg" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 570, "y": 240, "wires": [ [ "d6f7d9277bab1b46" ] ] }, { "id": "e60c46e0c106e4dc", "type": "ui_chart", "z": "e4aa7e9b9fb405d9", "name": "", "group": "04d5298db5344c1e", "order": 6, "width": 0, "height": 0, "label": "Strom Test1", "chartType": "bar", "legend": "false", "xformat": "HH:mm:ss", "interpolate": "linear", "nodata": "", "dot": false, "ymin": "", "ymax": "", "removeOlder": 1, "removeOlderPoints": "", "removeOlderUnit": "3600", "cutout": 0, "useOneColor": false, "useUTC": false, "colors": [ "#1f77b4", "#aec7e8", "#ff7f0e", "#2ca02c", "#98df8a", "#d62728", "#ff9896", "#9467bd", "#c5b0d5" ], "outputs": 1, "useDifferentColor": false, "x": 770, "y": 200, "wires": [ [ "318a5c613a88c769" ] ] }, { "id": "e5fea5b934a2efc7", "type": "change", "z": "e4aa7e9b9fb405d9", "name": "", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "ON", "tot": "str" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 630, "y": 1020, "wires": [ [ "a3ff7d845272b908", "d00e1f649acb16f3" ] ] }, { "id": "7dd91967b9ae0e11", "type": "Tasmota Sensor", "z": "e4aa7e9b9fb405d9", "broker": "7a7b311bf649aa87", "device": "Tasmota_test1", "name": "", "outputs": 1, "uidisabler": false, "fullTopic": "", "cmndPrefix": "", "statPrefix": "", "telePrefix": "", "qos": 1, "retain": false, "rules": [], "outputTopic": "", "x": 240, "y": 140, "wires": [ [ "99db0d2dae9eefe5", "f5252ff2d2f5e5c1", "89e9cf65394790da", "7cf3622b17046eee", "77456c5a3405fff3" ] ] }, { "id": "ec8f88403a3d804a", "type": "ui_chart", "z": "e4aa7e9b9fb405d9", "name": "", "group": "04d5298db5344c1e", "order": 7, "width": 0, "height": 0, "label": "Pauer Test1", "chartType": "bar", "legend": "true", "xformat": "HH:mm:ss", "interpolate": "linear", "nodata": "", "dot": false, "ymin": "", "ymax": "", "removeOlder": 1, "removeOlderPoints": "", "removeOlderUnit": "3600", "cutout": 0, "useOneColor": false, "useUTC": false, "colors": [ "#1f77b4", "#aec7e8", "#ff7f0e", "#2ca02c", "#98df8a", "#d62728", "#ff9896", "#9467bd", "#c5b0d5" ], "outputs": 1, "useDifferentColor": false, "x": 770, "y": 280, "wires": [ [ "73f440c9fc6e840c" ] ] }, { "id": "d00e1f649acb16f3", "type": "mqtt out", "z": "e4aa7e9b9fb405d9", "name": "", "topic": "cmnd/Tasmota_test1/POWER1", "qos": "", "retain": "", "respTopic": "", "contentType": "", "userProps": "", "correl": "", "expiry": "", "broker": "b84a725bf6dd8e6b", "x": 1010, "y": 1020, "wires": [] }, { "id": "56a67d7f80182ecc", "type": "mqtt in", "z": "e4aa7e9b9fb405d9", "name": "", "topic": "tele/Tasmota_test1/SENSOR", "qos": "0", "datatype": "json", "broker": "b84a725bf6dd8e6b", "nl": false, "rap": true, "rh": 0, "inputs": 0, "x": 140, "y": 320, "wires": [ [ "a79580173aa2a19f", "0ae9a66a06af1dd3" ] ] }, { "id": "a3ff7d845272b908", "type": "debug", "z": "e4aa7e9b9fb405d9", "name": "debug 98", "active": false, "tosidebar": true, "console": false, "tostatus": false, "complete": "false", "statusVal": "", "statusType": "auto", "x": 980, "y": 980, "wires": [] }, { "id": "a79580173aa2a19f", "type": "debug", "z": "e4aa7e9b9fb405d9", "name": "debug 100", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "payload", "targetType": "msg", "statusVal": "", "statusType": "auto", "x": 660, "y": 320, "wires": [] }, { "id": "52e26a73c3b27f6e", "type": "ui_text", "z": "e4aa7e9b9fb405d9", "group": "71e172fc8641b4f7", "order": 6, "width": 6, "height": 1, "name": "", "label": "Batterie test 1", "format": "{{msg.payload}}", "layout": "row-spread", "x": 1090, "y": 560, "wires": [] }, { "id": "50eb11e95ce1c4f3", "type": "ui_gauge", "z": "e4aa7e9b9fb405d9", "name": "", "group": "04d5298db5344c1e", "order": 3, "width": 0, "height": 0, "gtype": "gage", "title": "Batterie Test 1", "label": "units", "format": "{{value}}", "min": 0, "max": "100", "colors": [ "#ff0000", "#ffff00", "#008000" ], "seg1": "30", "seg2": "75", "x": 1100, "y": 520, "wires": [] }, { "id": "5012c46291e78a77", "type": "change", "z": "e4aa7e9b9fb405d9", "name": "", "rules": [ { "t": "set", "p": "payload", "pt": "msg", "to": "OFF", "tot": "str" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 630, "y": 1060, "wires": [ [ "0d5525e74b9b0109", "d00e1f649acb16f3" ] ] }, { "id": "b9ed6599cf70de74", "type": "debug", "z": "e4aa7e9b9fb405d9", "name": "debug 101", "active": false, "tosidebar": true, "console": false, "tostatus": true, "complete": "payload", "targetType": "msg", "statusVal": "payload", "statusType": "auto", "x": 720, "y": 940, "wires": [] }, { "id": "cbe9c595bb01b81e", "type": "debug", "z": "e4aa7e9b9fb405d9", "name": "debug 102", "active": false, "tosidebar": true, "console": false, "tostatus": false, "complete": "false", "statusVal": "", "statusType": "auto", "x": 640, "y": 1120, "wires": [] }, { "id": "934a40174dc661ef", "type": "function", "z": "e4aa7e9b9fb405d9", "name": "function 1", "func": "\nreturn msg;", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 1340, "y": 240, "wires": [ [] ] }, { "id": "7b549e85395e6e3a", "type": "function", "z": "e4aa7e9b9fb405d9", "name": "Zähler 1", "func": "var f_zaehler1 = flow.get(`f_zaehler1`) || 0;\nf_zaehler1 = 100;\nflow.set('f_zaehler1', f_zaehler1);\nmsg.payload = f_zaehler1;\nreturn msg;", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 860, "y": 440, "wires": [ [ "091cad702c61cd45" ] ] }, { "id": "091cad702c61cd45", "type": "debug", "z": "e4aa7e9b9fb405d9", "name": "debug 104", "active": false, "tosidebar": true, "console": false, "tostatus": true, "complete": "payload", "targetType": "msg", "statusVal": "payload", "statusType": "auto", "x": 1020, "y": 400, "wires": [] }, { "id": "89f93330dc0e65fa", "type": "debug", "z": "e4aa7e9b9fb405d9", "name": "debug 105", "active": false, "tosidebar": true, "console": false, "tostatus": true, "complete": "payload", "targetType": "msg", "statusVal": "payload", "statusType": "auto", "x": 920, "y": 700, "wires": [] }, { "id": "e14d12f8a327f7d2", "type": "debug", "z": "e4aa7e9b9fb405d9", "name": "debug 106", "active": false, "tosidebar": true, "console": false, "tostatus": false, "complete": "false", "statusVal": "", "statusType": "auto", "x": 120, "y": 920, "wires": [] }, { "id": "7f4199879ec3aeda", "type": "debug", "z": "e4aa7e9b9fb405d9", "name": "debug 107", "active": false, "tosidebar": true, "console": false, "tostatus": true, "complete": "payload", "targetType": "msg", "statusVal": "payload", "statusType": "auto", "x": 1020, "y": 480, "wires": [] }, { "id": "5ba74f68268192ec", "type": "switch", "z": "e4aa7e9b9fb405d9", "name": "", "property": "payload", "propertyType": "msg", "rules": [ { "t": "gt", "v": "1", "vt": "num" }, { "t": "lt", "v": "0", "vt": "num" } ], "checkall": "false", "repair": false, "outputs": 2, "x": 150, "y": 720, "wires": [ [], [] ] }, { "id": "dbc6348bafca49a8", "type": "function", "z": "e4aa7e9b9fb405d9", "name": "Zähler 2", "func": "var f_zaehler2 = flow.get(`f_zaehler2`) || 0;\nflow.set('f_zaehler2',msg.payload);\nreturn msg;", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 660, "y": 700, "wires": [ [ "89f93330dc0e65fa" ] ] }, { "id": "0ae9a66a06af1dd3", "type": "change", "z": "e4aa7e9b9fb405d9", "name": "Strom power", "rules": [ { "t": "move", "p": "payload.Switch1", "pt": "msg", "to": "payload", "tot": "msg" }, { "t": "set", "p": "payload", "pt": "msg", "to": "on", "tot": "str" } ], "action": "", "property": "", "from": "", "to": "", "reg": false, "x": 350, "y": 380, "wires": [ [ "f237aa09ab50cbd7", "799b36b1217126ae" ] ] }, { "id": "799b36b1217126ae", "type": "trigger", "z": "e4aa7e9b9fb405d9", "name": "", "op1": "ON", "op2": "ON", "op1type": "str", "op2type": "str", "duration": "18", "extend": false, "overrideDelay": false, "units": "s", "reset": "", "bytopic": "all", "topic": "topic", "outputs": 2, "x": 670, "y": 460, "wires": [ [ "7b549e85395e6e3a" ], [ "65753d1d393ce5f9" ] ] }, { "id": "65753d1d393ce5f9", "type": "function", "z": "e4aa7e9b9fb405d9", "name": "Zähler 1", "func": "var f_zaehler1 = flow.get(`f_zaehler1`) || 0;\nf_zaehler1 = 0;\nflow.set('f_zaehler1', f_zaehler1);\nmsg.payload = f_zaehler1;\nreturn msg;", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 860, "y": 480, "wires": [ [ "7f4199879ec3aeda" ] ] }, { "id": "3ce3731fa2de008c", "type": "function", "z": "e4aa7e9b9fb405d9", "name": "Zähler 4", "func": "var f_zaehler1 = flow.get(`f_zaehler1`) || 0;\nvar f_zaehler2 = flow.get(`f_zaehler2`) || 0;\nvar f_zaehler4 = flow.get(`f_zaehler4`) || 0;\nf_zaehler4 = f_zaehler1 + f_zaehler2;\nflow.set('f_zaehler4', f_zaehler4);\nmsg.payload = f_zaehler4;\nreturn msg;", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 720, "y": 760, "wires": [ [ "6ebf1c2b99b260a0" ] ] }, { "id": "236cb5a6278abac6", "type": "switch", "z": "e4aa7e9b9fb405d9", "name": "", "property": "payload", "propertyType": "msg", "rules": [ { "t": "gt", "v": "1", "vt": "num" } ], "checkall": "false", "repair": false, "outputs": 1, "x": 150, "y": 800, "wires": [ [ "e14d12f8a327f7d2", "1d22878d092191cd" ] ] }, { "id": "f18bedcfdbd9660f", "type": "debug", "z": "e4aa7e9b9fb405d9", "name": "debug 109", "active": false, "tosidebar": true, "console": false, "tostatus": true, "complete": "payload", "targetType": "msg", "statusVal": "payload", "statusType": "auto", "x": 960, "y": 880, "wires": [] }, { "id": "e5c7f72323657170", "type": "switch", "z": "e4aa7e9b9fb405d9", "name": "", "property": "payload", "propertyType": "msg", "rules": [ { "t": "gt", "v": "1", "vt": "num" } ], "checkall": "false", "repair": false, "outputs": 1, "x": 150, "y": 760, "wires": [ [ "5317e2e4064ae269" ] ] }, { "id": "241a3883ea624c8d", "type": "debug", "z": "e4aa7e9b9fb405d9", "name": "debug 110", "active": false, "tosidebar": true, "console": false, "tostatus": true, "complete": "payload", "targetType": "msg", "statusVal": "payload", "statusType": "auto", "x": 960, "y": 820, "wires": [] }, { "id": "aaf5f791f630a6a3", "type": "function", "z": "e4aa7e9b9fb405d9", "name": "Zähler 3", "func": "var f_zaehler4 = flow.get(`f_zaehler4`) || 0;\nvar f_zaehler3 = flow.get(`f_zaehler3`) || 0;\nf_zaehler3 = f_zaehler4;\nflow.set('f_zaehler3', f_zaehler3);\nmsg.payload = f_zaehler3;\nreturn msg;", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 720, "y": 820, "wires": [ [ "241a3883ea624c8d", "5369f8cb591ac34d" ] ] }, { "id": "47b0ef4a8fb9242e", "type": "debug", "z": "e4aa7e9b9fb405d9", "name": "debug 111", "active": false, "tosidebar": true, "console": false, "tostatus": true, "complete": "payload", "targetType": "msg", "statusVal": "payload", "statusType": "auto", "x": 180, "y": 1060, "wires": [] }, { "id": "f30c68af18f7aef1", "type": "ui_button", "z": "e4aa7e9b9fb405d9", "name": "", "group": "04d5298db5344c1e", "order": 1, "width": 0, "height": 0, "passthru": false, "label": "button", "tooltip": "", "color": "", "bgcolor": "", "icon": "", "payload": "", "payloadType": "str", "topic": "topic", "topicType": "msg", "x": 150, "y": 460, "wires": [ [ "799b36b1217126ae" ] ] }, { "id": "474cddab788eb28b", "type": "function", "z": "e4aa7e9b9fb405d9", "name": "Zähler 2", "func": "var f_zaehler2 = flow.get(`f_zaehler2`) || 0;\n\nif (msg.topic === \"modbus/1/holdingRegisters/30/2600_L1_Power\") context.set(\"L1\",msg.payload);\nif (msg.topic === \"modbus/1/holdingRegisters/30/2601_L2_Power\") context.set(\"L2\",msg.payload);\nif (msg.topic === \"modbus/1/holdingRegisters/30/2602_L3_Power\") context.set(\"L3\",msg.payload);\n\nvar L1 = context.get(\"L1\") || 0;\nvar L2 = context.get(\"L2\") || 0;\nvar L3 = context.get(\"L3\") || 0;\n\nmsg.payload = L1 + L2 + L3;\n\n\n\n\n\nflow.set('f_zaehler2',msg.payload);\nreturn msg;", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 220, "y": 980, "wires": [ [] ] }, { "id": "1d22878d092191cd", "type": "trigger", "z": "e4aa7e9b9fb405d9", "name": "", "op1": "ON", "op2": "Taster OFF", "op1type": "str", "op2type": "str", "duration": "-2", "extend": false, "overrideDelay": true, "units": "s", "reset": "", "bytopic": "all", "topic": "topic", "outputs": 1, "x": 500, "y": 820, "wires": [ [ "aaf5f791f630a6a3" ] ] }, { "id": "5317e2e4064ae269", "type": "trigger", "z": "e4aa7e9b9fb405d9", "name": "", "op1": "ON", "op2": "Taster OFF", "op1type": "str", "op2type": "str", "duration": "-2", "extend": false, "overrideDelay": true, "units": "s", "reset": "", "bytopic": "all", "topic": "topic", "outputs": 1, "x": 480, "y": 760, "wires": [ [ "3ce3731fa2de008c" ] ] }, { "id": "04d5298db5344c1e", "type": "ui_group", "name": "Test 1", "tab": "12a65f5c2118623e", "order": 3, "disp": true, "width": "6", "collapse": false }, { "id": "a9d0f0d6dc0f0a7e", "type": "ui_group", "name": "Default", "tab": "12a65f5c2118623e", "order": 4, "disp": true, "width": 6, "collapse": false }, { "id": "7a7b311bf649aa87", "type": "tasmota-mqtt-broker", "name": "", "broker": "localhost", "port": "1883", "clientid": "", "usetls": false, "keepalive": "60", "cleansession": true }, { "id": "b84a725bf6dd8e6b", "type": "mqtt-broker", "name": "CerboGX", "broker": "192.168.178.35", "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": {}, "userProps": "", "sessionExpiry": "" }, { "id": "71e172fc8641b4f7", "type": "ui_group", "name": "Stapler ", "tab": "12a65f5c2118623e", "order": 1, "disp": true, "width": "6", "collapse": false }, { "id": "12a65f5c2118623e", "type": "ui_tab", "name": "Home", "icon": "dashboard", "order": 2, "disabled": false, "hidden": false } ]