-
Notifications
You must be signed in to change notification settings - Fork 166
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
$FE does not work when delay timer is active #88
Comments
The timer behavior is an endless source of headaches. I've tried on several occasions to make it behave nicely with overrides without having to turn it on/off all the time. The way that it currently behaves via the front button is currently different, unfortunately, from what's currently achievable via RAPI, simply because I couldn't think of all of the various scenarios that a RAPI client would want.
|
I know, sorry I'm being a pain!
Yes, that's an option. However it not only effects the Eco Mode function but also the main
I would expect the delay timer to stop any active charging session at the delay timer end time. |
No, you're not being a pain at all! When I finally sat down and fixed the timer override via the pushbutton, I knew that I was not solving any of the issues via RAPI. I was just waiting for it to bite me in the ass and have someone complain to me about it ;) This issue is closely related to your other issue, One thought I had was to give you a RAPI command to simulate the short button press, but the behavior won't be to your liking. When the short button press wakes up the EVSE, the timer is disabled until either the EV finishes charging, or is disconnected, upon which the timer re-enables itself. It's easy to see what's going on via the LCD, because the timer icon disappears while it's disabled. I feel this is the best behavior for the front button, since turning the timer on/off is such a big chore. A typical user wants to just leave the timer on all the time, and be able to override it when they need a charge. So time/charge limit also override the timer, and run their course before re-enabling it. We need to come up with a way that both behaviors (current front panel behavior->charge past timer end and your intended behavior->stop at timer end) are supported, without causing strange behavior when say, a user does something via WiFi and then goes to the front panel and presses the button, or vice/versa. |
I could live with with that. Even though I still think end time should always mean end time I can understand you thinking. In practice I doubt it would be an issue / many users would notice that the EV charged to full when overridden using the start / stop button on the interface. If this is the easiest solution then let's just go with this.
Making the operation of the physical button and the web-interface button consistent is defiantly a good idea. Consistency is actually probably the most important thing |
Sorry it's taken me so long to get back to this. I've been too busy with work and personal issues. I've found some caveats to implementing a short press simulation button. It would work OK when the EVSE is in normal operation, there are cases when the behavior is not a simple toggle of sleep/wake:
(1) I guess we could just ignore, since it's very unlikely Please have a look at BtnHandler::ChkBtn() to see the current code. Proposed command/response: Would the response contain sufficient information, or do you need something else for the web UI? |
Hi, no worries. Totally understand. What would happen if the proposed Would you recomend I change the web interface to use I think the proposed state response would be perfect. The web-interface just needs to know the current state. |
Hi, Note that I found some unexpected behavior. Here is the RAPI command/response sequence when the EVSE is idle and ready: $F5 <- send Do think it's still useful to return the EVSE state, or should we save some code space and just return $OK? The code is in the test branch. Once you've verified that it works as you need, I'll merge it to development |
Thanks. The wifi gateway already check status using the standard status command, therefore I don't think it's needed to return status here and could confuse things. I vote saving code space and just returned ok |
Argh, sorry, it's $F1, not $F5. F1 - simulate front panel button short press latest code is in test branch |
Nice, As you mentioned, an expected side effect of this is that when in a menu the I think you can close this issue once these new changes have been merged 👍 Thanks a lot. |
pushed fix to dev branch in D5.0.0 |
Sorry to post another issue, I've just noticed that
$FE
cannot be used to start a charge (change state from sleeping > charging) when delay timer is active.I have a very useful use case which requires
$FE
to work when the delay timer is active e.g.This all works apart from
$FE
does not work when delay timer is active.The text was updated successfully, but these errors were encountered: