Du musst das noch das node-red-contrib-combine installieren. Da ist die statistic-node drin. Das mit dem Flattern habe ich bei mir nicht. Das kommt dann vielleicht von den unterschiedlichen Versionen?
Ich hab' mal weitergebaut: Ich kann nun die PV-Leistung verdrehen und den Hausverbrauch einstellen. Raus kommt wenig überraschend die Leistung am EVU-Punkt. Und ganz unten schon mal die Geamt-Ladeleistung der openWB.
Code: Alles auswählen
[{"id":"cf354afd.9bc818","type":"tab","label":"Haussimulation","disabled":false,"info":""},{"id":"5719608c.cb6d5","type":"ui_slider","z":"cf354afd.9bc818","name":"","label":"HV1","tooltip":"","group":"e4b1e54c.678138","order":2,"width":"4","height":"1","passthru":true,"outs":"all","topic":"HV1","topicType":"str","min":0,"max":"20","step":1,"className":"","x":270,"y":100,"wires":[["bbecace6.cf6118"]]},{"id":"4c4decd7.181c64","type":"ui_slider","z":"cf354afd.9bc818","name":"","label":"HV2","tooltip":"","group":"e4b1e54c.678138","order":4,"width":"4","height":"1","passthru":true,"outs":"all","topic":"HV2","topicType":"str","min":0,"max":"20","step":1,"className":"","x":270,"y":180,"wires":[["73c7b491.eca484"]]},{"id":"73c7b491.eca484","type":"ui_numeric","z":"cf354afd.9bc818","name":"n2","label":"","tooltip":"","group":"e4b1e54c.678138","order":5,"width":"2","height":"1","wrap":false,"passthru":true,"topic":"HV2","topicType":"str","format":"{{value}}","min":0,"max":"20","step":1,"className":"","x":410,"y":180,"wires":[["4c4decd7.181c64","61f39718.4707a"]]},{"id":"bbecace6.cf6118","type":"ui_numeric","z":"cf354afd.9bc818","name":"n1","label":"","tooltip":"","group":"e4b1e54c.678138","order":3,"width":"2","height":"1","wrap":false,"passthru":true,"topic":"HV1","topicType":"str","format":"{{value}}","min":0,"max":"20","step":1,"className":"","x":410,"y":100,"wires":[["5719608c.cb6d5","61f39718.4707a"]]},{"id":"73d4ae7a.9e5378","type":"ui_gauge","z":"cf354afd.9bc818","name":"","group":"e4b1e54c.678138","order":1,"width":0,"height":0,"gtype":"gage","title":"Hausverbrauch","label":"Watt","format":"{{value}}","min":0,"max":"13800","colors":["#00b500","#e6e600","#ca3838"],"seg1":"","seg2":"","className":"","x":1080,"y":180,"wires":[]},{"id":"33e16f4f.c097e8","type":"ui_slider","z":"cf354afd.9bc818","name":"","label":"HV3","tooltip":"","group":"e4b1e54c.678138","order":6,"width":"4","height":"1","passthru":true,"outs":"all","topic":"HV3","topicType":"str","min":0,"max":"20","step":1,"className":"","x":270,"y":260,"wires":[["c46e3ffe.11dc18"]]},{"id":"c46e3ffe.11dc18","type":"ui_numeric","z":"cf354afd.9bc818","name":"n3","label":"","tooltip":"","group":"e4b1e54c.678138","order":7,"width":"2","height":"1","wrap":false,"passthru":true,"topic":"HV3","topicType":"str","format":"{{value}}","min":0,"max":"20","step":1,"className":"","x":410,"y":260,"wires":[["33e16f4f.c097e8","61f39718.4707a"]]},{"id":"3b68517d.870aae","type":"inject","z":"cf354afd.9bc818","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":true,"onceDelay":0.1,"topic":"HV","payload":"0","payloadType":"num","x":90,"y":180,"wires":[["5719608c.cb6d5","4c4decd7.181c64","33e16f4f.c097e8","5fca2631.32d338"]]},{"id":"967fc91e.c1e34","type":"ui_slider","z":"cf354afd.9bc818","name":"","label":"PV","tooltip":"","group":"1de0097c.41aea7","order":2,"width":"4","height":"1","passthru":true,"outs":"all","topic":"PV","topicType":"str","min":0,"max":"13000","step":"100","className":"","x":270,"y":500,"wires":[["7ed00085.af4438"]]},{"id":"7ed00085.af4438","type":"ui_numeric","z":"cf354afd.9bc818","name":"PVn","label":"","tooltip":"","group":"1de0097c.41aea7","order":3,"width":"3","height":"1","wrap":false,"passthru":true,"topic":"PV","topicType":"str","format":"{{value}}","min":0,"max":"13000","step":"100","className":"","x":410,"y":500,"wires":[["967fc91e.c1e34","5fca2631.32d338","49e4bb93.e612c4"]]},{"id":"49e4bb93.e612c4","type":"ui_gauge","z":"cf354afd.9bc818","name":"","group":"1de0097c.41aea7","order":1,"width":0,"height":0,"gtype":"gage","title":"PV-Leistung","label":"Watt","format":"{{value}}","min":0,"max":"13000","colors":["#e6e600","#e6e600","#e6e600"],"seg1":"","seg2":"","className":"","x":1070,"y":500,"wires":[]},{"id":"a28ea702.28953","type":"ui_gauge","z":"cf354afd.9bc818","name":"","group":"5dcc2e5f.f76a9","order":8,"width":0,"height":0,"gtype":"gage","title":"Überschuss/Bezug","label":"Watt","format":"{{value}}","min":"-13800","max":"13800","colors":["#00f900","#00f900","#ff2600"],"seg1":"100","seg2":"100","className":"","x":1090,"y":300,"wires":[]},{"id":"61f39718.4707a","type":"combine-statistic","z":"cf354afd.9bc818","name":"","topic":"HV","operator":"sum","falsy":"include","defer":250,"timeout":0,"distinction":"topic","x":660,"y":180,"wires":[["1ac0d787.7324c8"]]},{"id":"5fca2631.32d338","type":"combine-delta","z":"cf354afd.9bc818","topic":"","topicA":"HV","topicB":"PV","name":"PV - HV","x":640,"y":320,"wires":[["a28ea702.28953"]]},{"id":"1ac0d787.7324c8","type":"function","z":"cf354afd.9bc818","name":"A * 230 > W","func":"msg.payload = msg.payload * 230;\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","x":850,"y":180,"wires":[["73d4ae7a.9e5378","5fca2631.32d338"]]},{"id":"e1fc2a5a.4cf05","type":"inject","z":"cf354afd.9bc818","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":true,"onceDelay":0.1,"topic":"PV","payload":"7200","payloadType":"num","x":100,"y":500,"wires":[["967fc91e.c1e34","5fca2631.32d338"]]},{"id":"ed5b83b7.d1883","type":"mqtt in","z":"cf354afd.9bc818","name":"Hausverbrauch","topic":"openWB/global/WAllChargePoints","qos":"2","datatype":"auto","broker":"978968c8.7b5238","x":120,"y":640,"wires":[["77fdf7a5.1417b"]]},{"id":"77fdf7a5.1417b","type":"ui_gauge","z":"cf354afd.9bc818","name":"","group":"9545499f.a61ca8","order":0,"width":0,"height":0,"gtype":"gage","title":"openWB","label":"watt","format":"{{value}}","min":0,"max":"11000","colors":["#00b500","#00b500","#00b500"],"seg1":"","seg2":"","className":"","x":430,"y":640,"wires":[]},{"id":"e4b1e54c.678138","type":"ui_group","name":"Hausverbrauch","tab":"744b5117.d18b28","order":2,"disp":false,"width":"7","collapse":false,"className":""},{"id":"1de0097c.41aea7","type":"ui_group","name":"PV Produkion","tab":"744b5117.d18b28","order":1,"disp":false,"width":"7","collapse":false,"className":""},{"id":"5dcc2e5f.f76a9","type":"ui_group","name":"Überschuss","tab":"744b5117.d18b28","order":3,"disp":false,"width":"7","collapse":false,"className":""},{"id":"978968c8.7b5238","type":"mqtt-broker","name":"OpenWB","broker":"192.168.8.11","port":"1883","clientid":"","usetls":false,"compatmode":false,"keepalive":"30","cleansession":true,"birthTopic":"","birthQos":"0","birthRetain":"false","birthPayload":"","closeTopic":"","closeQos":"0","closeRetain":"false","closePayload":"","willTopic":"","willQos":"0","willRetain":"false","willPayload":""},{"id":"9545499f.a61ca8","type":"ui_group","name":"Wallbox","tab":"744b5117.d18b28","order":4,"disp":false,"width":"7","collapse":false,"className":""},{"id":"744b5117.d18b28","type":"ui_tab","name":"Haussimulation","icon":"dashboard","disabled":false,"hidden":false}]
Auf die Spannung und die Frequenz habe ich erst mal verzichtet, Als Demonstrator reicht das ja vielleicht auch nur mit den Leistungen.
Du müsstest also nur noch die einzelnen Werte in die richtigen MQTT-Topics der openWB schreiben.