Hi del13r,
Thank you for the guide to get the energy dashboard working! and helping with my question. Yes we are credited at retail rate so 1:1 for us which was a pleasant surprise after seeing what others are getting.
That’s good too know. I’m not sure what it could be anymore at first it seemed like it a simple rounding error. See This Reply for updated costs over a 3 hour period.
This is correct. I have the compensation one but not the cost one because I use my own sensor calculating the total cost. This means HA doesn’t need to do any further calculations for my cost, but for compensation I have a flat rate configured in the energy dashboard and therefore HA needs to calculate the total itself.
The compensation and cost sensors should be identical to the entity name used in the energy dashboard but with cost/compensation on the end.
@cjueden would be interesting to see what your two sensors look like in developer tools > states
I stumbled upon those as well once and assumed the same as you did. Mine never seem to reset except for one day at 12:00 I may have force them to 0 in the dev tools on that day.
If you search in developer tools>states for $474.20 (or whatever the current value is) or alternatively just for “compensation” do you find another sensor with that incorrect value?
If you can stomach starting from scratch I think the easiest fix is to edit the energy dashboard and delete the current import and export sensors from it. Restart HA then add them a back in. I think HA is hanging onto an old or incorrect sensor for an unknown reason. Did you change the energy dashboard configuration at all recently?
I’ve change all sorts of things back and forth for a couple weeks now trouble shooting, and have already lost a lot of data. Hoping I can figure out how to import it from my utilities export or a Enphase export at a later date.
I was thinking of spinning up a fresh DB. Would that help HA lose a incorrect association it’s making?
The energy dashboard stores data in a column called sum in table called statistics.
It records the difference in the value of the sensor every hour (as state column) and and then adds that difference to the sum column.
Statistics update hourly.
I have SQLite web add on installed
Here is the query I used to display the table below.
You will need to find the correct id’s for your own sensors by first displaying the content of the statistics_meta table.
SELECT *
FROM "statistics"
Where metadata_id IN (37,41)
Order by id desc