Reset power meter Fibaro Double Switch

Having trouble to reset my Fibaro Double Switch from my Vera Plus because there is two relays. The usual luup code works fine on units with only one relay but on the Double Switch the problem is that only one relay resets the energy consumption.

Any suggestion how to reset both relays with luup code?

I was able to reset only the first relay no luck with second, i tried to change the variable on the second with http command but after the first change in the kwh i goes back on the previous value.