jonasbkarlsson / ev_smart_charging

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

Minimum EV SOC not working #185

Closed woopstar closed 10 months ago

woopstar commented 11 months ago

I'm currently running v1.8.0.

I have set Minimum EV SoC to 25%, but when I plug in my car and the SoC is less than 25% it does not start to charge the car.

The Charging sensor keeps begin "Off". The SoC from the car was 15%.

Added screenshots also.

IMG_9748 IMG_9749 IMG_9750

jonasbkarlsson commented 11 months ago

What you described is the current implementation. Minimum EV SoC is used together with Apply price limit to charge the car to the Minimum EV SoC even if the price is higher than the price limit. Note that this charging still is done at the lowest price, and not directly when connecting the car to the charger.

To start charging directly when connected to the charger has been requested in #168.

woopstar commented 11 months ago

What is then the difference between Minimum SoC and target SoC?

One would assume that minimum SoC means: Charge to this SoC as soon as the charger is connected whereas Target SoC is: Charge to this SoC no later than Charge complete time, but at the cheapest possible time.

With the current way, it would charge to Minimum SoC within the Completed time hence as I understand Minimum SoC equals at least Target SoC, unless you set Target SoC lower than Minimum SoC (why would you ever do so)

jonasbkarlsson commented 11 months ago

Minimum SOC only has effect when switch.ev_smart_charging_apply_price_limit is on. It will make sure the car is charged to the mimimum SOC, even if the price is too high to be able to charge to the target SOC. This charging is still taking place at the cheapest possible time (and not as soon as the charger is connected, as you assumed).

Minimum SOC would typically be set to a lower value than Target SOC.

onrust commented 10 months ago

It appears to be not working as you described. I'm having similar issue as the OP: Minimum SoC doesn't make the car charge when it's plugged in with a SoC lower than the set minimum, no matter the other settings.

jonasbkarlsson commented 10 months ago

Sorry if my description wasn't clear. What you observe is the intended behaviour of the current implementation, i.e. Minimum SoC doesn't make the car charge when it's plugged in with a SoC lower than the set minimum.

To start charging immediately when connected to the charger, if SOC is lower than some value, has been requested in #168.

Since this is a dublicate, I will close this issue.