-
Notifications
You must be signed in to change notification settings - Fork 117
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
Timer set charge_current claim with 0 amp #517
Comments
After some tests, the bug happen only at wifi module boot.
|
That was it,
and then return delay 1000, if ignoring the loop, it then set the pilot ok at 32A. |
…tion is not ready
@jeremypoulter , I think it's pretty related to #452 and co ( #450, #513 , #388, #481 ) as you've commented in evse_monitor.cpp: Perhaps setting up on esvemanager something like Set to active state first, wait a bit, then set the other claims props |
I will review it as, it is possible. |
I see Timer is setting a charge_current claim with getMaxHardwareCurrent() if EVSE is active when timer going to active.
But mose of the Time the claim is posted with "0" as max_current , so pilot is locked at 6A )
It looks like properties.setChargeCurrent(_evse->getMaxHardwareCurrent()); gives 0 for whatever reason;
This is part of code in scheduler.cpp:
if(EvseState::Active == currentEvent.getState()) { priority = EvseManager_Priority_Timer; properties.setChargeCurrent(_evse->getMaxHardwareCurrent()); } _evse->claim(EvseClient_OpenEVSE_Schedule, priority, properties);
I'm publishing getMaxHardwareCurrent() in /status to follow it, but it's always at 32A, I don't get why this part of code fails on scheduler.cpp
To reproduce:
ps: I have also tryied replacing getMaxHardwareCurrent() by getMaxConfiguredCurrent() and getMaxCurrent() and same thing happend
The text was updated successfully, but these errors were encountered: