Adding two values

Hi again, as mensioned earlier, this is how you can do it with buffer parser...


(obviously I dont have your invertor so all values are simulated - zero)

this is the flow i did...

[{"id":"3c70a20c.01d53e","type":"inject","z":"15164b61.40f905","name":"","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":220,"y":300,"wires":[["bb340a9c.a81c58","7bdb6cd4.f23b24","58e3fd6c.ca7b04","4d07d7f8.99b288"]]},{"id":"bb340a9c.a81c58","type":"modbus-getter","z":"15164b61.40f905","name":"30773 ~ 30869","showStatusActivities":false,"showErrors":true,"logIOActivities":false,"unitid":"","dataType":"InputRegister","adr":"30773","quantity":"96","server":"7b9a0315.71ca9c","useIOFile":false,"ioFile":"","useIOForPayload":false,"emptyMsgOnFail":false,"keepMsgProperties":false,"x":480,"y":220,"wires":[["768c153b.df699c"],[]]},{"id":"7bdb6cd4.f23b24","type":"modbus-getter","z":"15164b61.40f905","name":"30953 ~ 30955","showStatusActivities":false,"showErrors":false,"logIOActivities":false,"unitid":"","dataType":"InputRegister","adr":"30953","quantity":"2","server":"7b9a0315.71ca9c","useIOFile":false,"ioFile":"","useIOForPayload":false,"emptyMsgOnFail":false,"keepMsgProperties":false,"x":480,"y":280,"wires":[["5e0a1ec.aeb7ce"],[]]},{"id":"58e3fd6c.ca7b04","type":"modbus-getter","z":"15164b61.40f905","name":"31253 ~ 31259","showStatusActivities":false,"showErrors":false,"logIOActivities":false,"unitid":"","dataType":"InputRegister","adr":"31253","quantity":"6","server":"7b9a0315.71ca9c","useIOFile":false,"ioFile":"","useIOForPayload":false,"emptyMsgOnFail":false,"keepMsgProperties":false,"x":480,"y":340,"wires":[["7cdd5a8a.43b644"],[]]},{"id":"4d07d7f8.99b288","type":"modbus-getter","z":"15164b61.40f905","name":"31447 ~ 31499","showStatusActivities":false,"showErrors":false,"logIOActivities":false,"unitid":"","dataType":"InputRegister","adr":"31447","quantity":"52","server":"7b9a0315.71ca9c","useIOFile":false,"ioFile":"","useIOForPayload":false,"emptyMsgOnFail":false,"keepMsgProperties":false,"x":480,"y":400,"wires":[["b7162329.e0cc4"],[]]},{"id":"768c153b.df699c","type":"buffer-parser","z":"15164b61.40f905","name":"","data":"responseBuffer.buffer","dataType":"msg","specification":"spec","specificationType":"ui","items":[{"type":"int32le","name":"PDC2","offset":0,"length":1,"offsetbit":0,"mask":""},{"type":"int32le","name":"PAC2","offset":4,"length":1,"offsetbit":0,"mask":""},{"type":"int32le","name":"Pbez","offset":184,"length":1,"offsetbit":0,"mask":""},{"type":"int32le","name":"Pein","offset":188,"length":1,"offsetbit":0,"mask":""}],"swap1":"swap16","swap2":"","swap3":"","swap1Type":"swap","swap2Type":"swap","swap3Type":"swap","msgProperty":"payload","msgPropertyType":"str","resultType":"keyvalue","resultTypeType":"output","multipleResult":false,"setTopic":true,"x":670,"y":220,"wires":[["bc60faef.9b6c08","15f17a3a.bf22a6","c2e5e0ec.242a1","865fdaa3.0ff7b8","52e8c22d.52cb6c"]]},{"id":"5e0a1ec.aeb7ce","type":"buffer-parser","z":"15164b61.40f905","name":"","data":"responseBuffer.buffer","dataType":"msg","specification":"spec","specificationType":"ui","items":[{"type":"int32le","name":"T2","offset":0,"length":1,"offsetbit":0,"mask":""}],"swap1":"swap16","swap2":"","swap3":"","swap1Type":"swap","swap2Type":"swap","swap3Type":"swap","msgProperty":"payload","msgPropertyType":"str","resultType":"keyvalue","resultTypeType":"output","multipleResult":false,"setTopic":true,"x":670,"y":280,"wires":[["ed2f8fed.778a1","121cd028.592a7"]]},{"id":"7cdd5a8a.43b644","type":"buffer-parser","z":"15164b61.40f905","name":"","data":"responseBuffer.buffer","dataType":"msg","specification":"spec","specificationType":"ui","items":[{"type":"int32le","name":"UL1","offset":0,"length":1,"offsetbit":0,"mask":""},{"type":"int32le","name":"UL2","offset":4,"length":1,"offsetbit":0,"mask":""},{"type":"int32le","name":"UL3","offset":8,"length":1,"offsetbit":0,"mask":""}],"swap1":"swap16","swap2":"","swap3":"","swap1Type":"swap","swap2Type":"swap","swap3Type":"swap","msgProperty":"payload","msgPropertyType":"str","resultType":"keyvalue","resultTypeType":"output","multipleResult":false,"setTopic":true,"x":670,"y":340,"wires":[["e77c39b2.ab0da8","96e6d1a4.95cf5","b7d0340e.8bd868","25aca7ac.e71e78"]]},{"id":"b7162329.e0cc4","type":"buffer-parser","z":"15164b61.40f905","name":"","data":"responseBuffer.buffer","dataType":"msg","specification":"spec","specificationType":"ui","items":[{"type":"int32le","name":"Hz","offset":0,"length":1,"offsetbit":0,"mask":""},{"type":"int32be","name":"var","offset":50,"length":1,"offsetbit":0,"mask":""}],"swap1":"swap16","swap2":"","swap3":"","swap1Type":"swap","swap2Type":"swap","swap3Type":"swap","msgProperty":"payload","msgPropertyType":"str","resultType":"keyvalue","resultTypeType":"output","multipleResult":false,"setTopic":true,"x":670,"y":400,"wires":[["d8a23fa6.0a779","d0023be2.999bb8","2405d4f1.155f9c"]]},{"id":"bc60faef.9b6c08","type":"debug","z":"15164b61.40f905","name":"parser1","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","x":920,"y":60,"wires":[]},{"id":"15f17a3a.bf22a6","type":"ui_text","z":"15164b61.40f905","group":"8a11e8c7.342528","order":1,"width":0,"height":0,"name":"P-ein","label":"<font color=green> Leistung Einspeisung","format":"{{msg.payload.Pein}} W","layout":"row-spread","x":910,"y":100,"wires":[]},{"id":"c2e5e0ec.242a1","type":"ui_text","z":"15164b61.40f905","group":"8a11e8c7.342528","order":2,"width":0,"height":0,"name":"P-bez","label":"<font color=red> Leistung Bezug","format":"{{msg.payload.Pbez}} W","layout":"row-spread","x":910,"y":140,"wires":[]},{"id":"865fdaa3.0ff7b8","type":"ui_text","z":"15164b61.40f905","group":"5be273cb.ceaddc","order":1,"width":0,"height":0,"name":"P-AC2","label":"Leistung AC","format":"{{msg.payload.PAC2}} W","layout":"row-spread","x":910,"y":180,"wires":[]},{"id":"52e8c22d.52cb6c","type":"ui_text","z":"15164b61.40f905","group":"5be273cb.ceaddc","order":2,"width":0,"height":0,"name":"P-DC2","label":"<font color=orange> Leistung DC","format":"{{msg.payload.PDC2}} W","layout":"row-spread","x":910,"y":220,"wires":[]},{"id":"ed2f8fed.778a1","type":"ui_text","z":"15164b61.40f905","group":"5be273cb.ceaddc","order":3,"width":0,"height":0,"name":"T2","label":"Temperatur","format":"{{msg.payload.T2}} °C","layout":"row-spread","x":910,"y":320,"wires":[]},{"id":"121cd028.592a7","type":"debug","z":"15164b61.40f905","name":"parser2","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","x":920,"y":280,"wires":[]},{"id":"e77c39b2.ab0da8","type":"ui_text","z":"15164b61.40f905","group":"8a11e8c7.342528","order":3,"width":0,"height":0,"name":"U-L1","label":"Spannung L1","format":"{{msg.payload.UL1}} V","layout":"row-spread","x":910,"y":420,"wires":[]},{"id":"96e6d1a4.95cf5","type":"ui_text","z":"15164b61.40f905","group":"8a11e8c7.342528","order":4,"width":0,"height":0,"name":"U-L2","label":"Spannung L2","format":"{{msg.payload.UL2}} V","layout":"row-spread","x":910,"y":460,"wires":[]},{"id":"b7d0340e.8bd868","type":"ui_text","z":"15164b61.40f905","group":"8a11e8c7.342528","order":5,"width":0,"height":0,"name":"U-L3","label":"Spannung L3","format":"{{msg.payload.UL3}} V","layout":"row-spread","x":910,"y":500,"wires":[]},{"id":"25aca7ac.e71e78","type":"debug","z":"15164b61.40f905","name":"parser3","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","x":920,"y":380,"wires":[]},{"id":"d8a23fa6.0a779","type":"ui_text","z":"15164b61.40f905","group":"8a11e8c7.342528","order":6,"width":0,"height":0,"name":"Hz","label":"Frequenz","format":"{{msg.payload}} Hz","layout":"row-spread","x":910,"y":600,"wires":[]},{"id":"d0023be2.999bb8","type":"ui_text","z":"15164b61.40f905","group":"5be273cb.ceaddc","order":3,"width":0,"height":0,"name":"var","label":"Blindleistung","format":"{{msg.payload}} var","layout":"row-spread","x":910,"y":640,"wires":[]},{"id":"2405d4f1.155f9c","type":"debug","z":"15164b61.40f905","name":"parser4","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","x":920,"y":560,"wires":[]},{"id":"870d2fa5.fa314","type":"comment","z":"15164b61.40f905","name":"STP6.0-3AV-40","info":"","x":220,"y":260,"wires":[]},{"id":"7b9a0315.71ca9c","type":"modbus-client","z":"","name":"STP6.0","clienttype":"tcp","bufferCommands":true,"stateLogEnabled":false,"queueLogEnabled":false,"tcpHost":"192.168.168.50","tcpPort":"502","tcpType":"TPC-RTU-BUFFERED","serialPort":"/dev/ttyUSB","serialType":"RTU-BUFFERD","serialBaudrate":"9600","serialDatabits":"8","serialStopbits":"1","serialParity":"none","serialConnectionDelay":"100","unit_id":3,"commandDelay":200,"clientTimeout":1000,"reconnectOnTimeout":true,"reconnectTimeout":2000,"parallelUnitIdsAllowed":true},{"id":"8a11e8c7.342528","type":"ui_group","z":"","name":"Energy Meter","tab":"78892c6f.892384","order":2,"disp":true,"width":"6","collapse":false},{"id":"5be273cb.ceaddc","type":"ui_group","z":"","name":"Sunny Tripower","tab":"78892c6f.892384","order":2,"disp":true,"width":"6","collapse":false},{"id":"78892c6f.892384","type":"ui_tab","z":"","name":"Photovoltaik","icon":"dashboard","order":2,"disabled":false,"hidden":false}]

These are how i decided to group the reads up into 4 parts & the offsets I used in the buffer parser...

NOTE: I couldnt find an exact manual but this one suggests values are S32 (Signed 32 bit integers)

So if you find the values comming out of buffer parser values are not correct, then simply change the settings...