victronenergy / dynamic-ess

MIT License
90 stars 7 forks source link

[Feature]: Plan for car charging #41

Open SimonYoungtree opened 1 year ago

SimonYoungtree commented 1 year ago

Contact Details

siempoot@gmail.com

Description

Dynamic-ESS has troubles foreseeing car charging. In fact it dumps the house battery during the evening and then at night, when I charge the car (23:30u and on) the house battery is empty and the charging is done from the grid. The house battery dump should have been done while charging the car. I also charge the car sometimes during the day, when at home and the sun shines. There is no distinct rhythm for this. Could you offer an approach for this?

(FYI I have about 40kwh nett capacity in the house battery)

Suggested Solution

Could you offer an approach for this?

Alternatives

I have no insight in the learning capabilities of the dyn-ess algorithm. I could imagine that dumping the battery is postponed until the expensive hours in the morning (6-9am, or maybe longer) and never done during evening hours. In that case dyn-ess should offer an option to allow dumping to the grid only starting at 6am (only if room needs to be provided to catch the harvest from the sun during the day)

Additional Context

I have 40kwh net storage in the house battery. Typically charging the car will take 20-40 kwh. Sometimes more. my house consumes 8-10 kwh daily, but this can double in winter

LecramRed commented 1 year ago

I have the same issue. I am now charging my car while the energy price is low. In stead of charging the home battery and car battery from the grid, it is unloading my home battery into my car. In this way, there is no energy left at the end of the afternoon, so the dump at 19-21 hours, when the energy price is high, will not succeed.

mdkeil commented 1 year ago

In stead of charging the home battery and car battery from the grid, it is unloading my home battery into my car.

for this case, you can (auto)set the victron to "charger mode" to prevent charging from battery to car.. or you can (auto) limit the discharge power for this time period.

SimonYoungtree commented 1 year ago

Yes, you can tweak the system, but this is not optimal. An algorithm to determine when to optimally charge, discharge, freeze battery, etc., can only take things into account from which it "knows" what is going to happen. This can be from history (usage), or from the future (pricing, amount of sunshine), but a car charging event that happens sometimes during the night, sometimes during the day, or sometime not all is such a disturbing big event, that an algorithm cannot cope with it. You need some means to let it know ahead that the event will take place at some specific time.

LecramRed commented 1 year ago

I solved it for now with a flow in Node Red. When the current through the car charger exceeds 1000 Watts, the inverter power is set to zero. And back when the car charger current drops. image

LecramRed commented 1 year ago

May be this works: put the installation at the critical load, except the car charger. Than set this setting (only critical loads); image

SamuelBrucksch commented 1 year ago

The issue is not only, that the battery is drained by charging the car, but also that the prediction changes. I also randomly charge the car, so it probably is not really possible to estimate it. So there should be a way to tell the system that the car is charging and that it should not count that to the consumption prediction algorithm.. I can for example tell Victron with how much power the car is charging, so it can be substracted from the current power readings.

Another way would be to provide a custom consumption profile, which can be calculated by node-red for example, where the EV charger power is already removed.

mman commented 1 year ago

@SamuelBrucksch I have a custom node-red flow that reduces Multiplus Max Inverter Power to 90% of what the EV charger is pulling every second and that way I can guarantee that the battery is essentially left alone when the EV charger is active. Agree 100% with you that EV car charging has to be treated very specifically in the Victron world (and all other home PV systems FWIW). I would even go that far that it has to be treated as a special entry on the "consumption" charts because it really negatively affects the consumption forecast and breaks everything else... But I'm sure fine folks at Victron are all aware of that...

vbdaniel4 commented 9 months ago

Solution could be: extra meter (or input via mqqt or something) for the car wall box. Then dynamic ess can handle forecast better. Dynamic ess could decide if price is high/low, therefore decide if it should use battery capacity for charging the car (now), or keep power for later (evening, early morning)...

aterjung commented 6 months ago

Hi, i did a look in the source to see if i could do anything to remove my car Charger from the forcast. Unfortunately, it seems to happen all in VRM cloud. I have not found andy code that submits meterdata or the like in this code. I have an extra meter for my WB and could easily remove the Chargers consumption from my Grid-Meter data cause a allready suply it via mqtt. But in this case i will lose the ability to charge the car from the PV Panels. Is there anything new on this topic?

arrow1800 commented 3 months ago

same here, would love a fix for this.

johnsonhdw2 commented 3 months ago

same here, dynamic ess is working good but the forecast is being messed up when charging the car on different times of the day. I could easily subtract the charger consumption but then I cannot charge from PV/ Victron does not have the correct overall consumption data. It would be really nice to remove the car charging completely from dyn ess, since this better being done with something like evcc.