PV-Anlage - SMA Wechselrichter und Batterie an homee simulieren [hih]

hab mir gerade nen Schalter über das dashboard von node red gebaut. Damit kann ich perfekt die lampe schalten.
Somit gibt es also in keine Richtung Probleme mit der hue Bridge.
Warum dann aber mit homee??

Hallo, also ich hatte auch Probleme mit Node Red Container in der Synology, so das mir der ganze Container abgeschmiert ist. Ich bin dann auf einen Raspi gewechselt, seit dem läufts. Sorry das ich da nichts anderes sagen kann. Aber sonst ist hih echt super, habe damit meinen E3DC virtualisiert und sehe alle Werte, und kann sie im Homee weiterverarbeiten.
Danke an die Entwickler!!!

so, habe umgeschwenkt und mir nen raspberry pi besorgt…nun bekomme ich die vhih Verbindung hin… :pray:

habe mir deinen Flow von github geladen…ist das der aktuellste?
Produktionsdaten bekomme ich ordentlich angezeigt…aber die restlichen irgendwie nicht.
In node red steht aber auch disconnected…

folgende Meldung bekomme ich laufend im debug Fenster

string[100]
using an object with id and value is deprecated.
You’ll find the new syntax in the README.

Das klingt doch gut…
Nein, der Flow ist noch ein alter… es gabt zwischenzeitlich eine Syntaxänderung, deshalb die Meldung.
Hier ist der aktuelle (nicht irritieren lassen):

