jonasbkarlsson / ev_smart_charging

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

No charging planned when charge completion time is after lates available price hour #139

Closed oveand closed 1 year ago

oveand commented 1 year ago

I've noted that when charge completion time is before the current time, i.e. tomorrow, then no charging is planned, most likely due to EV Smart Charging not having price information available for tomorrow. This is in general alright, though during this weekend the electricity price in DK1 has been cheapest from 10:00-15:00, even cheaper than during the night. The consequence is that EV Smart Charging does not plan any charging before prices for tomorrow is available, hence I miss the cheap spot during day hours. If I change charge completion time to 23:00 charging is planned just fine.

I understand the rationale of not planning charging periods until price periods for the entire charging period is available, but this has the mentioned drawback, when the spot prices are only available from 13:00 (in DK). Would it be better to plan charging for the time period where electricity prices are available? Electricity prices could be delayed too, of other services (Energi Data Service, Nord Pool, or other in the chain) fails.

ev_smart_charging_screendump_2 ev_smart_charging_settings

oveand commented 1 year ago

Hmm. Was playing a bit around with this yesterday and now today I've just restarted HA due to other configuration changes, and now charging is planned planned for today.. Perhaps this was a local glitch, fixed by a restart? I'll investigate..

oveand commented 1 year ago

Aha.. I've played even more around with the integration and found some interesting (inconsistent) behaviour

jonasbkarlsson commented 1 year ago

Thanks for all the comments.

Setting the Completion time to None is the intended way to "plan charging for the time period where electricity prices are available". I should update the documentation to make that clearer.

Looking at the list of behaviours above, all of them are the intended behaviour, expect the second "Setting Completion time to 07:00 (tomorrow)". I think that one should result in "No charging is planned". I will look into that.

jonasbkarlsson commented 1 year ago

This issue should now be fixed by #141 and is included in v1.7.0.