martinarva / dynamic_energy_cost

62 stars 13 forks source link

Energy Sensor wrong decimals? #36

Closed GregorEstebanCardosoSchiller closed 3 months ago

GregorEstebanCardosoSchiller commented 3 months ago

Hi, see here the "feeding sensors" and the values from your integration. Electricity price is a dynamic price from tibber, I want to accumulate the value of my self-used energy production.

image

As you can see I have a real time (unit W) and a riemann sum sensor (unit Wh). I seems that the sum cost is off a kilo.

martinarva commented 3 months ago

Hi!

You should feed in the energy sensor, but it has to be in kwh not wh. Make a template sensor from the Wh, divide it by 1000 and feed in this template sensor to the integration.