Energy Graph working but cost is always 0

Hello to everyone, the new Energy is working quite fine in my system.
I just have a Shelly EM for grid consumption and the energy cost is set to 0,10691 EUR/kWh.
The graph is correctly displayed, same for the history stats, but the cost is always 0(and unfortunatly is not true!!) as attached screenshots show.
Some suggestion about the fix?
Thanks in advance.
Regards.


fyi, I have exactly the same problem. No errors in the log file.

changes can take up to 2 hours before effective according to docs

in my case it start displaying the next day

In my case, I have been waiting for days and energy shows fine but not cost.

The history graph goes back up to the 8 of august, so are passed much more than 2 hours, but energy cost is always 0

My problem here was that I don’t add entities to the recorder by default.
I add them manually to the include directive of the recorder config.

I found that the energy integration added two entities:

    - sensor.e3dc_from_net_energy_cost
    - sensor.e3dc_to_net_energy_compensation

added them to recorder and the next day the cost showed up.

1 Like

That could be the FIX!!! I didn’t noticed the new cost entity created and I have a custom recorder entities settings…I will add it and give it a try…Thanks man

Thanks for the tip. I added the cost sensor to the recorder then the graph worked properly. I didn’t even know about that new sensor? Must be auto created.

Confirm is SOLVED now by adding the cost sensor to the recorder.
I think the new Energy manegement is not properly documented about this hidden things,but it works like a charm anyway.
Thanks VDRainer.
Regards.

I have this problem. I don’t know incluye sensor in recorder. How Can I do? Help me

You have to type in configuration.yaml

recorder:
  include:
    entities:
      # all entities (sensor) that you want recorder.

If you want insert all your entities you just have to type:

recorder:

I type recorder in configuration.yaml and the Energy is cost is 0, but in the sensor en Home assistant is working. My problem is that only work in the HA and the Energy is always 0

image

My sensor keeps track of changes in cost. But is showing 0 in energy tab.

1 Like

When energy was add to HA for me cost show ok. But now show still 0.00 Why ? It was after update to 2021.9 i think… please help me.

Make sure that sensor.e3dc_from_net_energy_cost is added to your recorder section in the configuration.yaml

But in developer menu i don’t see this sensor.

EDIT
When add as you write all works and cost is now show correct. But why this solution is no avaible in faq Home Assistant?

EDIT 2
AFter night now i see that dashboard ENERGY not show anything… when go to config energy i see that is a problem that recorder was configure to no track entities…When i delete from recorder this:
sensor.e3dc_from_net_energy_cost
- sensor.e3dc_to_net_energy_compensation
now all works ok and agtain show in energy but not show cost. Still show 0,00

Also having the same problem. My cost tracking used to work but stopped with the 2021.9 update.

My recorder records everything, my price entity is showing a value of
0.29103

unit_of_measurement: NZD/kWh
friendly_name: Flick kWh Price

I think in 2021.9 they changed a requirement for the unit of measurement.

Very annoying I can’t get this to work!

I’ll just chime in here to say the same.

Pricing was working, no changes made my end except updating HA, now $0 each day despite pricing being set.

Pricing is showing on those days it was working prior to updating though.

I don’t have solar and the only datafeed I have is a Rainforest Eagle using the built in integration.

Guys, I’m running 2021.9.7 and have the same problem. Tracking for energy is fine, all the graphs work as expected, but, I get always ZERO for cost.