jonasbkarlsson / ev_smart_charging

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

low_price charging #222

Open tieskuh opened 8 months ago

tieskuh commented 8 months ago

Hi,

Great integration! I created something like this myself a few years ago but yours has way more functions and is easier to configure.

I have a question/feature request: If I understand correctly, setting a low price limit will enable the charger as soon as the price drops below that level. I most of the time leave my car connected with a limit of 70% to be able to charge the remaining 30% with low prices. Most of the time I don't need a full charge.

But in my experience, the following example happens sometimes:

I would have rather wanted to charge for €-0,05 than for €0,10. This scenario happens most of the time as prices usually drop slowly every hour. Maybe it is possible to add a soft limit for the low price that only charges if there are no cheaper prices ahead in the next (4?) hours to reach 100%.


Another scenario:

I think it would be best to not follow the low price limit if a schedule is active. I cannot find what the behaviour would be from the documentation.

jonasbkarlsson commented 7 months ago

I don't understand your first scenario. If the target SOC is 80% (was that what you meant?), then there shouldn't be any charging to 100%.

For the second scenario, if switch.ev_smart_charging_low_soc_charging is activated and the price is below number.ev_smart_charging_low_price_charging_level, then charging will be done. This is indepent of any scheduled charging.

tieskuh commented 7 months ago

Let me try to clarify. If the switch.ev_smart_charging_low_price_charging is activated. Charging will always start if the current price is below the set price. No matter what. What I mean is, let's say the number.ev_smart_charging_low_price_charging_level is set to 0,10. The prices for the next hours are:

  1. 0,15
  2. 0,09
  3. 0,09
  4. 0,05
  5. -0,10
  6. -0,40

Now the car wil start charging at hour 2 according to the number.ev_smart_charging_low_price_charging_level. But it would be better if it waited until hour 5 or even 6 depending of the SOC (if only <1 hour charging can be done to reach 100% it would be better to wait until hour 6).

I leave my car connected most of the time with a target SOC of around 70% to be able to charge if prices are really low. My charger is able to charge the battery 10% per hour. In the example above it would be best to charge in hour 4, 5 and 6. But if the number.ev_smart_charging_low_price_charging_level is set to 0,10 it will charge in hour 2, 3 and 4.

So two features I would like to suggest:

Feel free to close this issue!