Watt isnt convertable to kWh without calculating also the timespan.
So 1 Watt / 1000 is 0.001 kilo Watt
But using that 1 W over the period of 10 hour is only only 0.01 kWh
Wher did you put your timespan in your formula?
Beside that your code is not correct,
your flown is also using the [Result] from the Logic card. The Homey script isnât passing the calcuated value backt to the flow.