Hi,
Relative Noobie to HA but have some (quite old) experience with SQL & RDBMSs!
So, in antricipation of getting some CT Clamps on most devices in my home, along with buying an old Emporia Vue, I set up my Energy Dashboard the other day.
For some background, I have a (small) Solar Array, a Powerwall 3 and a Zappi EV charger. Zappi is wired in upstream of the PW3. Grid is via a Smart Meter with Octopus as my supplier. From Octopus I have a “Mini” IHD, which, along with the PW3 and Zappi, I think I have integrated into HA OK. HA is up to date with all revisions and patches applied to date.
I set up my Energy Dashboard config a few days ago, but neglected to assign the relevant sensor to the “compensation rate” for export. It took me several days to notice (!), but eventually realised that I was not getting any financials out of HA for my Solar exports.
After a short bit of investigation my omission was revealed. I assigned “sensor.octopus_energy_electricity_<meter number>_export_current_rate” (where “<meter number>” is my meter number) to the “export rate compenstation” field under “Configure grid connection”.
And the export financials started appearing for the remainder of that day and subsequently. However, I was also expecting these finacials to be applied retrospectively as well - they were not!
For a couple of days I have been going round and round in circles with the Google AI, trying to resolve this issue. It (the AI) has written SQL scripts galore for me to apply and modify the statistics, statistics_short_term, and/or the statistics_runs tables, Its also had me trying to insert values into the states table. Nothing worked and we just kept going round the same old loops. In the end, I gave up with the AI, as it clearly did not know what it was doing; and, in reponse, it recommended posting here for some “human input”. I was wondering if anyone could help point me in the correct direction here. I just want to set the export compensation values for a few days, so that my data is not comprised from Day #1.
Many thanks for any info anyone can provide.
Regards,
Harry.