Adding Values from key/value

I have 2 solar inverters that have the same key/values. I need to add some of these values, such as PV amps, etc. Can anyone lead me in the right direction. Please.....

You can follow the documentation that describes how to work with messages.