Codegnosis / givtcp-battery-card

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

Reduce the decimal places on the kwh displays #15

Closed gcoan closed 9 months ago

gcoan commented 9 months ago

Looks to be a useful additional custom card, thank you. Easy to setup although I didn't need to add it as a custom repository.

Could you add the ability to reduce the decimal places on the kWh display please (or change the default). Knowing its capacity and fullness is 9.5kWh is enough precision for me ! image

gcoan commented 9 months ago

Further thought, rather than a hard kW or W display for the charging/discharging, make it intelligent (like the GivEnergy app) so it shows for example discharging at 269W or charging at 2.4kW image

gcoan commented 9 months ago

Sorry another thought, the batteries are currently charging at 2.4kW. I've got a "time at 100%" that tells me when they will be fully charged all good. But I don't understand why the "time left" is counting down. The battery is charging so the time left should be increasing not decreasing, and how would the time left be calculated anyway when there isn't a discharge rate at the moment. Maybe keep it constant and refresh say every x seconds reflecting the increasing soc ?

image

Codegnosis commented 9 months ago

Thanks for the feedback, much appreciated!

Regarding the intelligent unit display & decimal places - both are in the pipeline, and I'll hopefully have some time soon to implement.

Regarding the countdown timer - it's contextual, so if the battery is charging it's counting down the time until full. If it's discharging, it's counting down the time until it reaches the reserve %

gcoan commented 9 months ago

Thanks Paul. Obviously I didn't understand the countdown timer!

Look forward to seeing the next version.  This just popped up on my hacs dashboard.

Cheers Geoffrey On 1 Nov 2023 at 11:03 +0000, Paul Hodgson @.***>, wrote:

Thanks for the feedback, much appreciated! Regarding the intelligent unit display & decimal places - both are in the pipeline, and I'll hopefully have some time soon to implement. Regarding the countdown timer - it's contextual, so if the battery is charging it's counting down the time until full. If it's discharging, it's counting down the time until it reaches the reserve % — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

gcoan commented 9 months ago

Thanks Paul for the new features in the card, they work perfectly, just what I wanted