Create own sensor/entity based on values from others?

I’ve got some solar charging data I would like to process to give an output, basically I would like to know a cumulative total of how many AH of charge has entered my pack on a given day.

I have instantaneous charge and discharge current readings available from my inverter, which I can use to break down by 30s intervals (the inverter polling interval) to me a rough idea of how many AH is going in/out of the pack.

I could add a smart shunt to the system but given the data is already there and I only need do some math on it I’d rather try this first.

Is this a custom entity or a custom sensor and how do I go about this?

Many thanks :slight_smile:

Use a template sensor

2 Likes