Resolves #20 - adds a new (experimental) feature to configure a custom DoD.
Add config option to set custom DoD value as a percentage
Add option to enable/disable custom DoD usage
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.
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
andsensor.INVERTOR_SERIAL_soc_kwh
data supplied by GivTCP when displaying battery data in the card.Several other fixes, improvements and code refactoring.