Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extend schedule if not reached target SOC at end of schedule #346

Open
AnderssonPer opened this issue Dec 10, 2024 · 3 comments
Open

Extend schedule if not reached target SOC at end of schedule #346

AnderssonPer opened this issue Dec 10, 2024 · 3 comments

Comments

@AnderssonPer
Copy link

Background
My grid provider has recently introduced a fee based on peak power consumption. Charging at full power during one hour is way more expensive than charging at lower speed for several hours. The fee is also significant higher during daytime (06-23) than during night (23-06). So to get the lowest possible fees you need to charge slowly during nights (while still trying to charge during the hours where the electricity is cheapest). This is handled nicely by the "Charge start/completion time" settings.

To further complicate things I have a SPA, which isn't easily controllable. It's set to heat the water during the night hours, but depending on the outside temperature etc it can take anything from 45 minutes to several hours. It can start any time during the night. To lower my energy peaks I have an automation that stops the EV charging when the SPA starts it's heating, and then reactivate it when the SPA is done (and if sensor.ev_smart_charging_charging is "on").

My problem is that if the EV is scheduled to charge between eg 01-04, and the SPA decides to heat it's water for 2 hours during that time slot, the EV charging isn't finished at 4 when the schedule ends. Since I have "switch.ev_smart_charging_keep_charger_on" set to off (to avoid expensive charging during day time), this means that the EV charging is suspended even though it has not reached the target SOC and there is more "night time" available before the day start.

Proposal
Either add a "switch.ev_smart_charging_keep_charger_on_but_only_until_charging_completion_time" or make the integration recalculate the schedule when it reaches it's end time and the target SOC hasn't been reached and there is time to extend the schedule without exceeding the "Charging completion time".

@jonasbkarlsson
Copy link
Owner

I think the integration does recalculate the schedule when it reaches it's end time and the target SOC hasn't been reached and there is time to extend the schedule without exceeding the "Charging completion time". Are you sure this doesn't happen?

@AnderssonPer
Copy link
Author

Hm, I thought that I tested it and found out that it didn't work. I will try it again during the weekend and get back with the result.

@AnderssonPer
Copy link
Author

You are right, it actually extends the schedule. This night it was scheduled to charge between 23 and 02, but as seen in the image it was extended. Sorry for false alarm. 🙂

But one detail in the image makes me a bit confused (and I think this might be the reason why I thought that we schedule wasn't extended).
The vehicle seems to stop updating the SOC level between 03 and 03:58, and then sets it to 79%. The target SOC is 80%, but the Charging is aborted at 04 anyways. Is this expected?

It also looks like the vehicle suspends the charging at 03:58 by it self, but since it still sends SOC 79% I guess that we should still try to have the charging active?

Screenshot_20241215-081800

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants