I want to keep counters for how much solar panel energy and grid energy my car uses.
I have power meters for the Solar, Grid and the car. The power the rest of the house
uses is however unknown, and measured by the grid meter.
Determining the car's part of grid and solar power requires some calculations.
I created home assistant template sensors to come up with these power numbers, and
added integrators to obtain energy meters.
A heater power-controlled to consume all excess solar production!
I built a prototype test setup that makes sure every Watt produced by our
solar panels is used by an electric heater. It uses an industrial power
controller and some code to match the heater's power usage to
whatever power is not used by the house.
This would make it possible to maximize our solar self consumption, which is
required to get a decent return on your solar investment.
For us, injecting to the electricity grid is giving away power,
we have to pay about 6x as much compared to what the utility pays us for returning energy to the grid.