Hallo zusammen,
ich bin ganz neu hier, versuche aber schon seit einer Weile einer Nulleinspeisung mit Node Red - OpenDTU - Shelly3EM und dem IObroker umzusetzen.
Bislang jedoch erfolglos…
Den Shelly kann ich problemlos über NodeRed auslesen, das klappt. Ich lasse mir so positive (also Netzbezug) und negative (also Einspeisung) ausgeben. Die Werte passen soweit auch.
Die nächste Funktion schaut dann, ob der Wert positiv oder negativ ist und passt das das Limit absolut entsprechend an. Der Ausgang erfolgt über den MQTT out Befehl.
Ich hab absolut keine Ahnung, warum das so noch nicht funktioniert, ggf habt Ihr ja ne Idee oder findet meinen Gedankenfehler!
hier mal mein Flow dazu:
[
{
"id": "7cdac530d32ba507",
"type": "tab",
"label": "Flow 1",
"disabled": false,
"info": "",
"env": []
},
{
"id": "8e176a220e935989",
"type": "shelly-gen2",
"z": "7cdac530d32ba507",
"hostname": "192.168.178.36",
"description": "",
"mode": "polling",
"server": "",
"outputmode": "event",
"uploadretryinterval": 5000,
"pollinginterval": "10000",
"pollstatus": true,
"getstatusoncommand": true,
"devicetype": "Measure",
"outputs": 1,
"x": 340,
"y": 280,
"wires": [
[
"83bded644316d034"
]
]
},
{
"id": "83bded644316d034",
"type": "change",
"z": "7cdac530d32ba507",
"name": "Gesamtbezug Haus",
"rules": [
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "payload.em0.total_act_power",
"tot": "msg"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 580,
"y": 280,
"wires": [
[
"4377c2003e48c9f5",
"3f0ef3e6ef837c5c"
]
]
},
{
"id": "4377c2003e48c9f5",
"type": "debug",
"z": "7cdac530d32ba507",
"name": "debug 8",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "false",
"statusVal": "",
"statusType": "auto",
"x": 840,
"y": 180,
"wires": []
},
{
"id": "862de5812d352aab",
"type": "mqtt out",
"z": "7cdac530d32ba507",
"name": "",
"topic": "hm1600/116491954071/status/limit_absolute",
"qos": "",
"retain": "",
"respTopic": "",
"contentType": "",
"userProps": "",
"correl": "",
"expiry": "",
"broker": "1467dfeaad9c21b5",
"x": 1430,
"y": 280,
"wires": []
},
{
"id": "3f0ef3e6ef837c5c",
"type": "switch",
"z": "7cdac530d32ba507",
"name": "",
"property": "payload",
"propertyType": "msg",
"rules": [
{
"t": "gt",
"v": "0",
"vt": "num"
},
{
"t": "lt",
"v": "0",
"vt": "num"
}
],
"checkall": "true",
"repair": false,
"outputs": 2,
"x": 870,
"y": 280,
"wires": [
[
"0f811dc91d812035"
],
[
"3300786202218c43"
]
]
},
{
"id": "0f811dc91d812035",
"type": "trigger",
"z": "7cdac530d32ba507",
"name": "",
"op1": "1000",
"op2": "800",
"op1type": "num",
"op2type": "flow",
"duration": "-5",
"extend": false,
"overrideDelay": false,
"units": "s",
"reset": "",
"bytopic": "all",
"topic": "topic",
"outputs": 1,
"x": 1100,
"y": 240,
"wires": [
[
"862de5812d352aab"
]
]
},
{
"id": "47f400e78a038d25",
"type": "mqtt in",
"z": "7cdac530d32ba507",
"name": "",
"topic": "hm1600/116491954071/status/limit_absolute",
"qos": "2",
"datatype": "auto-detect",
"broker": "1467dfeaad9c21b5",
"nl": false,
"rap": true,
"rh": 0,
"inputs": 0,
"x": 290,
"y": 480,
"wires": [
[
"18a6d95c2b4c3c28"
]
]
},
{
"id": "18a6d95c2b4c3c28",
"type": "debug",
"z": "7cdac530d32ba507",
"name": "debug 9",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "false",
"statusVal": "",
"statusType": "auto",
"x": 620,
"y": 480,
"wires": []
},
{
"id": "3300786202218c43",
"type": "trigger",
"z": "7cdac530d32ba507",
"name": "",
"op1": "500",
"op2": "500",
"op1type": "num",
"op2type": "flow",
"duration": "-5",
"extend": false,
"overrideDelay": false,
"units": "s",
"reset": "",
"bytopic": "all",
"topic": "topic",
"outputs": 1,
"x": 1100,
"y": 320,
"wires": [
[
"862de5812d352aab"
]
]
},
{
"id": "0371ca652c2afdf4",
"type": "delay",
"z": "7cdac530d32ba507",
"name": "",
"pauseType": "delay",
"timeout": "5",
"timeoutUnits": "seconds",
"rate": "1",
"nbRateUnits": "1",
"rateUnits": "second",
"randomFirst": "1",
"randomLast": "5",
"randomUnits": "seconds",
"drop": false,
"allowrate": false,
"outputs": 1,
"x": 200,
"y": 160,
"wires": [
[
"8e176a220e935989"
]
]
},
{
"id": "1467dfeaad9c21b5",
"type": "mqtt-broker",
"name": "",
"broker": "192.168.178.93",
"port": "1883",
"clientid": "",
"autoConnect": true,
"usetls": false,
"protocolVersion": "4",
"keepalive": "60",
"cleansession": true,
"autoUnsubscribe": true,
"birthTopic": "",
"birthQos": "0",
"birthRetain": "false",
"birthPayload": "",
"birthMsg": {},
"closeTopic": "",
"closeQos": "0",
"closeRetain": "false",
"closePayload": "",
"closeMsg": {},
"willTopic": "",
"willQos": "0",
"willRetain": "false",
"willPayload": "",
"willMsg": {},
"userProps": "",
"sessionExpiry": ""
}
]
by HarryP: Codezeilen formatiert (bitte immer über </> einbinden)