Closed hp197 closed 3 weeks ago
In my own code I fixed it by injecting Switching_To_Single_Phase = FALSE;
on line 895 (in the IsCurrentAvailable function):
index 9697362..d12e38c 100644
--- a/SmartEVSE-3/src/evse.cpp
+++ b/SmartEVSE-3/src/evse.cpp
@@ -892,6 +892,7 @@ char IsCurrentAvailable(void) {
return 0; // Not enough current available!, return with error
}
+ Switching_To_Single_Phase = FALSE;
_LOG_D("Current available checkpoint D. ActiveEVSE increased by one=%i, TotalCurrent=%.1fA, StartCurrent=%iA, Isum=%.1fA, ImportCurrent=%iA.\n", ActiveEVSE, (float) TotalCurrent/10, StartCurrent, (float)Isum/10, ImportCurrent);
return 1;
}
It works on my machine... But I have insufficient knowledge if this covers all the usecases.
The upscaling from 1P to 3P has, AFAIK, never been implemented.
There was a PR from a user who was implementing this, but this PR was pulled back. It is a complex part of the software.
For the time being I suggest you use "Solar Off", "Always On" or "Always_Off", or, if that is too static for you, switch those settings via HomeAssistant.
awh, I might be confused with the serkri fork then.... That explains why I couldn't find a commit where this was changed.
I'll close the bug for now.
No this repo is the successor of the serkri distribution, it was never implemented there too. I should know .... :-)
Describe the bug In solar mode with C2 on auto, the smartevse is not upgrading to 3p charging anymore. The display on the smartevse says it is in 3f mode (this is set by Force_Single_Phase_Charging?) but its only charging on 1 phase.
What I think is happening:
Switching_To_Single_Phase = GOING_TO_SWITCH;
in the CalcBalancedCurrent function.AFTER_SWITCH
.AFTER_SWITCH
is never reset back to a neutral state, what causes this to never happen anymore:*** Note: I use EM_API as ingestion into smartevse. So my main and ev meter can be updated async. On start of a charge my mainmeter could report the charging current, but not yet by the evmeter (or the other way around) and might fool the phase detection function a bit (I also know the whole phase detection function is under review)
Upload your config
Upload a debug log -- can do later if needed