Calculate energy used - Ebeco

I have a Ebeco EB500 floor heating control unit.
It does not have a built in energy meter but I can read out the power (a constant set in the Ebeco app - installed power).
In my case it´s 525w installed so in Homey it switch between 0,5w and 525w (off/on).

Can I somehow calculate the energy used and visualize it in Homey.
Tried PBTH but it didn´t work.
Would also be nice if I could visualize it a graph (like insights)?

It should be easy since it´s just time * power but how do I solve it?

It would be a lot easyer to put a energy meter in between. If you calculate, you’ll probably going to miss a lot. IE when network goes down, Homey is down/rebooting/unplugged.

For a 525W device you can even use a smart plug…

I thought about that to but it would have been nice to use what I have.
And also learn if and how to do it if it´s possible.

But maybe I end up with a fibaro between instead.

Create a PBTH Virtual_via_flow with a kWh numberfield and a script to update this field like:


Check in the PBTH kWh number field the Insight box.