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

Dynamic current control only increase and don't reduce current #42

Open
blackbird0589 opened this issue Sep 28, 2023 · 8 comments
Open
Labels
bug Something isn't working

Comments

@blackbird0589
Copy link

Hi, I've a question regarding dynamic current control.
In my case the wallbox starts with minimum current of 6A.
When there is more sun power available pv_excess automatically increases the charging current.
If pv-power is reduced the automation don't reduces the charging current, but interuppts the charging process.
Later it starts again with charging at lowest level.
Screenshot_20230928_100203_Home Assistant

Is this a bug or is this as intended?

Thanks for support

@blackbird0589 blackbird0589 changed the title Dynamic current control only increase and don't reduce Dynamic current control only increase and don't reduce current Sep 28, 2023
@boxerone
Copy link

boxerone commented Oct 2, 2023

same for me
thanks for clarifying

@InventoCasa InventoCasa added the bug Something isn't working label Nov 5, 2023
@InventoCasa
Copy link
Owner

InventoCasa commented Nov 5, 2023

Could be a bug, as I also observed a similar behaviour last month. Will investigate further the next time it happens.
You can help by providing an excerpt of your Home Assistant logfile, which contains the logs of the script during the occurence of the problem.

@madeinoz67
Copy link

Ive seen this occur also, and from what observations I saw was for a wallbox as well, however dynamic current control has a resolution of 0.1A while the actual wall box has a 1A control resolution, so when calculating the amps to decrease was only small amount below the threshold of the wall box, e.g. 0.7 difference, so wallbox stays at its current setting, while excess power is dropping below -10 as per setting and i think it then load sheds, i.e. switches off

@madeinoz67
Copy link

madeinoz67 commented Dec 21, 2023

Ive tested my theory today and appears to be working how I thought.

What I think is happening is the current increase/decrease calculation when run is saying it needs to increase/decrease by a small amount e.g. 0.2A and then adjusts the devices power history accordingly, and sends new current setting e.g. 2.2A to charger, however a) the charger doesn't change as below its adjustment resolution of 1A, and b) the calculated power history of the device is now incorrectly showing a lower/higher value, when in fact nothings changed, when needing to decrease, it ultimately load sheds by switching off, as there no change in output seen.

As a quick and dirty test I changed the calculations for increase/decrease current to just return integer
image

Result is it adjust output current correctly for the device when required to load adjust. unfortunately my battery was full so test ended earlier than I'd have, but will continue to monitor over the next few days as will be doing some KMs over Christmas, however today was a very cloudy day and generation was changing considerably, previously this would drop off when needing to decrease.

image

So I think the solution will be in the blueprint is to select the minimum controllable amps/resolution (boolean: is_wallbox?) and calculate accordingly based on this setting as the default is too fine for wallboxes that only deal in 1A increments

Also a side note on this, I'm now finding my current increase much quicker than it did previously, where as before it would take ages due to this and being export limiting (see #47)

@madeinoz67
Copy link

have been testing over the last few days with the quick and dirty fix in place mentioned above and confirm its all working, have not had a load drop event occur, the charge current adjusts for additional household load as shown about 9:30-10am when dryer, washing machine, air conditioner and dishwasher came on

This was a 20-70% charge after a 500Km round trip the day before, same with drive in the afternoon where you can see it topping battery backup to 70% as the PV production is diminishing, due to late afternoon sun.

A02CA3FB-280F-434B-BB9E-ADD9641692A0_1_102_o

052117EE-BAD7-467B-B80E-38FA137F1D9C_1_102_o

@Hamudulu
Copy link

Is this fixed? Same issue in my setup with a ac-elwa…

@blackbird0589
Copy link
Author

Not for now. I had no time to try it as mentioned in the last posts.
@madeinoz67 could you please explain step by step what to change or do you have a repository which contains your modifications?

@jurviz

This comment was marked as resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

6 participants