Codegnosis / givtcp-battery-card

A simple battery card for Home Assistant for GivTCP users
MIT License
8 stars 1 forks source link

Feature - Experimental DoD override #24

Closed Codegnosis closed 7 months ago

Codegnosis commented 7 months ago

Resolves #20 - adds a new (experimental) feature to configure a custom DoD.

When set, values for the usable capacity and current SOC kWh will be calculated based on the configured DoD value. These will override and be used in place of the sensor.INVERTOR_SERIAL_battery_capacity and sensor.INVERTOR_SERIAL_soc_kwh data supplied by GivTCP when displaying battery data in the card.

Several other fixes, improvements and code refactoring.