Hallo zusammen,
nach langem hin und her hab ich mich nun doch mit NodeRed beschäftigt um einen Shelly 1PM Gen4 als Virtuellen Zähler einzubinden. Das hat auch nach Inputs aus der Community schnell funktioniert, jedoch leider nur für ein paar Tage. Nach ein paar Tagen, immer so ca. 3-4 Tage, bleibt die Auswertung stehen. D.h. der Wert wird dann einfach nicht mehr aktualisiert. Passiert das über Nacht, dann gibt der Zähler immer 0W raus, passiert das auf einem anderen Wert, dann bleibt der Wert einfach stehen. Hier zwei Beispiele.
Wenn es zu diesem Fehler kommt, dann kann ich den NodeRed Editor kaum noch aufrufen, soll heißen, es dauert ewig bis der Editor geladen wurde, jeder Klick dauert Ewigkeiten.
Nach einem VenusOS Neustart funktioniert das System wieder für ein paar Tage. Mittlerweile hab ich auch herausgefunden, dass es reicht NodeRed allein kurz neu zu starten indem man es kurz deaktiviert und dann wieder aktiviert.
Es gab im Februar schon ein Thema dazu, es wurde aber bereits geschlossen. Aber hier scheint es der gleiche Fehler zu sein, allerdings hilft mir die Lösung von dort nicht weiter.
[
{
"id": "a23f0d9ed56c8d05",
"type": "tab",
"label": "Shelly BKW Schwedenhütte 1Ph",
"disabled": false,
"info": "",
"env": []
},
{
"id": "33c777b507f52aae",
"type": "victron-virtual",
"z": "a23f0d9ed56c8d05",
"name": "BKW Gartenhütte NR",
"outputs": 1,
"device": "pvinverter",
"default_values": true,
"acload_nrofphases": 1,
"enable_s2support": false,
"battery_capacity": 25,
"include_battery_temperature": false,
"battery_voltage_preset": "24",
"battery_voltage_custom": 24,
"generator_type": "ac",
"generator_nrofphases": 1,
"include_engine_hours": false,
"include_starter_voltage": false,
"include_history_energy": false,
"grid_nrofphases": 1,
"include_motor_temp": false,
"include_controller_temp": false,
"include_coolant_temp": false,
"include_motor_rpm": true,
"include_motor_direction": true,
"position": 0,
"pvinverter_nrofphases": "3",
"switch_1_type": 1,
"switch_1_min": 0,
"switch_1_max": "",
"switch_1_initial": 0,
"switch_1_label": "",
"switch_1_unit": "",
"switch_1_step": 1,
"switch_1_customname": "",
"switch_1_group": "",
"switch_1_include_measurement": false,
"switch_1_rgb_color_wheel": false,
"switch_1_cct_wheel": false,
"switch_1_rgb_white_dimmer": false,
"fluid_type": 0,
"include_tank_battery": false,
"include_tank_temperature": false,
"tank_battery_voltage": 3.3,
"tank_capacity": 0.2,
"temperature_type": 2,
"include_humidity": false,
"include_pressure": false,
"include_temp_battery": false,
"temp_battery_voltage": 3.3,
"x": 180,
"y": 80,
"wires": [
[]
]
},
{
"id": "197bf617dd6d9ba4",
"type": "victron-output-custom",
"z": "a23f0d9ed56c8d05",
"service": "com.victronenergy.pvinverter/101",
"path": "/Ac/L3/Power",
"serviceObj": {
"service": "com.victronenergy.pvinverter/101",
"name": "BKW Gartenhütte NR (101)"
},
"pathObj": {
"path": "/Ac/L3/Power",
"name": "/Ac/L3/Power",
"type": "number",
"value": 49.9
},
"name": "",
"onlyChanges": false,
"roundValues": "no",
"rateLimit": 0,
"outputs": 0,
"conditionalMode": false,
"condition1Operator": ">",
"condition2Enabled": false,
"condition2Service": "",
"condition2Path": "",
"condition2Operator": ">",
"logicOperator": "AND",
"outputTrue": "true",
"outputFalse": "false",
"outputOnChange": false,
"debounce": 2000,
"x": 850,
"y": 180,
"wires": []
},
{
"id": "afa947df524b5d61",
"type": "inject",
"z": "a23f0d9ed56c8d05",
"name": "",
"props": [
{
"p": "payload"
},
{
"p": "topic",
"vt": "str"
}
],
"repeat": "6",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "001",
"payloadType": "num",
"x": 130,
"y": 180,
"wires": [
[
"136190411b6a0103"
]
]
},
{
"id": "15cc15cea115bd6d",
"type": "debug",
"z": "a23f0d9ed56c8d05",
"name": "debug 2",
"active": false,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 580,
"y": 80,
"wires": []
},
{
"id": "a19a2a264d4b6d02",
"type": "change",
"z": "a23f0d9ed56c8d05",
"name": "Power",
"rules": [
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "payload.switch0.apower",
"tot": "jsonata"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 570,
"y": 180,
"wires": [
[
"197bf617dd6d9ba4",
"523404417ea2f7d9"
]
]
},
{
"id": "136190411b6a0103",
"type": "shelly-gen2",
"z": "a23f0d9ed56c8d05",
"hostname": "192.168.178.116",
"description": "BKW Gartenhütte",
"mode": "none",
"verbose": false,
"server": "",
"outputmode": "event",
"uploadretryinterval": 5000,
"pollinginterval": 5000,
"pollstatus": false,
"getstatusoncommand": true,
"devicetype": "S4SW-001P16EU",
"devicetypemustmatchexactly": true,
"captureblutooth": false,
"outputs": 1,
"x": 310,
"y": 180,
"wires": [
[
"a19a2a264d4b6d02",
"15cc15cea115bd6d",
"874715c4d0f735ef",
"af48283a2a9c3b16",
"99ff57f6b1579642"
]
]
},
{
"id": "874715c4d0f735ef",
"type": "change",
"z": "a23f0d9ed56c8d05",
"name": "Energie",
"rules": [
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "$round(payload.switch0.aenergy.total/1000, 2)",
"tot": "jsonata"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 580,
"y": 300,
"wires": [
[
"e1b291fd59da284d",
"793ddc752f875a48"
]
]
},
{
"id": "af48283a2a9c3b16",
"type": "change",
"z": "a23f0d9ed56c8d05",
"name": "Voltage",
"rules": [
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "payload.switch0.voltage",
"tot": "msg"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 580,
"y": 440,
"wires": [
[
"73afc923f8e55ca6"
]
]
},
{
"id": "99ff57f6b1579642",
"type": "change",
"z": "a23f0d9ed56c8d05",
"name": "Current",
"rules": [
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "payload.switch0.current",
"tot": "msg"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 580,
"y": 500,
"wires": [
[
"c197c9082aa26936"
]
]
},
{
"id": "e1b291fd59da284d",
"type": "victron-output-custom",
"z": "a23f0d9ed56c8d05",
"service": "com.victronenergy.pvinverter/101",
"path": "/Ac/L3/Energy/Forward",
"serviceObj": {
"service": "com.victronenergy.pvinverter/101",
"name": "BKW Gartenhütte NR (101)"
},
"pathObj": {
"path": "/Ac/L3/Energy/Forward",
"name": "/Ac/L3/Energy/Forward",
"type": "number",
"value": 0
},
"name": "",
"onlyChanges": false,
"roundValues": "no",
"rateLimit": 0,
"outputs": 0,
"conditionalMode": false,
"condition1Operator": ">",
"condition2Enabled": false,
"condition2Service": "",
"condition2Path": "",
"condition2Operator": ">",
"logicOperator": "AND",
"outputTrue": "true",
"outputFalse": "false",
"outputOnChange": false,
"debounce": 2000,
"x": 880,
"y": 300,
"wires": []
},
{
"id": "73afc923f8e55ca6",
"type": "victron-output-custom",
"z": "a23f0d9ed56c8d05",
"service": "com.victronenergy.pvinverter/101",
"path": "/Ac/L3/Voltage",
"serviceObj": {
"service": "com.victronenergy.pvinverter/101",
"name": "BKW Gartenhütte NR (101)"
},
"pathObj": {
"path": "/Ac/L3/Voltage",
"name": "/Ac/L3/Voltage",
"type": "number",
"value": 0
},
"name": "",
"onlyChanges": false,
"roundValues": "no",
"rateLimit": 0,
"outputs": 0,
"conditionalMode": false,
"condition1Operator": ">",
"condition2Enabled": false,
"condition2Service": "",
"condition2Path": "",
"condition2Operator": ">",
"logicOperator": "AND",
"outputTrue": "true",
"outputFalse": "false",
"outputOnChange": false,
"debounce": 2000,
"x": 850,
"y": 440,
"wires": []
},
{
"id": "c197c9082aa26936",
"type": "victron-output-custom",
"z": "a23f0d9ed56c8d05",
"service": "com.victronenergy.pvinverter/101",
"path": "/Ac/L3/Current",
"serviceObj": {
"service": "com.victronenergy.pvinverter/101",
"name": "BKW Gartenhütte NR (101)"
},
"pathObj": {
"path": "/Ac/L3/Current",
"name": "/Ac/L3/Current",
"type": "number",
"value": 0
},
"name": "",
"onlyChanges": false,
"roundValues": "no",
"rateLimit": 0,
"outputs": 0,
"conditionalMode": false,
"condition1Operator": ">",
"condition2Enabled": false,
"condition2Service": "",
"condition2Path": "",
"condition2Operator": ">",
"logicOperator": "AND",
"outputTrue": "true",
"outputFalse": "false",
"outputOnChange": false,
"debounce": 2000,
"x": 850,
"y": 500,
"wires": []
},
{
"id": "793ddc752f875a48",
"type": "victron-output-custom",
"z": "a23f0d9ed56c8d05",
"service": "com.victronenergy.pvinverter/101",
"path": "/Ac/Energy/Forward",
"serviceObj": {
"service": "com.victronenergy.pvinverter/101",
"name": "BKW Gartenhütte NR (101)"
},
"pathObj": {
"path": "/Ac/Energy/Forward",
"name": "/Ac/Energy/Forward",
"type": "number",
"value": 56.467
},
"name": "",
"onlyChanges": false,
"roundValues": "no",
"rateLimit": 0,
"outputs": 0,
"conditionalMode": false,
"condition1Operator": ">",
"condition2Enabled": false,
"condition2Service": "",
"condition2Path": "",
"condition2Operator": ">",
"logicOperator": "AND",
"outputTrue": "true",
"outputFalse": "false",
"outputOnChange": false,
"debounce": 2000,
"x": 870,
"y": 360,
"wires": []
},
{
"id": "523404417ea2f7d9",
"type": "victron-output-custom",
"z": "a23f0d9ed56c8d05",
"service": "com.victronenergy.pvinverter/101",
"path": "/Ac/Power",
"serviceObj": {
"service": "com.victronenergy.pvinverter/101",
"name": "BKW Gartenhütte NR (101)"
},
"pathObj": {
"path": "/Ac/Power",
"name": "/Ac/Power",
"type": "number",
"value": 0
},
"name": "",
"onlyChanges": false,
"roundValues": "no",
"rateLimit": 0,
"outputs": 0,
"conditionalMode": false,
"condition1Operator": ">",
"condition2Enabled": false,
"condition2Service": "",
"condition2Path": "",
"condition2Operator": ">",
"logicOperator": "AND",
"outputTrue": "true",
"outputFalse": "false",
"outputOnChange": false,
"debounce": 2000,
"x": 840,
"y": 240,
"wires": []
},
{
"id": "846e301771095c77",
"type": "comment",
"z": "a23f0d9ed56c8d05",
"name": "Energy Wh",
"info": "Energie muss von kWh in Wh umgerechnet werden.\n\nDazu wird der Wert durch 1000 geteilt.\n\nAnschließend wird der Wert auf 2 Nachkommastellen gerdundet.",
"x": 580,
"y": 340,
"wires": []
},
{
"id": "c2d0bc5469c75e4f",
"type": "comment",
"z": "a23f0d9ed56c8d05",
"name": "Polling 1/6s",
"info": "",
"x": 130,
"y": 220,
"wires": []
},
{
"id": "32dc55f09e886f51",
"type": "global-config",
"env": [],
"modules": {
"@victronenergy/node-red-contrib-victron": "1.6.63",
"node-red-contrib-shelly": "11.8.0"
}
}
]
Edit:
Das System ist das VenusOS Large in der letzten Version und läuft auf einem RasPi 4, von daher sollte es nicht an mangelnder Performance liegen. Zwei weitere kleine NodeRed Flows laufen trotzdem weiter, nur der Shelly Zähler bleibt stehen. Es scheint, als würde irgendwo ein Speicher voll laufen und der Flow bleibt stecken…







