Lovelace Battery Card

I absolutely love this battery card and would love to see it able to be used as a generic battery card with entities.

Right now, only available for the GivEnergy devices.

Is anyone up to the task to make this a generic lovelace card. It is such a good battery card!