jonasbkarlsson / ev_smart_charging

Electric vehicle smart charging for Home Assistant.
MIT License
140 stars 19 forks source link

Calculation Process #280

Closed adegenkolbe closed 4 days ago

adegenkolbe commented 5 days ago

Hi,

this is not a feature request, nor is it a bug. I am just curious and want to understand how you calculate the duration for the charging. I would assume that you need the charger speed and capacity of the battery to determine how long it will take to charge the car from the actual state of charge to the desired one. But as you don't have this information I don't know how you do it.

Thanks in advance and kind regards Andy

KentHage commented 5 days ago

Because you set the "EV Smart Charging Charging speed" in the integration as how many percent you charge the car in an hour.

jonasbkarlsson commented 4 days ago

The explanation above is correct. It was a simple way to make the integration independent of absolute charging power and battery sizes. However, I have started to regret that choice. I might need to switch to charging power and battery size instead, in order to support more advanced functionality in the future.