Next value in msg max 1 higher than last

There 2 values:

Val1: 8257 and Val2: 8254

Val 2 is the needed value, but this value will change because its my Total consumed Energy. Whats the second val i dont know.

Atm this is what my Node looks like. With first filter in total-line iam clearing some outputs from my electricity meter thats 100% incorrect because the tasmota-software isnt fully compatible with my meter^^