Hi all,
I’ve been trying to track the actual realtime state of my Analogue Mains Grid Electricity Meter, but it is not a “Smart Meter”, it’s an old Analogue Meter with a spinning disc.
I have been looking at using an AI-on-the-edge device to directly track it, but it unfortunately is in such an awkward place that it would not be feasable to install one, otherwise I would.
However, I do have a HomeWizard HomeWizard SDM230 kWh Meter directly attached to the Analogue Meter, so that directly tracks the Analogue Meter and Mains Grid usage. I also have an active solar array (With its own HomeWizard kWh Meter), so the Analogue Meter runs backwards too when “exporting” back to the Mains Grid.
Everything works, and I track both the HomeWizard kWh Meters in HA already without issues.
I want to track the actual Analogue Meter within HA.
I believe there is an “offset”, meaning the delta between the Analogue Meters “current” kWh “reading” value, and the HomeWizard kWh “current” kWh values. I’m trying to calculate that?
I think I can achieve that, using the directly attached HomeWizard kWh Meter with the offset, but I’m not sure how exactly. The HomeWizard kWh Meter also splits into “Total Power Import” and “Total Power Export” so I believe I need to take the offset and add the Import, minus that Export.
Best calculation I can figure is:
(hw_kwh_import - hw_kwh_export) + analogue_offset_delta = value?
I think I need to create a template
integration to track this first, then use the history_stats
integration, but I cannot see a way to set the offset.
Or I could use the “Active Power” W measurement of the HomeWizard (Which would fluctuate between plus and minus) and subtract that from the offset?
I’ve been messing around in the template editor for an hour trying to do this, and I’m confused.
Can anyone help with some pointers?