-
Notifications
You must be signed in to change notification settings - Fork 118
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
Charging does not stop in Eco(PV divert) #387
Comments
Me pasa lo mismo. |
I have the same problem |
I have the same issue for a long time. I would be very grateful if this bug is reviewed |
I also have the same problem, It is very annoying. |
Same here ... and also why is the timer deactivated in PVDivert mode ? It would make sure charging stops when there is no sunlight ... |
Thanks for reporting this issue, I think there could be a bug with different timezones and the delay timer. Could you try clearing the delay timer and seeing if the solar PV divert stops? And also try setting the timezone to GMT London? |
My car is in the dealership for service, I can't testit now. |
@VictorTorrens that is not unexpected, there are several mechanisms to stop the relay being damaged with lots of switching. There is a minimum time that the power will be on and the signal is smoothed to avoid too much switching. Both of these can be configured by enabling the advanced settings: |
I set it as 120 of minimal time of charger and sometimes never ends without available. |
Had a bit of a look at this and it does look like there is a case where if the divert codes does not switch start the charge it will never stop: https://github.com/OpenEVSE/ESP32_WiFi_V4.x/blob/jeremypoulter/issue350/src/divert.cpp#L208 so I need to look at if |
I am using v4.1.3 firmware and I have observed that when the charger is running and I start sending a positive MQTT command the charger will not stop. However, if I send exactly zero it will stop after a timeout. The OP should try sending a zero reference (instead of +4000) and see if the charger stops in PV-Divert mode. AND OpenEVSE should stop when sent a positive reference once the power falls below the minimum charge current. |
That is interesting. Since I calculate +E/-I with Python and feed that to MQTT for the OpenEVSE to read out, I could clamp to zero. But I'm not doing it since I do not agree with the principle that EV charging should stop when the current is balanced.
In summer I don't do that. With good weather there is so much solar I do not need to shift Power1. But in winter I shift it by -600W. |
There is certainly nothing in the code that is special casing 0, not to say that there is no issue it is just not an expected case. |
For the benefit of Jeremy could you try a test and see if you can reproduce my results? |
Yes, I can and will, but note that I am on 4.1.4. I will include a trend taken with MQTT Explorer. We have cloudy weather now, so will need to wait for a bit more sun to do a representative test. And I'll include the code. |
I have been thinking about this a bit more. I do not have to code much, the Power1 we want to feed to the OpenEVSE comes straight out of the DSMRv5, so all I have to do is point the +I/-E OpenEVSE to the topic dsmr/reading/phase_currently_returned_l1 and change its sign to negative. I don't think I can change the sign in the OpenEVSE subscription so I'll still need a bit of Python code: When the dsmr starts importing current, the topic becomes zero. It is then the other topic, dsmr/reading/phase_currently_delivered_l1, that becomes non-zero @jeremypoulter and @glynhudson I'd like to test my understanding with you and what I expect the OpenEVSE to do.
So my expectation of this test is OpenEVSE will never stop charging in this test. Is my understanding correct? |
To be clear about my test. Run your charger at some positive value over 6 amps. |
I did this exact scenario and It works with my charger too. I don't know why but it works. |
Ah OK, but that is not a representative test. I used to try sending MQTT data manually and saw "incorrect behavior". Glyn told me for the OpenEVSE in Eco mode to work correctly, it has to get an update from MQTT every 10 seconds. When I programmed that, the OpenEVSE started working correctly. So to make this a better test, I will reprogram and use the values you propose, but with an automatic MQTT update every 10 seconds. |
What does "It works" mean? Can you be more descriptive of how the charger reacted in your case? Also I agree with pdhoogh that you must update the MQTT reference at least once every 10 seconds or Divert Mode will not work. I should have said before that my references are sent every 10 seconds. |
@ayasystems can you post the content of |
[{"client":65538,"priority":50,"state":"active","charge_current":5,"auto_release":false},{"client":65537,"priority":1000,"state":"disabled","auto_release":true}] But this data is after stop it manually Yes, I saw that active was NO in my screenshot but eco was activated, I don't know why active was not. I think that you need xxxxx/claims in the moment not now, right? |
That is great, thanks. I think it must be something to do with that active flag. It used to be used to stop the divert messing up other modes but should be redundant now. |
Thanks, think I know what is going on, I will try and fix it this week. |
#431 has a fix for this issue, test binaries can be downloaded from https://github.com/OpenEVSE/ESP32_WiFi_V4.x/actions/runs/3118530150 |
Thanks Jeremy! Is this going to be rolled up in an “official” version 4.1.5 in some time or will that take many months before another point release is done ? I’m asking because I can wait a bit as we have entered the rain season here and there is not a lot of PV divert opportunity the coming months. I can be patient. Also, testing the fix would require a "Power1" testcode. Without any real sun, I'd need to shift the +I/-E. But if you'd like me to test it, I can. |
Bit of a catch 22, it will be released as soon as it has been tested, so if you can test with the PR binary that would be great. You can use the PV ratio to adjust the trigger level, for example a value of 0.5 will start the charge at 0.5 will start a charge at 3A (~700W), but will still charge at 6A |
Great! Will do the test. Since the previous test was using Required PV power ratio = 1.0 and I do not want to change the test conditions other than the new firmware, I will shift the power1 calc. I do not want to uncover another issue related to using Required PV power ratio other than 1.0. Rather I'd be looking for the update resolving the reported issue. I've downloaded and installed the new firmware. There is a new parameter "Random start adjust". What does it do precisely? Should I leave it at 600 secs default ? |
Testing and feedback of the beta will be very useful!
This setting is to comply with the new UK regulations governing charging points, it will apply an element of randomization to the start time of a charging session. You can set this to 0 if you don't want this. See #350. Here's a good video which explains the new regulations: https://youtu.be/jMagvdqlF9c |
Thanks for the video, Glyn. Instructive. We're not there yet in Belgium. I did some preliminary tampering. We may not be out of the woods yet... I'm still seeing behavior I am not expecting. Since there is heavy overcast and rain, my 10.4 kW peak solar array produces about 200 Watts... that is going to last at least a week. So yesterday I decided to do a little test following Jeremy's suggestion. That did not seem to work all right. Here is the event log:
So it seems there is still something in the initialization of the OpenEVSE that is not always leading to behavior consistent with the settings visible in the Web GUI. Resetting the WiFi seems to help. I also noticed a Current Shaper panel on the services tab. That is precisely what we need in winter! I see the idea behind it, I tried it but the behavior was a total mess so I stopped tampering with it, it seems that one is not ready yet. |
Some further test results. The behavior today was as intended. I also have a few suggestions. Contrary to weather forecasts we had 20% clouded sky, little rain and lots of sunshine. Test Conditions
Test ResultWhile Power 1 is above zero and the minimum charge timer has run out, there should not be any charging going on. That is precisely what happened. SuggestionFor the purpose of reducing wear on the contactor and in light of legislation trying to avoid peak grid load, as discussed in the video Glyn put a link to, I would propose a Minimum Idle Time, rather than a Minimum Charge Time. The test above shows that e.g. when the swimspa kicks in and the minimum charge time has not yet run out, the OpenEVSE keeps charging and causes a peak load of 4 to 5 kW. If that coincides with the sun being obscured by a cloud, as happened yesterday, the peak power can go higher than 8kW. The UK is putting in legislation for EVSE behavior to counter these peaks. In Belgium the electricity distribution tariff will add a load peak component. The smart meter registers the load in 15 minute chunks. If one 15 minute chunk shows 8kW continuous, that 8kW peak is used to charge you for a 8kW peak during the whole month. My proposal is trying to avoid such high peaks while still saving the contactor. |
Thanks for the suggestion, I don't recall why we did just the min charge time, but we can certainly add an idle time as well, both can be added and configured to suit a user's particular use case. As this is a new feature request, best to add it as a new ticket. |
Agreed. Taking away an existing feature and replacing it with another might make some customers angry with you too. Also, the minimum charge time is one way of not interrupting a charge session shortly after it started and before the car has fully initialized the charge session. My Peugeot bites back at this with a red status light on the charge port and refuses to take any charge after that as long as the type 2 plug stays in. That has caused me to miss a considerable charge on a sunny day a few times. I made another suggestion earlier to never break off an initiated charge before the charge current reached a minimum level (mostly 6A). That could possibly replace the minimum charge time for that use case. Thanks and a deep bow to the OpenEVSE Openenergymonitor crew. With the current state of the WiFi firmware, the OpenEVSE is sooo much better than last year for my use case. There may still be the occasional glitch, but my use case with Eco mode has now gone from "check this thing because I'm worried it is not doing the right thing" to pretty much "plug it in and forget about it". And I'm looking forward to the current shaper. That is precisely what we need for the winter. Way to go, guys!! |
Hi Jeremy,
I have not seen a way for opening a ticket, should I open a new issue with the new feature request so you can make a ticket, or did I miss something?
Met vriendelijke groeten,
Philippe D’Hooghe
Meidoornlaan 10
9820 Merelbeke
Belgium
+32 485 655 669
***@***.***
From: Jeremy Poulter ***@***.***
Sent: dinsdag 27 september 2022 15:30
To: OpenEVSE/ESP32_WiFi_V4.x
Cc: pdhoogh; Comment
Subject: Re: [OpenEVSE/ESP32_WiFi_V4.x] Charging does not stop in Eco(PV divert) (Issue #387)
Thanks for the suggestion, I don't recall why we did just the min charge time, but we can certainly add an idle time as well, both can be added and configured to suit a user's particular use case.
As this is a new feature request, best to add it as a new ticket.
—
Reply to this email directly, view it on GitHub <#387 (comment)> , or unsubscribe <https://github.com/notifications/unsubscribe-auth/AZFKZFUDFVJB74KDTEY46RTWALZEDANCNFSM522BCWMA> .
You are receiving this because you commented. <https://github.com/notifications/beacon/AZFKZFTSNTY5IRQXOHET4G3WALZEDA5CNFSM522BCWMKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOJMJJ5PA.gif> Message ID: ***@***.***>
<http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient>
Virus-free. <http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient> www.avg.com
|
Sorry, I ment issue ;-) use ticket in other places |
I use OpenEVSE always in eco mode, and send to the charger the current available power with mqtt.
The charger updates the value of avaliable power(Grid Import/Export) without any problem and it shows on the web UI, it updates every 5 seconds aprox.
But when the charger goes from available power (negative value), to not available power(positive value), the charger doesnt stop. It slows the charge rate to the lowest posible, 6A, but it doesnt stop.
Sometimes works properly, slows down the rate and then it stops the charging until power is available again.
I've seen similar issues from other users, seems related.
#283
#362
Before plugin the car, without power available.
Then if I have available power and plug the car, it starts charging properly
But after the power comes down to positive values, (unavailable for charging), it slows down charging rate but doesnt stop.
If I stop the charge by unpluging the car, it changes the state, waiting the car to charge again. Even if it keeps without available power.
If I plug the car again, it starts charging at 5A, minimum rate.
The only solution I found, is toggle eco mode to off and on again, then it works properly. Waiting for available power.
And with this the power cycles.
Sometimes, I don't know why, It works fine. It stops the charge until available power, but I can't find why.
Thank you
The text was updated successfully, but these errors were encountered: