Strange cost calculation in Energy Dashboard with dynamic electricity prices from Tibber

Hi,

I’m new to Home Assistant. So please be patient!

I’m setting up the Energy Dashboard in HA.

I’m using a dynamic electricity price tariff from Tibber in my home. I have setup a Integral Helper to calculate the consumed energy in kWh from the Tibber Pulse IR sensor, which gives me the power in W via MQTT from my IOBroker data aggregator device (a Raspberry Pi). I have also using the Tibber API to get the current electricity price as a MQTT sensor.

I have configured the Grid Consumption in the Energy Dashboard with the Integral kWh sensor and the Current electricity price sensor. The price sensor does only contain the current price of the current hour as state value.

The results are strange: With only 11,2kWh consumption today HA calculates cost of 475€. The mean price today is about 0,39€/kWh.

All units for the price sensor and integral sensor are correct.

What am I doing wrong?

I’m running HA on a VPS Server. Most of the sensor data are coming via MQTT from IOBroker.

Energy Dashboard:

Tibber Current Electricity Price MQTT Sensor:

Integral kWh Sensor:

Tibber price sensor:

Energy Dashboard:

What I really don’t unterstand is why the cost values are negative?

Costs are negative and “Einspeisevergütung”/compensation is positive.
Can you post a screenshot of a longer time frame from Netz Bezug and the energy dashboard graph?
And double check you set the right entity under Use an entity with current price for the sensor in the energy dashboard config.