Since I got no reaction when posting about this in existing threads I created a separate one.
I have the new Energy Management feature working fine. However, all financial values remain 0 in the new energy dashboard. While the entities actually have values:
I had the same problem. Couldn’t figure out why it would not display cost information despite correctly setting up price in the energy configuration.
Then I remembered that I had to explicitly add the energy sensors in the recorder. Added the cost sensor and sure enough once it re-ran statistics, there it was.
Dont know if you all have similar setup managing what is in the recorder. But thought I would share my absent minded discovery.
Yes. I control what is included in the recorder in config.yaml so my recorder won’t grow too big. I think that if you don’t include/exclude then it should be in there, so you should be good on that.
You might check that the Energy integration created the cost entity. For instance my energy sensor is sensor.iotawatt_output_power_total_wh, once I added the price information, it created sensor.iotawatt_output_power_total_wh_cost where it accumulates cost information. That is the entity I had to add to my recorder.
I experience the same problem.
Just did a prune of the history database and it doesn’t help either.
I see that the data is being saved.
Could it be that I don’t have all the checks in analytics settings?
That analytics part is just the data you send to Nabu Casa, isn’t it? I would love to receive some reaction from one of the developers giving us some more pointers.
OK, while I hoped 2021.9.x would fix stuff, it actually broke more. I must admit the energy addon is a very cool feature, but the deployment is a mess and the peak of the Home Assistant infamous “every update breaks your setup” reputation.
I did figure out that the MariaDB I use for history recording does contain values for my cost sensors in the states table. However there are no entries in the statistics_meta table for these cost sensors… I guess that’s what’s causing my cost not to show up and generating the log entry sensor.totaal_verbruik_net_hoog_tarief_cost has unknown unit EUR
it should be EUR/kWh as of the latest incarnation (and as it appears to be, though not documented nor confirmed as far as I know, €/kWh also works. Key though is the /kWh )
It’s still not fully working Soince I added the record to the database, the cost/compensation started to work for the entries that were already in the database.
2 compensation entity and 1 cost sensor: all three have state_class: total_increasing
However the sensor for which I added the entry in the database manually because it was missing the state_class is measurement
I can’t see any way to change this to total_increasing as well. Even using customize_glob: in config didn’t work
Same issue, finally got my utility meter into Energy Management yesterday and it is working, but the cost tracking is still set as 0.00 USD, I have everything setup as others have shown as well.