[{"id":"a9da49cb.74afc8","type":"tab","label":"Flow 1","disabled":true,"info":""},{"id":"f13d6f9c.0c3de","type":"modbus-read","z":"a9da49cb.74afc8","d":true,"name":"EUVU W","topic":"modbus/evu/W","showStatusActivities":true,"logIOActivities":false,"showErrors":true,"unitid":"5","dataType":"HoldingRegister","adr":"38","quantity":"2","rate":"2","rateUnit":"s","delayOnStart":true,"startDelayTime":"5","server":"b073b848.169938","useIOFile":false,"ioFile":"","useIOForPayload":false,"x":240,"y":140,"wires":[["42407fe3.638ff"],["9db72ba3.62ed48"]]},{"id":"df46f2cf.7a1b","type":"modbus-read","z":"a9da49cb.74afc8","d":true,"name":"SMA PV W","topic":"modbus/sma/W","showStatusActivities":true,"logIOActivities":false,"showErrors":true,"unitid":"3","dataType":"HoldingRegister","adr":"30775","quantity":"2","rate":"2","rateUnit":"s","delayOnStart":true,"startDelayTime":"5","server":"d7b8911a.8e72f","useIOFile":false,"ioFile":"","useIOForPayload":false,"x":260,"y":1002,"wires":[["b6064230.9b9ab"],["79406537.e940ac"]]},{"id":"9db72ba3.62ed48","type":"modbus-response","z":"a9da49cb.74afc8","name":"","registerShowMax":"2","x":730,"y":200,"wires":[]},{"id":"79406537.e940ac","type":"modbus-response","z":"a9da49cb.74afc8","name":"","registerShowMax":"2","x":730,"y":1083,"wires":[]},{"id":"42407fe3.638ff","type":"function","z":"a9da49cb.74afc8","name":"MPM3PM ToSignedInt32BE","func":"msg.payload = parseInt(msg.responseBuffer.buffer.readInt32BE()/100);\nreturn msg;","outputs":1,"noerr":0,"x":520,"y":100,"wires":[["38941917.a2d706","fe6b29cb.c27678"]]},{"id":"b6064230.9b9ab","type":"function","z":"a9da49cb.74afc8","name":"SMA ToSignedInt32BE","func":"var final = msg.responseBuffer.buffer.readInt32BE();\nif (final > 0)\n    msg.payload = final * -1;\n    else msg.payload = 0;\nreturn msg;","outputs":1,"noerr":0,"x":520,"y":983,"wires":[["3cf18fd2.b00c8","a2e72d5d.6a629"]]},{"id":"38941917.a2d706","type":"debug","z":"a9da49cb.74afc8","name":"","active":true,"tosidebar":false,"console":false,"tostatus":true,"complete":"payload","targetType":"msg","x":750,"y":100,"wires":[]},{"id":"3cf18fd2.b00c8","type":"debug","z":"a9da49cb.74afc8","name":"","active":true,"tosidebar":false,"console":false,"tostatus":true,"complete":"payload","targetType":"msg","x":750,"y":983,"wires":[]},{"id":"a89be279.eb77c","type":"mqtt in","z":"a9da49cb.74afc8","name":"openWB/evu/W","topic":"openWB/evu/W","qos":"2","datatype":"auto","broker":"ef13428e.b4e9b","x":200,"y":340,"wires":[["af82a746.19fd48","26f1db3.6c10924","9e6c2cf4.d9c9f","29a29c04.ea7e14"]]},{"id":"af82a746.19fd48","type":"debug","z":"a9da49cb.74afc8","name":"","active":true,"tosidebar":false,"console":false,"tostatus":true,"complete":"payload","targetType":"msg","x":750,"y":340,"wires":[]},{"id":"bba3657e.e766e8","type":"mqtt in","z":"a9da49cb.74afc8","name":"openWB/pv/W","topic":"openWB/pv/W","qos":"2","datatype":"auto","broker":"ef13428e.b4e9b","x":230,"y":1243,"wires":[["86eb9f26.0dc2a","2594b840.ec7e48","27714da3.0af142","744fc161.0eb0e"]]},{"id":"86eb9f26.0dc2a","type":"debug","z":"a9da49cb.74afc8","name":"","active":true,"tosidebar":false,"console":false,"tostatus":true,"complete":"payload","targetType":"msg","x":750,"y":1243,"wires":[]},{"id":"95b5bb39.0067b8","type":"modbus-getter","z":"a9da49cb.74afc8","name":"MPM3PM W","showStatusActivities":true,"showErrors":true,"logIOActivities":false,"unitid":"5","dataType":"HoldingRegister","adr":"38","quantity":"2","server":"b073b848.169938","useIOFile":false,"ioFile":"","useIOForPayload":false,"emptyMsgOnFail":false,"x":430,"y":200,"wires":[["42407fe3.638ff","9e6c2cf4.d9c9f"],["9db72ba3.62ed48"]]},{"id":"2ef31bab.23dc94","type":"modbus-getter","z":"a9da49cb.74afc8","name":"SMA PV W","showStatusActivities":true,"showErrors":true,"logIOActivities":false,"unitid":"3","dataType":"HoldingRegister","adr":"30775","quantity":"2","server":"d7b8911a.8e72f","useIOFile":false,"ioFile":"","useIOForPayload":false,"emptyMsgOnFail":false,"x":450,"y":1083,"wires":[["b6064230.9b9ab","27714da3.0af142"],["79406537.e940ac"]]},{"id":"1686f283.61430d","type":"inject","z":"a9da49cb.74afc8","name":"","repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":120,"y":200,"wires":[["95b5bb39.0067b8"]]},{"id":"26f1db3.6c10924","type":"change","z":"a9da49cb.74afc8","name":"timestamp","rules":[{"t":"set","p":"payload","pt":"msg","to":"","tot":"date"}],"action":"","property":"","from":"","to":"","reg":false,"x":210,"y":260,"wires":[["95b5bb39.0067b8","3691e6de.21ee9a"]]},{"id":"2594b840.ec7e48","type":"change","z":"a9da49cb.74afc8","name":"timestamp","rules":[{"t":"set","p":"payload","pt":"msg","to":"","tot":"date"}],"action":"","property":"","from":"","to":"","reg":false,"x":170,"y":1163,"wires":[["2ef31bab.23dc94","30db457.4a5f7ba"]]},{"id":"b4d5e5ff.cf6068","type":"inject","z":"a9da49cb.74afc8","name":"","repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":160,"y":1083,"wires":[["2ef31bab.23dc94"]]},{"id":"7e30c4f2.c1763c","type":"comment","z":"a9da49cb.74afc8","name":"Wert Bezug/Einspeisung vom Modbus Zähler","info":"","x":1000,"y":100,"wires":[]},{"id":"625ec2ce.719d1c","type":"comment","z":"a9da49cb.74afc8","name":"Wert PV Erzeugung vom Modbus Zähler","info":"","x":1020,"y":983,"wires":[]},{"id":"a9b9ca38.6fc2e8","type":"comment","z":"a9da49cb.74afc8","name":"Wert PV Erzeugung von openWB (mqtt)","info":"","x":1010,"y":1243,"wires":[]},{"id":"458f9ebd.d4e1","type":"comment","z":"a9da49cb.74afc8","name":"Wert Bezug/Einspeisung von openWB (mqtt)","info":"","x":1010,"y":340,"wires":[]},{"id":"8c69891a.552238","type":"debug","z":"a9da49cb.74afc8","name":"","active":true,"tosidebar":false,"console":false,"tostatus":true,"complete":"payload","targetType":"msg","x":830,"y":1163,"wires":[]},{"id":"9e6c2cf4.d9c9f","type":"interval-length","z":"a9da49cb.74afc8","format":"mills","bytopic":false,"minimum":"","maximum":"","window":"","timeout":false,"msgTimeout":"","minimumunit":"msecs","maximumunit":"msecs","windowunit":"msecs","msgTimeoutUnit":"msecs","reset":false,"startup":false,"msgField":"payload","timestampField":"timestamp","repeatTimeout":false,"name":"measure interval","x":690,"y":280,"wires":[["d8fa8596.255828"],[]]},{"id":"d8fa8596.255828","type":"debug","z":"a9da49cb.74afc8","name":"","active":true,"tosidebar":false,"console":false,"tostatus":true,"complete":"payload","targetType":"msg","x":910,"y":260,"wires":[]},{"id":"a84c6fde.0d7f1","type":"comment","z":"a9da49cb.74afc8","name":"Versatz openWB / Modbus Werte (ms)","info":"","x":1150,"y":260,"wires":[]},{"id":"c65d8acb.d97d88","type":"comment","z":"a9da49cb.74afc8","name":"Versatz openWB / Modbus Werte (ms)","info":"","x":1090,"y":1169,"wires":[]},{"id":"fe86cd56.490ad","type":"comment","z":"a9da49cb.74afc8","name":"Ablesung openWB + Modbus für Bezug/Erzeugung (W)","info":"","x":620,"y":40,"wires":[]},{"id":"91c36dc.5dbf89","type":"comment","z":"a9da49cb.74afc8","name":"Ablesung openWB + Modbus für PV-Erzeugung (W)","info":"","x":610,"y":923,"wires":[]},{"id":"27714da3.0af142","type":"interval-length","z":"a9da49cb.74afc8","format":"mills","bytopic":false,"minimum":"","maximum":"","window":"","timeout":false,"msgTimeout":"","minimumunit":"msecs","maximumunit":"msecs","windowunit":"msecs","msgTimeoutUnit":"msecs","reset":false,"startup":false,"msgField":"payload","timestampField":"timestamp","repeatTimeout":false,"name":"measure interval","x":590,"y":1183,"wires":[["8c69891a.552238"],[]]},{"id":"3691e6de.21ee9a","type":"debug","z":"a9da49cb.74afc8","name":"","active":true,"tosidebar":false,"console":false,"tostatus":true,"complete":"$fromMillis(payload)\t","targetType":"jsonata","x":400,"y":260,"wires":[]},{"id":"30db457.4a5f7ba","type":"debug","z":"a9da49cb.74afc8","name":"","active":true,"tosidebar":false,"console":false,"tostatus":true,"complete":"$fromMillis(payload)\t","targetType":"jsonata","x":380,"y":1143,"wires":[]},{"id":"fe6b29cb.c27678","type":"switch","z":"a9da49cb.74afc8","name":"","property":"payload","propertyType":"msg","rules":[{"t":"lt","v":"0","vt":"num"},{"t":"gte","v":"0","vt":"num"}],"checkall":"false","repair":false,"outputs":2,"x":330,"y":560,"wires":[["754a6c6b.fde8d4","9476eaf1.3c9288"],["25236618.d50e1a","fd1bff56.b0f28"]]},{"id":"754a6c6b.fde8d4","type":"change","z":"a9da49cb.74afc8","name":"EINSPEISUNG","rules":[{"t":"set","p":"topic","pt":"msg","to":"EinspeisungModBus","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":520,"y":480,"wires":[["54d99076.79734"]]},{"id":"25236618.d50e1a","type":"change","z":"a9da49cb.74afc8","name":"BEZUG","rules":[{"t":"set","p":"topic","pt":"msg","to":"BezugModbus","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":640,"y":560,"wires":[["54d99076.79734"]]},{"id":"a2e72d5d.6a629","type":"change","z":"a9da49cb.74afc8","name":"PV","rules":[{"t":"set","p":"topic","pt":"msg","to":"PVModBus","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":750,"y":760,"wires":[["54d99076.79734"]]},{"id":"29a29c04.ea7e14","type":"switch","z":"a9da49cb.74afc8","name":"","property":"payload","propertyType":"msg","rules":[{"t":"lt","v":"0","vt":"num"},{"t":"gte","v":"0","vt":"num"}],"checkall":"false","repair":false,"outputs":2,"x":150,"y":740,"wires":[["f584e957.b646f8","b703587b.5851e8"],["a87a3542.7f36e8","435ac359.046e2c"]]},{"id":"f584e957.b646f8","type":"change","z":"a9da49cb.74afc8","name":"EINSPEISUNG","rules":[{"t":"set","p":"topic","pt":"msg","to":"EinspeisungOpenWB","tot":"str"},{"t":"set","p":"payload","pt":"msg","to":"$number(payload)\t","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":360,"y":640,"wires":[["54d99076.79734"]]},{"id":"a87a3542.7f36e8","type":"change","z":"a9da49cb.74afc8","name":"BEZUG","rules":[{"t":"set","p":"topic","pt":"msg","to":"BezugOpenWB","tot":"str"},{"t":"set","p":"payload","pt":"msg","to":"$number(payload)\t","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":340,"y":760,"wires":[["54d99076.79734"]]},{"id":"744fc161.0eb0e","type":"change","z":"a9da49cb.74afc8","name":"PV","rules":[{"t":"set","p":"topic","pt":"msg","to":"PVOpenWB","tot":"str"},{"t":"set","p":"payload","pt":"msg","to":"$number(payload)\t","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":750,"y":820,"wires":[["54d99076.79734"]]},{"id":"54d99076.79734","type":"change","z":"a9da49cb.74afc8","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"$abs(payload)","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":1050,"y":620,"wires":[["b5d22f3e.8f01f"]]},{"id":"b5d22f3e.8f01f","type":"ui_chart","z":"a9da49cb.74afc8","name":"OpenWB vs. ModBus direct","group":"b6bd7e69.65448","order":1,"width":0,"height":0,"label":"OpenWB vs. ModBus direct","chartType":"line","legend":"true","xformat":"HH:mm:ss","interpolate":"cubic","nodata":"","dot":false,"ymin":"","ymax":"","removeOlder":"40","removeOlderPoints":"","removeOlderUnit":"60","cutout":0,"useOneColor":false,"useUTC":false,"colors":["#1f77b4","#ffff00","#ff7f0e","#2ca02c","#98df8a","#d62728","#ff9896","#9467bd","#c5b0d5"],"useOldStyle":false,"outputs":1,"x":1240,"y":560,"wires":[[]]},{"id":"b703587b.5851e8","type":"change","z":"a9da49cb.74afc8","name":"BEZUG=0","rules":[{"t":"set","p":"topic","pt":"msg","to":"BezugOpenWB","tot":"str"},{"t":"set","p":"payload","pt":"msg","to":"0","tot":"num"}],"action":"","property":"","from":"","to":"","reg":false,"x":350,"y":700,"wires":[["54d99076.79734"]]},{"id":"435ac359.046e2c","type":"change","z":"a9da49cb.74afc8","name":"EINSPEISUNG=0","rules":[{"t":"set","p":"topic","pt":"msg","to":"EinspeisungOpenWB","tot":"str"},{"t":"set","p":"payload","pt":"msg","to":"0","tot":"num"}],"action":"","property":"","from":"","to":"","reg":false,"x":350,"y":808,"wires":[["54d99076.79734"]]},{"id":"9476eaf1.3c9288","type":"change","z":"a9da49cb.74afc8","name":"BEZUG =0","rules":[{"t":"set","p":"topic","pt":"msg","to":"BezugModBus","tot":"str"},{"t":"set","p":"payload","pt":"msg","to":"0","tot":"num"}],"action":"","property":"","from":"","to":"","reg":false,"x":530,"y":520,"wires":[["54d99076.79734"]]},{"id":"fd1bff56.b0f28","type":"change","z":"a9da49cb.74afc8","name":"EINSPEISUNG=0","rules":[{"t":"set","p":"topic","pt":"msg","to":"EinspeisungModBus","tot":"str"},{"t":"set","p":"payload","pt":"msg","to":"0","tot":"num"}],"action":"","property":"","from":"","to":"","reg":false,"x":650,"y":600,"wires":[["54d99076.79734"]]},{"id":"a0f6f5af.8d2d08","type":"comment","z":"a9da49cb.74afc8","name":"Übergabe an Dashboard","info":"","x":970,"y":500,"wires":[]},{"id":"b073b848.169938","type":"modbus-client","z":"","name":"EVU Kit","clienttype":"tcp","bufferCommands":true,"stateLogEnabled":true,"queueLogEnabled":false,"tcpHost":"192.168.193.15","tcpPort":"8899","tcpType":"TPC-RTU-BUFFERED","serialPort":"/dev/ttyUSB","serialType":"RTU-BUFFERD","serialBaudrate":"9600","serialDatabits":"8","serialStopbits":"1","serialParity":"none","serialConnectionDelay":"100","unit_id":"1","commandDelay":"1","clientTimeout":"1000","reconnectOnTimeout":true,"reconnectTimeout":"2000","parallelUnitIdsAllowed":true},{"id":"d7b8911a.8e72f","type":"modbus-client","z":"","name":"SMA","clienttype":"tcp","bufferCommands":true,"stateLogEnabled":true,"queueLogEnabled":false,"tcpHost":"192.168.15.111","tcpPort":"502","tcpType":"TPC-RTU-BUFFERED","serialPort":"/dev/ttyUSB","serialType":"RTU-BUFFERD","serialBaudrate":"9600","serialDatabits":"8","serialStopbits":"1","serialParity":"none","serialConnectionDelay":"100","unit_id":1,"commandDelay":1,"clientTimeout":1000,"reconnectOnTimeout":true,"reconnectTimeout":2000,"parallelUnitIdsAllowed":true},{"id":"ef13428e.b4e9b","type":"mqtt-broker","z":"","name":"OpenWB","broker":"192.168.15.100","port":"1883","clientid":"","usetls":false,"compatmode":false,"keepalive":"60","cleansession":true,"birthTopic":"","birthQos":"0","birthPayload":"","closeTopic":"","closeQos":"0","closePayload":"","willTopic":"","willQos":"0","willPayload":""},{"id":"b6bd7e69.65448","type":"ui_group","z":"","name":"OpenWB","tab":"322ae12.c23f41e","order":1,"disp":true,"width":30,"collapse":false},{"id":"322ae12.c23f41e","type":"ui_tab","z":"","name":"Home","icon":"dashboard","disabled":false,"hidden":false}]