jonasbkarlsson / ev_smart_charging

Electric vehicle smart charging for Home Assistant.
MIT License
139 stars 18 forks source link

Lower EV Smart Charging Minimum EV SOC does not change duration of expected charging #264

Open Ferrox85 opened 1 month ago

Ferrox85 commented 1 month ago

Version 1.10.0

If for example 50 % of charging is set as goal. I expect that the duration is lowered with 50%. For example from 10 (normally 100%) to 5 hours and that it recalculates the most efficient hours to charge with those 5 hours.

jonasbkarlsson commented 1 month ago

Well, it depends on the current SOC. If your current SOC is 0%, then your example is what will happens. But if you for example have 25% SOC and it would take 10 hours to reach 100% (from 25%), then if you change the target SOC to 50%, then it will take (50-25)/(100-25)*10 = 3.33 hours (from 25% to 50%), which the integration rounds up to 4 hours.

Ferrox85 commented 1 month ago

Exactly, but it doesn't do recalculation that when I change the target. So it looks like a bug right?

yoali11 commented 1 week ago

It is the same for me. Whenever the target soc slider is changed nothing is recalculated. I have to manually turn off and back on the smart charge enable switch to have the integration recalculate a new charge plan. Actually I have an automation that does this for me. Would be nice to have this embedded natively in the integration.

jonasbkarlsson commented 1 week ago

Ah, ok. I will check.