Home Battery Storage Logic

I’m trying to understand the logic for the battery energy sensors in the new beta

I have a hybrid inverter that handles both my PV and my battery. It can output all of the data I need via modbus, but it does not natively support a battery input/output sensor. Because it feeds the house from PV as priority #1 and charges the battery with the excess, simply using the PV production as input for the battery would be incorrect. I have made custom template sensors that calculate the battery input by taking PV (minus) inverter output - and using the battery power output if the PV-Inverter is negative, but the energy graph stays at zero despite the sensor counting increasing

Any ideas?


Please use the beta channel on discord for beta discussion.