Either cost zero or energy zero

Hi there,

My energy dashboard which I am currently building up has different entities. Some of them report zero energy but non zero costs and others report non zero energy but zero costs:

Those with 0 energy but non zero costs are based on a Riemann sum Integration helper. Those with 0 costs but non zero energy are based on powercalc lights.

But of course I would like to have both energy and costs correctly calculated for either entity.

What am I maybe doing wrong?

Ok I got one of the issues solved (no energy displayed for Riemann sum integral entities) by following the solution in this post:

The remaining problem is that there are no costs shown for my powercalc entities. Anyone with an idea?