Hi All, I am trying something very simple and already fail on the simple
Basically, I’ve got a device consuming energy - no surprise… However, I would like to calculate the amount of energy it is consuming over time and I am searching a good approach for it leveraging a Rule.
To make it more difficult, the amount of consumption changes continuously:
14:00 - 14:30 0,50kW -> It burns from now on 0,5
14:30 - 14:45 0,10kW -> now it changed, instead of 0,5 it now burns only 0,1
14:45 - 14:50 0,30kW -> now it changed again, it burns going forward 0,3
14:50 - 15:00 0,10Kw -> to not make it boring, it changed again, it burns now 0,1
How would you count this together, if item BurnedEnergy sends the updates as of the above (e.g. at 14:00 you receive 0,50, at 14:30 you receive 0,10, at 14:45 you receive 0,3 at 14:50 you receive 0,1)?