Photovoltaics (PV) + battery + hass = maximize auto-consumption

I had to change the hysterese value directly in the GUI of the heatpump, via service access.