[{"id":"cbec805e.bf178","type":"inject","z":"fd6d95c1.d70ae8","name":"Abfrage SI","topic":"","payload":"[{\"name\":\"Batterieladung\",\"topic\":\"Batterieladung\",\"dataType\":\"FC3\",\"address\":30845,\"quantity\":2,\"interval\":15000,\"ieeeType\":\"off\",\"ieeeBE\":true},{\"name\":\"Batteriebewegung\",\"topic\":\"Batteriebewegung\",\"dataType\":\"FC3\",\"address\":30775,\"quantity\":2,\"interval\":15000,\"ieeeType\":\"off\",\"ieeeBE\":true},{\"name\":\"Netzbezug\",\"topic\":\"Netzbezug\",\"dataType\":\"FC3\",\"address\":30865,\"quantity\":2,\"interval\":15000,\"ieeeType\":\"off\",\"ieeeBE\":true},{\"name\":\"Einspeisung\",\"topic\":\"Einspeisung\",\"dataType\":\"FC3\",\"address\":30867,\"quantity\":2,\"interval\":15000,\"ieeeType\":\"off\",\"ieeeBE\":true},{\"name\":\"Tagesbezug\",\"topic\":\"Tagesbezug\",\"dataType\":\"FC3\",\"address\":30577,\"quantity\":2,\"interval\":15000,\"ieeeType\":\"off\",\"ieeeBE\":true}]","payloadType":"json","repeat":"1800","crontab":"","once":true,"onceDelay":0.1,"x":130,"y":4480,"wires":[["94c29a05.895178"]]},{"id":"95cc52c2.4f77c","type":"inject","z":"fd6d95c1.d70ae8","name":"Abfrage STP","topic":"","payload":"[{\"name\":\"PV-Erzeugung\",\"topic\":\"PV-Erzeugung\",\"dataType\":\"FC3\",\"address\":30775,\"quantity\":2,\"interval\":15000,\"ieeeType\":\"off\",\"ieeeBE\":true},{\"name\":\"Tagesertrag\",\"topic\":\"Tagesertrag\",\"dataType\":\"FC3\",\"address\":30537,\"quantity\":2,\"interval\":15000,\"ieeeType\":\"off\",\"ieeeBE\":true}]","payloadType":"json","repeat":"1800","crontab":"","once":true,"onceDelay":0.1,"x":140,"y":4520,"wires":[["209df9b9.00a856"]]},{"id":"94c29a05.895178","type":"modbustcp-read","z":"fd6d95c1.d70ae8","name":"SI","topic":"","dataType":"HoldingRegister","adr":"30845","quantity":"2","rate":"0","rateUnit":"s","server":"8eb3ef23.af869","ieeeType":"off","ieeeBE":"true","x":290,"y":4480,"wires":[["b1c3d4e9.a54768"]]},{"id":"209df9b9.00a856","type":"modbustcp-read","z":"fd6d95c1.d70ae8","name":"STP","topic":"","dataType":"HoldingRegister","adr":"30775","quantity":"2","rate":"0","rateUnit":"s","server":"38eec1f5.1e71ee","ieeeType":"off","ieeeBE":"true","x":290,"y":4600,"wires":[["3273b3c.864da4c"]]},{"id":"b1c3d4e9.a54768","type":"switch","z":"fd6d95c1.d70ae8","name":"","property":"topic","propertyType":"msg","rules":[{"t":"eq","v":"Tagesbezug","vt":"str"},{"t":"eq","v":"Batterieladung","vt":"str"},{"t":"eq","v":"Batteriebewegung","vt":"str"},{"t":"eq","v":"Netzbezug","vt":"str"},{"t":"eq","v":"Einspeisung","vt":"str"}],"checkall":"true","repair":false,"outputs":5,"x":430,"y":4500,"wires":[["dc18770a.2e4b5"],["74129c2c.a3f334"],["95a33646.6f5588"],["84ece0d0.ea8e8"],["bb218aeb.7204f8"]]},{"id":"3273b3c.864da4c","type":"switch","z":"fd6d95c1.d70ae8","name":"","property":"topic","propertyType":"msg","rules":[{"t":"eq","v":"PV-Erzeugung","vt":"str"},{"t":"eq","v":"Tagesertrag","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":430,"y":4600,"wires":[["d7bfa086.5a044"],["91e7267d.99f888"]]},{"id":"dc18770a.2e4b5","type":"function","z":"fd6d95c1.d70ae8","name":"Filter","func":"var leistung = (parseInt(msg.payload[1])/1000).toFixed(1);\n//var leistung = tempmilli/1000;\nmsg.payload = leistung;\nreturn msg;","outputs":1,"noerr":0,"x":610,"y":4440,"wires":[["c656b29f.74c898","8de9b7cc.19b5f8"]]},{"id":"74129c2c.a3f334","type":"function","z":"fd6d95c1.d70ae8","name":"Filter","func":"return{payload:msg.payload[1]}\n","outputs":1,"noerr":0,"x":610,"y":4480,"wires":[["abf6aad6.4d9268","11d48c2f.d46e84"]]},{"id":"95a33646.6f5588","type":"function","z":"fd6d95c1.d70ae8","name":"Filter","func":"msg.payload = msg.payload[1] - msg.payload[0];\nreturn msg;","outputs":1,"noerr":0,"x":610,"y":4520,"wires":[["20e012f7.ccbabe","a0fc8ef6.fef15","66629fa8.4b72c"]]},{"id":"84ece0d0.ea8e8","type":"function","z":"fd6d95c1.d70ae8","name":"Filter","func":"return{payload:msg.payload[1]}","outputs":1,"noerr":0,"x":610,"y":4560,"wires":[["346d8c3d.3c2e44","76b7cc9c.c1d0e4"]]},{"id":"bb218aeb.7204f8","type":"function","z":"fd6d95c1.d70ae8","name":"Filter","func":"return{payload:msg.payload[1]}","outputs":1,"noerr":0,"x":610,"y":4600,"wires":[["1d5c374c.3f6439","d5ecd695.83d1f8"]]},{"id":"d7bfa086.5a044","type":"function","z":"fd6d95c1.d70ae8","name":"Filter","func":"return{payload:msg.payload[1]}","outputs":1,"noerr":0,"x":610,"y":4640,"wires":[["1e7fbd44.061a53","7127f7f0.938bd8","6cbb5ebf.8c7ea8"]]},{"id":"91e7267d.99f888","type":"function","z":"fd6d95c1.d70ae8","name":"Filter","func":"return{payload:msg.payload[1]}","outputs":1,"noerr":0,"x":610,"y":4680,"wires":[["93b66705.56d8e","5aa1f6fc.fcf768"]]},{"id":"93b66705.56d8e","type":"function","z":"fd6d95c1.d70ae8","name":"Wert  an EM","func":"var wert = msg.payload\n\nnode.send({payload:{\"attribute\":{\"id\":730,\"value\":Number(msg.payload)}}})\n","outputs":1,"noerr":0,"x":770,"y":4680,"wires":[["ef7ae323.09ab38"]]},{"id":"1d5c374c.3f6439","type":"function","z":"fd6d95c1.d70ae8","name":"Wert  an EM","func":"var wert = msg.payload\n\nnode.send({payload:{\"attribute\":{\"id\":723,\"value\":msg.payload}}})\n","outputs":1,"noerr":0,"x":770,"y":4600,"wires":[["ef7ae323.09ab38"]]},{"id":"1e7fbd44.061a53","type":"function","z":"fd6d95c1.d70ae8","name":"Wert  an EM","func":"var wert = msg.payload\n\nnode.send({payload:{\"attribute\":{\"id\":728,\"value\":msg.payload}}})\n","outputs":1,"noerr":0,"x":770,"y":4640,"wires":[["ef7ae323.09ab38"]]},{"id":"346d8c3d.3c2e44","type":"function","z":"fd6d95c1.d70ae8","name":"Wert  an EM","func":"var wert = msg.payload\n\nnode.send({payload:{\"attribute\":{\"id\":722,\"value\":msg.payload}}})\n","outputs":1,"noerr":0,"x":770,"y":4560,"wires":[["ef7ae323.09ab38"]]},{"id":"20e012f7.ccbabe","type":"function","z":"fd6d95c1.d70ae8","name":"Wert  an EM","func":"var wert = msg.payload\nvar msg1 = {payload:{\"attribute\":{ \"id\": 726, \"value\":-wert}}};\nvar msg2 = {payload:{\"attribute\":{ \"id\": 725, \"value\": 0 }}};\nvar msg3 = {payload:{\"attribute\":{ \"id\": 725, \"value\":wert}}};\nvar msg4 = {payload:{\"attribute\":{ \"id\": 726, \"value\": 0 }}};\n\nif (wert < 0){\nreturn [[msg1,msg2]]\n}\nif (wert >= 0){\nreturn [[msg3,msg4]]\n}","outputs":1,"noerr":0,"x":770,"y":4520,"wires":[["ef7ae323.09ab38"]]},{"id":"abf6aad6.4d9268","type":"function","z":"fd6d95c1.d70ae8","name":"Wert  an EM","func":"var wert = msg.payload\n\nnode.send({payload:{\"attribute\":{\"id\":727,\"value\":msg.payload}}})\n","outputs":1,"noerr":0,"x":770,"y":4480,"wires":[["ef7ae323.09ab38"]]},{"id":"c656b29f.74c898","type":"function","z":"fd6d95c1.d70ae8","name":"Wert  an EM","func":"var wert = msg.payload\n\nnode.send({payload:{\"attribute\":{\"id\":731,\"value\":Number(msg.payload)}}})\n","outputs":1,"noerr":0,"x":770,"y":4440,"wires":[["ef7ae323.09ab38"]]},{"id":"ef7ae323.09ab38","type":"homeeDevice","z":"fd6d95c1.d70ae8","virtual-homee":"","name":"hEM","nodeId":"720","showNodeId":false,"profile":"38","icon":"default","attributes":"[{\"id\":720,\"node_id\":720,\"instance\":0,\"minimum\":0,\"maximum\":10000,\"current_value\":0,\"target_value\":0,\"last_value\":0,\"unit\":\"text\",\"step_value\":1,\"editable\":0,\"type\":84,\"state\":1,\"last_changed\":1572785482,\"changed_by\":1,\"changed_by_id\":0,\"based_on\":1,\"data\":\"HM0000422\"},{\"id\":721,\"node_id\":720,\"instance\":0,\"minimum\":0,\"maximum\":10000,\"current_value\":0,\"target_value\":0,\"last_value\":0,\"unit\":\"text\",\"step_value\":1,\"editable\":0,\"type\":45,\"state\":1,\"last_changed\":1572785482,\"changed_by\":1,\"changed_by_id\":0,\"based_on\":1,\"data\":\"11.4.11\"},{\"id\":722,\"node_id\":720,\"instance\":0,\"minimum\":0,\"maximum\":50000,\"current_value\":1700,\"target_value\":1700,\"last_value\":0,\"unit\":\"W\",\"step_value\":100,\"editable\":0,\"type\":264,\"state\":1,\"last_changed\":1572785482,\"changed_by\":1,\"changed_by_id\":0,\"based_on\":4,\"data\":\"\"},{\"id\":723,\"node_id\":720,\"instance\":0,\"minimum\":0,\"maximum\":50000,\"current_value\":2500,\"target_value\":2500,\"last_value\":0,\"unit\":\"W\",\"step_value\":100,\"editable\":0,\"type\":265,\"state\":1,\"last_changed\":1572785482,\"changed_by\":1,\"changed_by_id\":0,\"based_on\":4,\"data\":\"\"},{\"id\":724,\"node_id\":720,\"instance\":0,\"minimum\":0,\"maximum\":50000,\"current_value\":258,\"target_value\":258,\"last_value\":0,\"unit\":\"W\",\"step_value\":100,\"editable\":0,\"type\":267,\"state\":1,\"last_changed\":1572785482,\"changed_by\":1,\"changed_by_id\":0,\"based_on\":4,\"data\":\"\"},{\"id\":725,\"node_id\":720,\"instance\":0,\"minimum\":0,\"maximum\":50000,\"current_value\":200,\"target_value\":200,\"last_value\":0,\"unit\":\"W\",\"step_value\":100,\"editable\":0,\"type\":268,\"state\":1,\"last_changed\":1572785482,\"changed_by\":1,\"changed_by_id\":0,\"based_on\":4,\"data\":\"\"},{\"id\":726,\"node_id\":720,\"instance\":0,\"minimum\":0,\"maximum\":50000,\"current_value\":980,\"target_value\":980,\"last_value\":0,\"unit\":\"W\",\"step_value\":100,\"editable\":0,\"type\":269,\"state\":1,\"last_changed\":1572785482,\"changed_by\":1,\"changed_by_id\":0,\"based_on\":4,\"data\":\"\"},{\"id\":727,\"node_id\":720,\"instance\":0,\"minimum\":0,\"maximum\":100,\"current_value\":37,\"target_value\":37,\"last_value\":0,\"unit\":\"%25\",\"step_value\":1,\"editable\":0,\"type\":273,\"state\":1,\"last_changed\":1572785482,\"changed_by\":1,\"changed_by_id\":0,\"based_on\":4,\"data\":\"\"},{\"id\":728,\"node_id\":720,\"instance\":0,\"minimum\":0,\"maximum\":50000,\"current_value\":1180,\"target_value\":1180,\"last_value\":1240,\"unit\":\"W\",\"step_value\":100,\"editable\":0,\"type\":266,\"state\":1,\"last_changed\":1572785663,\"changed_by\":1,\"changed_by_id\":0,\"based_on\":4,\"data\":\"\"},{\"id\":729,\"node_id\":720,\"instance\":0,\"minimum\":0,\"maximum\":9999999,\"current_value\":0,\"target_value\":0,\"last_value\":0,\"unit\":\"kWh\",\"step_value\":1,\"editable\":0,\"type\":274,\"state\":1,\"last_changed\":1572785482,\"changed_by\":1,\"changed_by_id\":0,\"based_on\":4,\"data\":\"\"},{\"id\":730,\"node_id\":720,\"instance\":0,\"minimum\":0,\"maximum\":9999999,\"current_value\":0,\"target_value\":0,\"last_value\":0,\"unit\":\"kWh\",\"step_value\":1,\"editable\":0,\"type\":275,\"state\":1,\"last_changed\":1572785482,\"changed_by\":1,\"changed_by_id\":0,\"based_on\":4,\"data\":\"\"},{\"id\":731,\"node_id\":720,\"instance\":0,\"minimum\":0,\"maximum\":9999999,\"current_value\":0,\"target_value\":0,\"last_value\":0,\"unit\":\"kWh\",\"step_value\":1,\"editable\":0,\"type\":276,\"state\":1,\"last_changed\":1572785482,\"changed_by\":1,\"changed_by_id\":0,\"based_on\":4,\"data\":\"\"},{\"id\":732,\"node_id\":720,\"instance\":0,\"minimum\":0,\"maximum\":9999999,\"current_value\":0,\"target_value\":0,\"last_value\":0,\"unit\":\"kWh\",\"step_value\":1,\"editable\":0,\"type\":277,\"state\":1,\"last_changed\":1572785482,\"changed_by\":1,\"changed_by_id\":0,\"based_on\":4,\"data\":\"\"},{\"id\":733,\"node_id\":720,\"instance\":0,\"minimum\":0,\"maximum\":9999999,\"current_value\":0,\"target_value\":0,\"last_value\":0,\"unit\":\"kWh\",\"step_value\":1,\"editable\":0,\"type\":278,\"state\":6,\"last_changed\":1572785482,\"changed_by\":1,\"changed_by_id\":0,\"based_on\":4,\"data\":\"\"},{\"id\":734,\"node_id\":720,\"instance\":0,\"minimum\":0,\"maximum\":9999999,\"current_value\":0,\"target_value\":0,\"last_value\":0,\"unit\":\"kWh\",\"step_value\":1,\"editable\":0,\"type\":279,\"state\":6,\"last_changed\":1572785482,\"changed_by\":1,\"changed_by_id\":0,\"based_on\":4,\"data\":\"\"}]","x":1170,"y":4520,"wires":[[]]},{"id":"66629fa8.4b72c","type":"function","z":"fd6d95c1.d70ae8","name":"SMA -> Variable Batteriebewegung","func":"global.set(\"Batteriebewegung\",msg.payload);\nreturn msg;","outputs":1,"noerr":0,"x":340,"y":4780,"wires":[["8b781efa.6c6cb"]]},{"id":"f193ed90.b9f8e","type":"function","z":"fd6d95c1.d70ae8","name":"SMA -> Variable Batterieentladung","func":"global.set(\"Batterieentladung\",msg.payload);\nreturn msg;","outputs":1,"noerr":0,"x":340,"y":4820,"wires":[[]]},{"id":"76b7cc9c.c1d0e4","type":"function","z":"fd6d95c1.d70ae8","name":"SMA -> Variable Netzbezug","func":"global.set(\"Netzbezug\",msg.payload);\nreturn msg;","outputs":1,"noerr":0,"x":320,"y":4860,"wires":[["343c6dbf.e5a97a"]]},{"id":"d5ecd695.83d1f8","type":"function","z":"fd6d95c1.d70ae8","name":"SMA -> Variable Einspeisung","func":"global.set(\"Einspeisung\",msg.payload);\nreturn msg;","outputs":1,"noerr":0,"x":320,"y":4900,"wires":[["2a94db2c.ffc374"]]},{"id":"6cbb5ebf.8c7ea8","type":"function","z":"fd6d95c1.d70ae8","name":"SMA -> Variable PV-Produktion","func":"global.set(\"Produktion\",msg.payload);\nreturn msg;","outputs":1,"noerr":0,"x":330,"y":4940,"wires":[["7ec39a47.e3e93c"]]},{"id":"a0fc8ef6.fef15","type":"function","z":"fd6d95c1.d70ae8","name":"minus","func":"var wert = msg.payload\n\nreturn {payload:-wert};\n\n","outputs":1,"noerr":0,"x":110,"y":4820,"wires":[["f193ed90.b9f8e"]]},{"id":"7f1f3adb.0e7ae4","type":"inject","z":"fd6d95c1.d70ae8","name":"","topic":"","payload":"","payloadType":"date","repeat":"15","crontab":"","once":true,"onceDelay":0.1,"x":650,"y":4820,"wires":[["145cc409.89defc"]]},{"id":"145cc409.89defc","type":"function","z":"fd6d95c1.d70ae8","name":"Berechnung Hausverbrauch","func":"var Einspeisung = global.get(\"Einspeisung\");\nvar Produktion = global.get(\"Produktion\");\nvar Netzbezug = global.get(\"Netzbezug\");\nvar Batteriebewegung = global.get(\"Batteriebewegung\");\nvar Hausverbrauch;\nvar msgHausverbrauch;\nHausverbrauch = Produktion + Netzbezug + Batteriebewegung - Einspeisung;\nmsgHausverbrauch = { payload: Hausverbrauch };\nreturn msgHausverbrauch;","outputs":1,"noerr":0,"x":880,"y":4820,"wires":[["2f862dc6.aa0ae2"]]},{"id":"2f862dc6.aa0ae2","type":"function","z":"fd6d95c1.d70ae8","name":"Vorzeichen +/-","func":"var wert = msg.payload\n\nif (wert < 0){\nreturn {payload:-wert};\n}\nif (wert >= 0){\nreturn {payload:wert};\n}\n\n\n\n","outputs":1,"noerr":0,"x":1120,"y":4820,"wires":[["a056a1a9.437ef","1a388ee4.0cd9a9","d9c8af72.d91f38"]]},{"id":"a056a1a9.437ef","type":"function","z":"fd6d95c1.d70ae8","name":"Wert  an EM","func":"var wert = msg.payload\n\nnode.send({payload:{\"attribute\":{\"id\":724,\"value\":msg.payload}}})\n","outputs":1,"noerr":0,"x":1310,"y":4820,"wires":[["ef7ae323.09ab38"]]},{"id":"3ea6240c.2929e4","type":"inject","z":"fd6d95c1.d70ae8","name":"15s Trigger Berechnung Tageseinspeisung","topic":"","payload":"","payloadType":"date","repeat":"15","crontab":"","once":false,"onceDelay":0.1,"x":610,"y":4380,"wires":[["a18facb6.e6ee3"]]},{"id":"27389649.a55c6a","type":"comment","z":"fd6d95c1.d70ae8","name":"Zustände -> Attribute.ID","info":"282=Netzbezug\n283=Einspeisung\n284=Verbrauch\n285=Entladung\n286=Ladung\n287=Ladezustand\n288=Produktion","x":310,"y":4340,"wires":[]},{"id":"cd9756fc.7715c8","type":"comment","z":"fd6d95c1.d70ae8","name":"Summen","info":"729 = Verbrauch\n730 = Produktion\n731 = Netzbezug\n732 = Einspeisung\n733 = Speicher Ladung\n734 = Speicher Entladung\n","x":260,"y":4380,"wires":[]},{"id":"a18facb6.e6ee3","type":"function","z":"fd6d95c1.d70ae8","name":"Berechnung Tageseinspeisung","func":"var Einspeisung = global.get(\"Einspeisung\");\nvar SummeEinspeisung = global.get(\"SummeEinspeisung\");\nvar Tageseinspeisung;\nvar msgTageseinspeisung;\nTageseinspeisung = (Einspeisung/240) + SummeEinspeisung;\nmsgTageseinspeisung = { payload: Tageseinspeisung };\nreturn msgTageseinspeisung;","outputs":1,"noerr":0,"x":950,"y":4380,"wires":[["af8b9368.0f059"]]},{"id":"af8b9368.0f059","type":"function","z":"fd6d95c1.d70ae8","name":"SMA -> Variable SummeEinspeisung -> Addition","func":"global.set(\"SummeEinspeisung\",msg.payload);\nreturn msg;","outputs":1,"noerr":0,"x":1300,"y":4380,"wires":[["55cada4d.d44184"]]},{"id":"55cada4d.d44184","type":"function","z":"fd6d95c1.d70ae8","name":"Filter","func":"var leistung = (parseInt(msg.payload)/1000).toFixed(1);\n//var leistung = tempmilli/1000;\nmsg.payload = leistung;\nreturn msg;","outputs":1,"noerr":0,"x":1570,"y":4380,"wires":[["6a8fefb0.9d3c","3eecc913.d398de"]]},{"id":"6a8fefb0.9d3c","type":"function","z":"fd6d95c1.d70ae8","name":"Wert  an EM","func":"var wert = msg.payload\n\nnode.send({payload:{\"attribute\":{\"id\":732,\"value\":Number(msg.payload)}}})\n","outputs":1,"noerr":0,"x":1730,"y":4380,"wires":[["ef7ae323.09ab38"]]},{"id":"32c81ae7.0cdd3e","type":"inject","z":"fd6d95c1.d70ae8","name":"15s Trigger Berechnung Tagesverbrauch","topic":"","payload":"","payloadType":"date","repeat":"15","crontab":"","once":false,"onceDelay":0.1,"x":780,"y":4760,"wires":[["ff3680e0.7b8538"]]},{"id":"ff3680e0.7b8538","type":"function","z":"fd6d95c1.d70ae8","name":"Berechnung Tagesverbrauch","func":"var Momentanverbrauch = global.get(\"Momentanverbrauch\");\nvar Summe = global.get(\"Summe\");\nvar Tagesverbrauch;\nvar msgTagesverbrauch;\nTagesverbrauch = (Momentanverbrauch/240) + Summe;\nmsgTagesverbrauch = { payload: Tagesverbrauch };\nreturn msgTagesverbrauch;","outputs":1,"noerr":0,"x":1100,"y":4760,"wires":[["f87ff857.51837"]]},{"id":"f87ff857.51837","type":"function","z":"fd6d95c1.d70ae8","name":"SMA -> Variable Summe -> Addition","func":"global.set(\"Summe\",msg.payload);\nreturn msg;","outputs":1,"noerr":0,"x":1570,"y":4760,"wires":[["8fd121b1.b5cbb8"]]},{"id":"8fd121b1.b5cbb8","type":"function","z":"fd6d95c1.d70ae8","name":"Filter","func":"var leistung = (parseInt(msg.payload)/1000).toFixed(1);\n//var leistung = tempmilli/1000;\nmsg.payload = leistung;\nreturn msg;","outputs":1,"noerr":0,"x":1810,"y":4760,"wires":[["a84d687f.1943b","4b238917.3556f8"]]},{"id":"a84d687f.1943b","type":"function","z":"fd6d95c1.d70ae8","name":"Wert  an EM","func":"var wert = msg.payload\n\nnode.send({payload:{\"attribute\":{\"id\":729,\"value\":Number(msg.payload)}}})\n","outputs":1,"noerr":0,"x":1970,"y":4760,"wires":[["ef7ae323.09ab38"]]},{"id":"8eb3ef23.af869","type":"modbustcp-server","z":"","name":"Batterie Ladung","host":"192.168.1.186","port":"502","unit_id":"3","reconnecttimeout":"1"},{"id":"38eec1f5.1e71ee","type":"modbustcp-server","z":"","name":"STP","host":"192.168.1.185","port":"502","unit_id":"3","reconnecttimeout":"1"}]

Danke.

Nun bekomme ich leider folgende Meldung:

socket error: Error: connect ETIMEDOUT 192.168.2.108:502

über die normale IP komme ich drauf und kann mich anmelden.
Und in node red hatte ich auch schonmal ne Verbindung. Wieso geht das auf einmal nicht mehr??

Was kann sich nun geändert haben? :face_with_raised_eyebrow:

Ok…
Ich gehe mal davon aus, dass Modbus TCP korrekt an den WRs aktiviert ist und Port 502 freigegeben ist.

Ich würde meine Modbus Nodes löschen und dann deine neu anlegen und deine Daten eintragen:

Selbstverständlich. Die Verbindung hat ja auch schon mal funktioniert. Warum jetzt nicht mehr, keine Ahnung.
Habe sogar den WR vom Speicher gestern Abend neu gestartet, in der Hoffnung, dass es was bringt - leider nicht.

Gerade habe ich einfach mal die Modbus TCP Freigabe ausgeschaltet und wieder eingeschaltet. Nun scheint es zu klappen - komisch…aber na gut. :thinking: :crazy_face:

Die Freude hat nicht lange gehalten.
Vorhin war die Verbindung zum WR vom Speicher wieder unterbrochen…alles mögliche versucht - keine Besserung.
Irgendwann habe ich meinen Router (Speedport) neu gestartet. Danach sofort wieder Verbindung gehabt.

15 Minuten später das gleiche Spiel.

Jemand ne Idee, woran das liegen kann?

schon mal ein Firmware Updates am WR gemacht? Mein neuer (diese Woche installiert) wurde mit der FIrmware 1.1 ausgeliefert, aktuell ist die 3.10…

aktuelle Firmware ist drauf…

Heute hats sogar den ganzen Tag gehalten… :partying_face:

1 „Gefällt mir“

@medicus07 wie gehst du mit der Einspeisung um? Schaltest du bei Einspeisung >x diverse Verbraucher automatisch ein, um z.B. Akkus zu laden? Oder „verpufft“ das bei dir?
Ich würde gerne bei Einspeisung diverse Geräte automatisch einschalten lassen, teilweise mit gewisser Laufzeit. Bekomme das über Homegramme leider nur bedingt hin.
Oder geht da auch was über node red?

Hallo
Ich würde mir diesen Flow wünschen :wink:
Wärst du bitte so nett und stellst ihn zur Verfügung.
Vielen Dank
Grüße ausm Süden

Servus,

welchen Flow meinst du genau?

Hab mal meinen Allgemeinen mit den Basiswerten zusammen gestellt:

[{"id":"aef020b5.880fe8","type":"inject","z":"c075b1b4.3c9f98","name":"Abfrage SI","topic":"","payload":"[{\"name\":\"Batterieladung\",\"topic\":\"Batterieladung\",\"dataType\":\"FC3\",\"address\":30845,\"quantity\":2,\"interval\":15000,\"ieeeType\":\"off\",\"ieeeBE\":true},{\"name\":\"Batteriebewegung\",\"topic\":\"Batteriebewegung\",\"dataType\":\"FC3\",\"address\":30775,\"quantity\":2,\"interval\":15000,\"ieeeType\":\"off\",\"ieeeBE\":true},{\"name\":\"Netzbezug\",\"topic\":\"Netzbezug\",\"dataType\":\"FC3\",\"address\":30865,\"quantity\":2,\"interval\":15000,\"ieeeType\":\"off\",\"ieeeBE\":true},{\"name\":\"Einspeisung\",\"topic\":\"Einspeisung\",\"dataType\":\"FC3\",\"address\":30867,\"quantity\":2,\"interval\":15000,\"ieeeType\":\"off\",\"ieeeBE\":true},{\"name\":\"Tagesbezug\",\"topic\":\"Tagesbezug\",\"dataType\":\"FC3\",\"address\":30577,\"quantity\":2,\"interval\":15000,\"ieeeType\":\"off\",\"ieeeBE\":true}]","payloadType":"json","repeat":"1800","crontab":"","once":true,"onceDelay":0.1,"x":210,"y":3660,"wires":[["49c748b3.b6ca3"]]},{"id":"dd943c93.c4c28","type":"inject","z":"c075b1b4.3c9f98","name":"Abfrage STP","topic":"","payload":"[{\"name\":\"PV-Erzeugung\",\"topic\":\"PV-Erzeugung\",\"dataType\":\"FC3\",\"address\":30775,\"quantity\":2,\"interval\":15000,\"ieeeType\":\"off\",\"ieeeBE\":true},{\"name\":\"Tagesertrag\",\"topic\":\"Tagesertrag\",\"dataType\":\"FC3\",\"address\":30537,\"quantity\":2,\"interval\":15000,\"ieeeType\":\"off\",\"ieeeBE\":true}]","payloadType":"json","repeat":"1800","crontab":"","once":true,"onceDelay":0.1,"x":220,"y":3700,"wires":[["99781e07.6b0e18"]]},{"id":"49c748b3.b6ca3","type":"modbustcp-read","z":"c075b1b4.3c9f98","name":"SI","topic":"","dataType":"HoldingRegister","adr":"30845","quantity":"2","rate":"0","rateUnit":"s","server":"8eb3ef23.af869","ieeeType":"off","ieeeBE":"true","x":370,"y":3660,"wires":[["e6086c02.cae98"]]},{"id":"99781e07.6b0e18","type":"modbustcp-read","z":"c075b1b4.3c9f98","name":"STP","topic":"","dataType":"HoldingRegister","adr":"30775","quantity":"2","rate":"0","rateUnit":"s","server":"38eec1f5.1e71ee","ieeeType":"off","ieeeBE":"true","x":370,"y":3780,"wires":[["409043d4.fef3b4"]]},{"id":"e6086c02.cae98","type":"switch","z":"c075b1b4.3c9f98","name":"","property":"topic","propertyType":"msg","rules":[{"t":"eq","v":"Tagesbezug","vt":"str"},{"t":"eq","v":"Batterieladung","vt":"str"},{"t":"eq","v":"Batteriebewegung","vt":"str"},{"t":"eq","v":"Netzbezug","vt":"str"},{"t":"eq","v":"Einspeisung","vt":"str"}],"checkall":"true","repair":false,"outputs":5,"x":510,"y":3680,"wires":[["5c9205f2.5ffa54"],["3569f72.9438508"],["54fa5d6b.40613c"],["9870b2ad.af663"],["6e45cd9f.9c24e4"]]},{"id":"409043d4.fef3b4","type":"switch","z":"c075b1b4.3c9f98","name":"","property":"topic","propertyType":"msg","rules":[{"t":"eq","v":"PV-Erzeugung","vt":"str"},{"t":"eq","v":"Tagesertrag","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":510,"y":3780,"wires":[["3dc47e3d.b264b2"],["fdb7f655.96663"]]},{"id":"5c9205f2.5ffa54","type":"function","z":"c075b1b4.3c9f98","name":"Filter","func":"var leistung = (parseInt(msg.payload[1])/1000).toFixed(1);\n//var leistung = tempmilli/1000;\nmsg.payload = leistung;\nreturn msg;","outputs":1,"noerr":0,"x":690,"y":3620,"wires":[["e3044045.42bfb8"]]},{"id":"3569f72.9438508","type":"function","z":"c075b1b4.3c9f98","name":"Filter","func":"return{payload:msg.payload[1]}\n","outputs":1,"noerr":0,"x":690,"y":3660,"wires":[["46cac54.b0fa6bc"]]},{"id":"54fa5d6b.40613c","type":"function","z":"c075b1b4.3c9f98","name":"Filter","func":"msg.payload = msg.payload[1] - msg.payload[0];\nreturn msg;","outputs":1,"noerr":0,"x":690,"y":3700,"wires":[["3e504f12.69794","231aa08c.630aa8","972b1552.6c81b"]]},{"id":"9870b2ad.af663","type":"function","z":"c075b1b4.3c9f98","name":"Filter","func":"return{payload:msg.payload[1]}","outputs":1,"noerr":0,"x":690,"y":3740,"wires":[["456218d6.d3dab8","bfd5f8f7.ccf82"]]},{"id":"6e45cd9f.9c24e4","type":"function","z":"c075b1b4.3c9f98","name":"Filter","func":"return{payload:msg.payload[1]}","outputs":1,"noerr":0,"x":690,"y":3780,"wires":[["7f9c47e0.6a72f8","4244f436.5202d4"]]},{"id":"3dc47e3d.b264b2","type":"function","z":"c075b1b4.3c9f98","name":"Filter","func":"return{payload:msg.payload[1]}","outputs":1,"noerr":0,"x":690,"y":3820,"wires":[["d776f2ca.c39548","f62a2d6d.5b0d58"]]},{"id":"fdb7f655.96663","type":"function","z":"c075b1b4.3c9f98","name":"Filter","func":"return{payload:msg.payload[1]}","outputs":1,"noerr":0,"x":690,"y":3860,"wires":[["436f9c0f.23f40c"]]},{"id":"436f9c0f.23f40c","type":"function","z":"c075b1b4.3c9f98","name":"Wert  an EM","func":"var wert = msg.payload\n\nnode.send({payload:{\"attribute\":{\"id\":730,\"value\":Number(msg.payload)}}})\n","outputs":1,"noerr":0,"x":850,"y":3860,"wires":[["62fd475e.78ef"]]},{"id":"d776f2ca.c39548","type":"function","z":"c075b1b4.3c9f98","name":"Wert  an EM","func":"var wert = msg.payload\n\nnode.send({payload:{\"attribute\":{\"id\":728,\"value\":msg.payload}}})\n","outputs":1,"noerr":0,"x":850,"y":3820,"wires":[["62fd475e.78ef"]]},{"id":"7f9c47e0.6a72f8","type":"function","z":"c075b1b4.3c9f98","name":"Wert  an EM","func":"var wert = msg.payload\n\nnode.send({payload:{\"attribute\":{\"id\":723,\"value\":msg.payload}}})\n","outputs":1,"noerr":0,"x":850,"y":3780,"wires":[["62fd475e.78ef"]]},{"id":"456218d6.d3dab8","type":"function","z":"c075b1b4.3c9f98","name":"Wert  an EM","func":"var wert = msg.payload\n\nnode.send({payload:{\"attribute\":{\"id\":722,\"value\":msg.payload}}})\n","outputs":1,"noerr":0,"x":850,"y":3740,"wires":[["62fd475e.78ef"]]},{"id":"3e504f12.69794","type":"function","z":"c075b1b4.3c9f98","name":"Wert  an EM","func":"var wert = msg.payload\nvar msg1 = {payload:{\"attribute\":{ \"id\": 726, \"value\":-wert}}};\nvar msg2 = {payload:{\"attribute\":{ \"id\": 725, \"value\": 0 }}};\nvar msg3 = {payload:{\"attribute\":{ \"id\": 725, \"value\":wert}}};\nvar msg4 = {payload:{\"attribute\":{ \"id\": 726, \"value\": 0 }}};\n\nif (wert < 0){\nreturn [[msg1,msg2]]\n}\nif (wert >= 0){\nreturn [[msg3,msg4]]\n}","outputs":1,"noerr":0,"x":850,"y":3700,"wires":[["62fd475e.78ef"]]},{"id":"46cac54.b0fa6bc","type":"function","z":"c075b1b4.3c9f98","name":"Wert  an EM","func":"var wert = msg.payload\n\nnode.send({payload:{\"attribute\":{\"id\":727,\"value\":msg.payload}}})\n","outputs":1,"noerr":0,"x":850,"y":3660,"wires":[["62fd475e.78ef"]]},{"id":"e3044045.42bfb8","type":"function","z":"c075b1b4.3c9f98","name":"Wert  an EM","func":"var wert = msg.payload\n\nnode.send({payload:{\"attribute\":{\"id\":731,\"value\":Number(msg.payload)}}})\n","outputs":1,"noerr":0,"x":850,"y":3620,"wires":[["62fd475e.78ef"]]},{"id":"62fd475e.78ef","type":"homeeDevice","z":"c075b1b4.3c9f98","virtual-homee":"","name":"hEM","nodeId":"720","showNodeId":false,"profile":"38","icon":"default","attributes":"[{\"id\":720,\"node_id\":720,\"instance\":0,\"minimum\":0,\"maximum\":10000,\"current_value\":0,\"target_value\":0,\"last_value\":0,\"unit\":\"text\",\"step_value\":1,\"editable\":0,\"type\":84,\"state\":1,\"last_changed\":1572785482,\"changed_by\":1,\"changed_by_id\":0,\"based_on\":1,\"data\":\"HM0000422\"},{\"id\":721,\"node_id\":720,\"instance\":0,\"minimum\":0,\"maximum\":10000,\"current_value\":0,\"target_value\":0,\"last_value\":0,\"unit\":\"text\",\"step_value\":1,\"editable\":0,\"type\":45,\"state\":1,\"last_changed\":1572785482,\"changed_by\":1,\"changed_by_id\":0,\"based_on\":1,\"data\":\"11.4.11\"},{\"id\":722,\"node_id\":720,\"instance\":0,\"minimum\":0,\"maximum\":50000,\"current_value\":1700,\"target_value\":1700,\"last_value\":0,\"unit\":\"W\",\"step_value\":100,\"editable\":0,\"type\":264,\"state\":1,\"last_changed\":1572785482,\"changed_by\":1,\"changed_by_id\":0,\"based_on\":4,\"data\":\"\"},{\"id\":723,\"node_id\":720,\"instance\":0,\"minimum\":0,\"maximum\":50000,\"current_value\":2500,\"target_value\":2500,\"last_value\":0,\"unit\":\"W\",\"step_value\":100,\"editable\":0,\"type\":265,\"state\":1,\"last_changed\":1572785482,\"changed_by\":1,\"changed_by_id\":0,\"based_on\":4,\"data\":\"\"},{\"id\":724,\"node_id\":720,\"instance\":0,\"minimum\":0,\"maximum\":50000,\"current_value\":258,\"target_value\":258,\"last_value\":0,\"unit\":\"W\",\"step_value\":100,\"editable\":0,\"type\":267,\"state\":1,\"last_changed\":1572785482,\"changed_by\":1,\"changed_by_id\":0,\"based_on\":4,\"data\":\"\"},{\"id\":725,\"node_id\":720,\"instance\":0,\"minimum\":0,\"maximum\":50000,\"current_value\":200,\"target_value\":200,\"last_value\":0,\"unit\":\"W\",\"step_value\":100,\"editable\":0,\"type\":268,\"state\":1,\"last_changed\":1572785482,\"changed_by\":1,\"changed_by_id\":0,\"based_on\":4,\"data\":\"\"},{\"id\":726,\"node_id\":720,\"instance\":0,\"minimum\":0,\"maximum\":50000,\"current_value\":980,\"target_value\":980,\"last_value\":0,\"unit\":\"W\",\"step_value\":100,\"editable\":0,\"type\":269,\"state\":1,\"last_changed\":1572785482,\"changed_by\":1,\"changed_by_id\":0,\"based_on\":4,\"data\":\"\"},{\"id\":727,\"node_id\":720,\"instance\":0,\"minimum\":0,\"maximum\":100,\"current_value\":37,\"target_value\":37,\"last_value\":0,\"unit\":\"%25\",\"step_value\":1,\"editable\":0,\"type\":273,\"state\":1,\"last_changed\":1572785482,\"changed_by\":1,\"changed_by_id\":0,\"based_on\":4,\"data\":\"\"},{\"id\":728,\"node_id\":720,\"instance\":0,\"minimum\":0,\"maximum\":50000,\"current_value\":1180,\"target_value\":1180,\"last_value\":1240,\"unit\":\"W\",\"step_value\":100,\"editable\":0,\"type\":266,\"state\":1,\"last_changed\":1572785663,\"changed_by\":1,\"changed_by_id\":0,\"based_on\":4,\"data\":\"\"},{\"id\":729,\"node_id\":720,\"instance\":0,\"minimum\":0,\"maximum\":9999999,\"current_value\":0,\"target_value\":0,\"last_value\":0,\"unit\":\"kWh\",\"step_value\":1,\"editable\":0,\"type\":274,\"state\":1,\"last_changed\":1572785482,\"changed_by\":1,\"changed_by_id\":0,\"based_on\":4,\"data\":\"\"},{\"id\":730,\"node_id\":720,\"instance\":0,\"minimum\":0,\"maximum\":9999999,\"current_value\":0,\"target_value\":0,\"last_value\":0,\"unit\":\"kWh\",\"step_value\":1,\"editable\":0,\"type\":275,\"state\":1,\"last_changed\":1572785482,\"changed_by\":1,\"changed_by_id\":0,\"based_on\":4,\"data\":\"\"},{\"id\":731,\"node_id\":720,\"instance\":0,\"minimum\":0,\"maximum\":9999999,\"current_value\":0,\"target_value\":0,\"last_value\":0,\"unit\":\"kWh\",\"step_value\":1,\"editable\":0,\"type\":276,\"state\":1,\"last_changed\":1572785482,\"changed_by\":1,\"changed_by_id\":0,\"based_on\":4,\"data\":\"\"},{\"id\":732,\"node_id\":720,\"instance\":0,\"minimum\":0,\"maximum\":9999999,\"current_value\":0,\"target_value\":0,\"last_value\":0,\"unit\":\"kWh\",\"step_value\":1,\"editable\":0,\"type\":277,\"state\":1,\"last_changed\":1572785482,\"changed_by\":1,\"changed_by_id\":0,\"based_on\":4,\"data\":\"\"},{\"id\":733,\"node_id\":720,\"instance\":0,\"minimum\":0,\"maximum\":9999999,\"current_value\":0,\"target_value\":0,\"last_value\":0,\"unit\":\"kWh\",\"step_value\":1,\"editable\":0,\"type\":278,\"state\":6,\"last_changed\":1572785482,\"changed_by\":1,\"changed_by_id\":0,\"based_on\":4,\"data\":\"\"},{\"id\":734,\"node_id\":720,\"instance\":0,\"minimum\":0,\"maximum\":9999999,\"current_value\":0,\"target_value\":0,\"last_value\":0,\"unit\":\"kWh\",\"step_value\":1,\"editable\":0,\"type\":279,\"state\":6,\"last_changed\":1572785482,\"changed_by\":1,\"changed_by_id\":0,\"based_on\":4,\"data\":\"\"}]","x":1250,"y":3700,"wires":[[]]},{"id":"231aa08c.630aa8","type":"function","z":"c075b1b4.3c9f98","name":"minus","func":"var wert = msg.payload\n\nreturn {payload:-wert};\n\n","outputs":1,"noerr":0,"x":190,"y":4000,"wires":[["e174422.a1cedc"]]},{"id":"972b1552.6c81b","type":"function","z":"c075b1b4.3c9f98","name":"SMA -> Variable Batteriebewegung","func":"global.set(\"Batteriebewegung\",msg.payload);\nreturn msg;","outputs":1,"noerr":0,"x":420,"y":3960,"wires":[[]]},{"id":"e174422.a1cedc","type":"function","z":"c075b1b4.3c9f98","name":"SMA -> Variable Batterieentladung","func":"global.set(\"Batterieentladung\",msg.payload);\nreturn msg;","outputs":1,"noerr":0,"x":420,"y":4000,"wires":[[]]},{"id":"bfd5f8f7.ccf82","type":"function","z":"c075b1b4.3c9f98","name":"SMA -> Variable Netzbezug","func":"global.set(\"Netzbezug\",msg.payload);\nreturn msg;","outputs":1,"noerr":0,"x":400,"y":4040,"wires":[[]]},{"id":"4244f436.5202d4","type":"function","z":"c075b1b4.3c9f98","name":"SMA -> Variable Einspeisung","func":"global.set(\"Einspeisung\",msg.payload);\nreturn msg;","outputs":1,"noerr":0,"x":400,"y":4080,"wires":[[]]},{"id":"f62a2d6d.5b0d58","type":"function","z":"c075b1b4.3c9f98","name":"SMA -> Variable PV-Produktion","func":"global.set(\"Produktion\",msg.payload);\nreturn msg;","outputs":1,"noerr":0,"x":410,"y":4120,"wires":[[]]},{"id":"e08c7bdf.c39fa8","type":"inject","z":"c075b1b4.3c9f98","name":"","topic":"","payload":"","payloadType":"date","repeat":"15","crontab":"","once":true,"onceDelay":0.1,"x":730,"y":4000,"wires":[["cc7bbe77.f66b68"]]},{"id":"cc7bbe77.f66b68","type":"function","z":"c075b1b4.3c9f98","name":"Berechnung Hausverbrauch","func":"var Einspeisung = global.get(\"Einspeisung\");\nvar Produktion = global.get(\"Produktion\");\nvar Netzbezug = global.get(\"Netzbezug\");\nvar Batteriebewegung = global.get(\"Batteriebewegung\");\nvar Hausverbrauch;\nvar msgHausverbrauch;\nHausverbrauch = Produktion + Netzbezug + Batteriebewegung - Einspeisung;\nmsgHausverbrauch = { payload: Hausverbrauch };\nreturn msgHausverbrauch;","outputs":1,"noerr":0,"x":960,"y":4000,"wires":[["cf1bc7e2.e5d56"]]},{"id":"cf1bc7e2.e5d56","type":"function","z":"c075b1b4.3c9f98","name":"Vorzeichen +/-","func":"var wert = msg.payload\n\nif (wert < 0){\nreturn {payload:-wert};\n}\nif (wert >= 0){\nreturn {payload:wert};\n}\n\n\n\n","outputs":1,"noerr":0,"x":1200,"y":4000,"wires":[["bee8c79f.fee7b"]]},{"id":"bee8c79f.fee7b","type":"function","z":"c075b1b4.3c9f98","name":"Wert  an EM","func":"var wert = msg.payload\n\nnode.send({payload:{\"attribute\":{\"id\":724,\"value\":msg.payload}}})\n","outputs":1,"noerr":0,"x":1390,"y":4000,"wires":[["62fd475e.78ef"]]},{"id":"8eb3ef23.af869","type":"modbustcp-server","z":"","name":"Batterie Ladung","host":"192.168.1.186","port":"502","unit_id":"3","reconnecttimeout":"1"},{"id":"38eec1f5.1e71ee","type":"modbustcp-server","z":"","name":"STP","host":"192.168.1.185","port":"502","unit_id":"3","reconnecttimeout":"1"}]
1 „Gefällt mir“

Prima.
Danke schön.

Hallo,
kann ich eigentlich auch einen string in den virtuellen homee füttern? Also von meiner Heizung über MQTT in einen virtuellen homee die Angabe dhw oder sogar umgewandelt in richtigen Text „Nur Warmwasser“.
Ich wäre dankbar für ein Hinweis wie ich das im virtuellen homee anlegen muss.
Grüße ausm sonnigen Süden

Ist zwar der falsche Thread (hier geht’s um PV-Anlagen via vhih), aber ja das geht.

Ok, das ist prima dass das geht. Könnte ich vielleicht ein Beispiel haben?
Die PV hab ich aus diesem Thread umgesetzt, vielen Dank nochmal an alle die hier ihre Arbeit teilen.
Wenn jemand Interesse an der PV hih ohne Speicher hat, hätte ich ein Flow…

Hallo @medicus07,

ich bin jetzt auch so weit und schmeiße den hEM bei mir raus. Deine Flow-Beispiele konnte ich problemlos auf meiner Synology-Docker-Box übernehmen. Ich setze nur einen kleinen STP ein und habe keine Batterie.
An welcher Stelle in deinem Flow findet die Berechnung der Einspeisung statt?
Ich versuche möglichst viel des erzeugten Stroms in meine Wärmepumpe zu jagen (Warmwasserbereitung) und hatte das bislang mit dem hEM ganz gut hinbekommen.
Mit dem Flow bekomme ich aber dauerhaft Werte angezeigt, die bei mir nicht passen.


Aktuell erzeugt meine PV-Anlage ca. 800W, deckt sich mit dem Wert „Produktion“. Die Werte für Entladung und Ladezustand muss ich rausbekommen bzw. aus dem Flow entfernen. Aber an welcher Stelle?

Bei mir sieht das so aus:

[{"id":"b4587306.426c9","type":"mqtt out","z":"877e4a56.6f339","name":"Erzeugung","topic":"mqtt/0/payload/power","qos":"1","retain":"","broker":"e1ea96aa.be39f","x":890,"y":480,"wires":[]},{"id":"194c32df.5740dd","type":"mqtt out","z":"877e4a56.6f339","name":"Einpeisung","topic":"mqtt/0/payload/grid_feedin","qos":"1","retain":"","broker":"e1ea96aa.be39f","x":890,"y":300,"wires":[]},{"id":"7888e95f.b7a1a8","type":"mqtt out","z":"877e4a56.6f339","name":"Bezug","topic":"mqtt/0/payload/grid_consumption","qos":"1","retain":"","broker":"e1ea96aa.be39f","x":870,"y":160,"wires":[]},{"id":"9a4eb93e.f1eb4","type":"ui_gauge","z":"877e4a56.6f339","name":"Bezug","group":"1e1959c8.19dbee","order":1,"width":0,"height":0,"gtype":"gage","title":"Bezug","label":"W","format":"{{value}}","min":0,"max":"5000","colors":["#00b500","#e6e600","#ca3838"],"seg1":"200","seg2":"3000","x":870,"y":220,"wires":[]},{"id":"a8045bb.7129ca8","type":"ui_gauge","z":"877e4a56.6f339","name":"Erzeugung","group":"1e1959c8.19dbee","order":1,"width":0,"height":0,"gtype":"gage","title":"Erzeugung","label":"W","format":"{{value}}","min":0,"max":"5000","colors":["#ff2600","#e6e600","#00fa00"],"seg1":"200","seg2":"3000","x":890,"y":540,"wires":[]},{"id":"a4299551.6d2378","type":"ui_gauge","z":"877e4a56.6f339","name":"Einspeisung","group":"1e1959c8.19dbee","order":1,"width":0,"height":0,"gtype":"gage","title":"Einspeisung","label":"W","format":"{{value}}","min":0,"max":"4000","colors":["#ff2600","#e6e600","#00fa00"],"seg1":"200","seg2":"1500","x":890,"y":360,"wires":[]},{"id":"79e5590d.972218","type":"inject","z":"877e4a56.6f339","name":"Abfrage SI","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"1800","crontab":"","once":true,"onceDelay":0.1,"topic":"","payload":"[{\"name\":\"PV-Erzeugung\",\"topic\":\"PV-Erzeugung\",\"dataType\":\"FC3\",\"address\":30775,\"quantity\":2,\"interval\":15000,\"ieeeType\":\"off\",\"ieeeBE\":true},{\"name\":\"Tagesertrag\",\"topic\":\"Tagesertrag\",\"dataType\":\"FC3\",\"address\":30537,\"quantity\":2,\"interval\":15000,\"ieeeType\":\"off\",\"ieeeBE\":true},{\"name\":\"Netzbezug\",\"topic\":\"Netzbezug\",\"dataType\":\"FC3\",\"address\":30865,\"quantity\":2,\"interval\":15000,\"ieeeType\":\"off\",\"ieeeBE\":true},{\"name\":\"Einspeisung\",\"topic\":\"Einspeisung\",\"dataType\":\"FC3\",\"address\":30867,\"quantity\":2,\"interval\":15000,\"ieeeType\":\"off\",\"ieeeBE\":true},{\"name\":\"Tagesbezug\",\"topic\":\"Tagesbezug\",\"dataType\":\"FC3\",\"address\":30577,\"quantity\":2,\"interval\":15000,\"ieeeType\":\"off\",\"ieeeBE\":true}]","payloadType":"json","x":150,"y":120,"wires":[["3e5de599.cd17da"]]},{"id":"3e5de599.cd17da","type":"modbustcp-read","z":"877e4a56.6f339","name":"SMA","topic":"","dataType":"HoldingRegister","adr":"30845","quantity":"2","rate":"25","rateUnit":"s","server":"210e638a.28e284","ieeeType":"off","ieeeBE":"true","x":270,"y":340,"wires":[["e82897fb.ca601"]]},{"id":"e82897fb.ca601","type":"switch","z":"877e4a56.6f339","name":"","property":"topic","propertyType":"msg","rules":[{"t":"eq","v":"Tagesbezug","vt":"str"},{"t":"eq","v":"Netzbezug","vt":"str"},{"t":"eq","v":"Einspeisung","vt":"str"},{"t":"eq","v":"Tagesertrag","vt":"str"},{"t":"eq","v":"PV-Erzeugung","vt":"str"}],"checkall":"true","repair":false,"outputs":5,"x":410,"y":340,"wires":[["ec8a7cd9.d73e28"],["c586bda5.756268"],["fd33659f.adfda8"],["522b590d.b33548"],["4c7e1df.ba90f64"]]},{"id":"ec8a7cd9.d73e28","type":"function","z":"877e4a56.6f339","name":"Filter","func":"var leistung = (parseInt(msg.payload[1])/1000).toFixed(1);\n//var leistung = tempmilli/1000;\nmsg.payload = leistung;\nreturn msg;","outputs":1,"noerr":0,"x":630,"y":260,"wires":[["86943c35.59d55"]]},{"id":"c586bda5.756268","type":"function","z":"877e4a56.6f339","name":"Filter","func":"return{payload:msg.payload[1]}","outputs":1,"noerr":0,"x":630,"y":300,"wires":[["3498f87f.393938","7888e95f.b7a1a8","9a4eb93e.f1eb4"]]},{"id":"fd33659f.adfda8","type":"function","z":"877e4a56.6f339","name":"Filter","func":"return{payload:msg.payload[1]}","outputs":1,"noerr":0,"initialize":"","finalize":"","x":630,"y":340,"wires":[["f1732f75.79a1a8","194c32df.5740dd","a4299551.6d2378"]]},{"id":"4c7e1df.ba90f64","type":"function","z":"877e4a56.6f339","name":"Filter","func":"return{payload:msg.payload[1]}","outputs":1,"noerr":0,"x":630,"y":420,"wires":[["df64210.1c79a6","b4587306.426c9","a8045bb.7129ca8"]]},{"id":"522b590d.b33548","type":"function","z":"877e4a56.6f339","name":"Filter","func":"return{payload:msg.payload[1]}","outputs":1,"noerr":0,"x":630,"y":380,"wires":[["3be90cf1.ac67ec"]]},{"id":"3be90cf1.ac67ec","type":"function","z":"877e4a56.6f339","name":"Wert  an EM","func":"var wert = msg.payload\n\nnode.send({payload:{\"attribute\":{\"id\":730,\"value\":Number(msg.payload)}}})\n","outputs":1,"noerr":0,"initialize":"","finalize":"","x":890,"y":440,"wires":[["5875400f.63b48"]]},{"id":"f1732f75.79a1a8","type":"function","z":"877e4a56.6f339","name":"Wert  an EM","func":"var wert = msg.payload\n\nnode.send({payload:{\"attribute\":{\"id\":723,\"value\":msg.payload}}})\n","outputs":1,"noerr":0,"initialize":"","finalize":"","x":890,"y":400,"wires":[["5875400f.63b48"]]},{"id":"df64210.1c79a6","type":"function","z":"877e4a56.6f339","name":"Wert  an EM","func":"var wert = msg.payload\n\nnode.send({payload:{\"attribute\":{\"id\":728,\"value\":msg.payload}}})\n","outputs":1,"noerr":0,"x":890,"y":580,"wires":[["5875400f.63b48"]]},{"id":"3498f87f.393938","type":"function","z":"877e4a56.6f339","name":"Wert  an EM","func":"var wert = msg.payload\n\nnode.send({payload:{\"attribute\":{\"id\":722,\"value\":msg.payload}}})\n","outputs":1,"noerr":0,"initialize":"","finalize":"","x":890,"y":260,"wires":[["5875400f.63b48"]]},{"id":"86943c35.59d55","type":"function","z":"877e4a56.6f339","name":"Wert  an EM","func":"var wert = msg.payload\n\nnode.send({payload:{\"attribute\":{\"id\":731,\"value\":Number(msg.payload)}}})\n","outputs":1,"noerr":0,"initialize":"","finalize":"","x":890,"y":120,"wires":[["5875400f.63b48"]]},{"id":"5875400f.63b48","type":"homeeDevice","z":"877e4a56.6f339","virtual-homee":"","name":"PV","nodeId":"720","showNodeId":false,"profile":"38","icon":"default","attributes":[{"instance":0,"minimum":0,"maximum":50000,"current_value":1700,"target_value":1700,"last_value":0,"unit":"W","step_value":100,"editable":0,"state":1,"last_changed":1572785482,"changed_by":1,"changed_by_id":0,"based_on":4,"data":"","id":722,"type":264,"node_id":720},{"instance":0,"minimum":0,"maximum":50000,"current_value":2500,"target_value":2500,"last_value":0,"unit":"W","step_value":100,"editable":0,"state":1,"last_changed":1572785482,"changed_by":1,"changed_by_id":0,"based_on":4,"data":"","id":723,"type":265,"node_id":720},{"instance":0,"minimum":0,"maximum":50000,"current_value":258,"target_value":258,"last_value":0,"unit":"W","step_value":100,"editable":0,"state":1,"last_changed":1572785482,"changed_by":1,"changed_by_id":0,"based_on":4,"data":"","id":724,"type":267,"node_id":720},{"instance":0,"minimum":0,"maximum":50000,"current_value":1180,"target_value":1180,"last_value":1240,"unit":"W","step_value":100,"editable":0,"state":1,"last_changed":1572785663,"changed_by":1,"changed_by_id":0,"based_on":4,"data":"","id":728,"type":266,"node_id":720},{"instance":0,"minimum":0,"maximum":9999999,"current_value":0,"target_value":0,"last_value":0,"unit":"kWh","step_value":1,"editable":0,"state":1,"last_changed":1572785482,"changed_by":1,"changed_by_id":0,"based_on":4,"data":"","id":730,"type":275,"node_id":720},{"instance":0,"minimum":0,"maximum":9999999,"current_value":0,"target_value":0,"last_value":0,"unit":"kWh","step_value":1,"editable":0,"state":1,"last_changed":1572785482,"changed_by":1,"changed_by_id":0,"based_on":4,"data":"","id":731,"type":276,"node_id":720}],"statusTemplate":"","x":1110,"y":340,"wires":[[]]},{"id":"9fbea2dc.28ecc","type":"inject","z":"877e4a56.6f339","name":"","repeat":"15","crontab":"","once":true,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":150,"y":80,"wires":[["36cc0ae0.b6768e"]]},{"id":"36cc0ae0.b6768e","type":"function","z":"877e4a56.6f339","name":"Berechnung Hausverbrauch","func":"var Einspeisung = global.get(\"Einspeisung\");\nvar Produktion = global.get(\"Produktion\");\nvar Netzbezug = global.get(\"Netzbezug\");\nvar Hausverbrauch;\nvar msgHausverbrauch;\nHausverbrauch = Produktion + Netzbezug - Einspeisung;\nmsgHausverbrauch = { payload: Hausverbrauch };\nreturn msgHausverbrauch;","outputs":1,"noerr":0,"initialize":"","finalize":"","x":460,"y":80,"wires":[["71509743.9ff148"]]},{"id":"71509743.9ff148","type":"function","z":"877e4a56.6f339","name":"Vorzeichen +/-","func":"var wert = msg.payload\n\nif (wert < 0){\nreturn {payload:-wert};\n}\nif (wert >= 0){\nreturn {payload:wert};\n}\n\n\n\n","outputs":1,"noerr":0,"x":700,"y":80,"wires":[["a535bb4c.b75c4"]]},{"id":"a535bb4c.b75c4","type":"function","z":"877e4a56.6f339","name":"Wert  an EM","func":"var wert = msg.payload\n\nnode.send({payload:{\"attribute\":{\"id\":724,\"value\":msg.payload}}})\n","outputs":1,"noerr":0,"initialize":"","finalize":"","x":890,"y":80,"wires":[["5875400f.63b48"]]},{"id":"e1ea96aa.be39f","type":"mqtt-broker","z":"","name":"mqtt","broker":"192.168.178.5","port":"1883","tls":"","clientid":"","usetls":false,"compatmode":false,"keepalive":"60","cleansession":true,"birthTopic":"","birthQos":"0","birthRetain":"false","birthPayload":"","closeTopic":"","closeQos":"0","closeRetain":"false","closePayload":"","willTopic":"","willQos":"0","willRetain":"false","willPayload":""},{"id":"1e1959c8.19dbee","type":"ui_group","z":"","name":"Energie","tab":"6d682a04.c2b4dc","order":1,"disp":true,"width":"6","collapse":false},{"id":"210e638a.28e284","type":"modbustcp-server","z":"","name":"Wechselrichter","host":"192.168.178.30","port":"502","unit_id":"3","reconnecttimeout":"1"},{"id":"6d682a04.c2b4dc","type":"ui_tab","z":"","name":"Home","icon":"dashboard","order":1,"disabled":false,"hidden":false}]

Die Flows für die Anzeige aufm Dashboard können natürlich raus…

Du nutzt auch einen SMA Wechselrichter?!
Ich hab jetzt ähnliche Probleme wie @moviehunter

Löschen der Nodes brachte bislang keine Besserung. Modbus ist nach wie vor, unverändert an.