-
-
Notifications
You must be signed in to change notification settings - Fork 12
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
[Bug]: Manual Override and Sleep Mode does not work as in OpenEVSE UI #339
Comments
Please don't use the switches for automations, use the service calls. |
The toggles are working as they should, "Sleep Mode" means charging is Here's the API that's being used for reference: https://openevse.stoplight.io/docs/openevse-wifi-v4/e3153e2367cb1-open-evse-wi-fi-api |
make_claim is even more confusing as after making a claim from HA I cannot then use OpenEVSE UI to toggle charge… After make_claim my timers are gone and UI toggle charge reverses. I guess I should release the claims or something but again I prefer how the button works... |
If you are charging based on solar output you should also be using the Solar PV divert, it'll adjust the available amps. All you should really need to do is automate |
The Solar PV divert is not what I'm looking for. I want to make sure home batteries charging is prioritized until they are, say, 95% full while consuming solar excess during the charging and then make sue I never discharge the batteries while ,charging. The reason we're using HA is to make all the automations work like we want and not how the manufacturers want us. |
I disagree because the override and sleep are somehow connected and as you can see on my video I cannot achieve the same state in the UI with integration switches. Anyway, I think I have my logic done and will test it the following days. Thank you for your work on this integration - it's always easier even though sometimes not everything is clear. Perhaps mentioning integration services (openevse.make_claim etc) and providing link to OpenEVSE API in the README would save your time for issues like mine :) |
Yes I haven't had much time to update the README just yet, it's on my to do list. |
I noticed the thread and I think I'm having similar issue so maybe you can point me to a right solution. I'm trying to switch between solar_divert and just max_charge. I can do PV->Full turning off What is the right path here? P.S. What are |
Here's the claims API: https://openevse.stoplight.io/docs/openevse-wifi-v4/221999f7bb3e5-list-evse-claims Sleep only turns on when the EVSE is either commanded to sleep (via the toggle), or if it's set to an auto schedule and the schedule has it set to disable charging at a specific time. |
What are your PV divert settings set to in OpenEVSE? |
So when you enable PV divert, that system's in control of sleeping the charger based on your settings there. |
If you toggle "Solar PV divert" switch it disable the self production. In the Web UI you can see that the ECO (Solar Symbol) is gone. This is what to expect when changing the configuration setting of self production. To change ECO-Mode (disable/enable) you need to take the selection "openevse_divert_mode" and change fast to eco. I just need to remark that this could be done better by using a switch. I think the most problem ist that the used update intervall for the integration is very so. That's why it's not possible to use the switch at all. For example if I flip the "Manual Override" from ON to OFF it toggle on the web-UI between AUTO-Mode and Disable Charge (sleeping) and the switch always stay in the ON-Position, because it belongs to the "openevse_divert_mode" selection! Just make it like it is on the web-UI, that is lesss complicated -> selection "Enable Charge" / "AUTO" / "disable Charge" (sleeping), a switch to toggle ECO (on/off), a switch to toggle the SHAPER (on/off) and one selection for the Current (here is also an fault: min current is 6A), nothing more. It would be great if this switches work like in the web-UI and also uses the same names and also the update interval would be much faster so the reaction of changing is noticeable. Now it only updates the values after 4-5 minutes! |
There is no update interval, the OpenEVSE pushes changes to HA. |
I just checked again the messages with MQTT-Explorer on the mosquitto broker that runs on my HA. There I can see all data in realtime. But the entities in the integration only change there values every 4-5 minutes. From where did the entities get there values - they are connect with the integration to the openevse IP and capture the data via tha API. Did the openevse API do push? |
Yes it pushes via websocket. |
I'm in a similar position trying to relate the operation of the OpenEVSE web page with the various switches and select function in the Home assistant Integration. I can also report the delay in updating but I think this may be the HA scan rate? I agree with the comments above about 'eco' and 'fast', it would be easier with a switch (unless you know of future modes)! At present I think most people either want a fast charge or a managed one. Sleep mode does not work (as previously commented) - very confusing. Despite the criticisms, they are not meant negatively, I very much appreciate the work - please continue! |
@simonjowett I've been using this integration for quite some time and everything works but you have to use the claims. |
There is no scan rate, states are pushed from the OpenEVSE over a websocket connection. It's real time.
The sleep mode is mostly for backwards compatibility with older OpenEVSEs, please use the claims service call to manage sleep mode more effectively.
These are the modes as set in the API. The OpenEVSE team may add additional modes, I'm not sure. |
I suggest that it should work like in the WebUI. Just leave the dropdown box and put all Mode inside: FAST, ECO, SLEEP. Leave a Switches for ECO-Mode to enable Solar divert and one to activate the Shaper. Write some IF statements to deactivate the divert and shaper switch when no ECO-Mode is selected in the dropdown. Remove all the rest switches, also the backwards compatibility ones, since they are confusing. |
OK - I've taken a look at this and realized I had the wrong version of OpenEVSE installed in H.A. I've now upgraded to the latest version here and my apologies on previous comments as they were against this dev0.0.0 version. I've now started testing under "Developer Tools" and practicing with the H.A OpenEVSE service calls. Yes, I can confirm they work immediately, but I guess you knew that all along! Still, I need to wrap my brain around this, (what seems to me) a confusing array of options. I realize this range of options comes from the differing needs of each user alongside the different environments we find ourselves in in our home country (mine is Australia). To explain the 2 main scenarios that I would like to happen:
Anyway, I'll do more work this coming w/e to see what I can automate. |
The API calls don't have an option for "auto", it would make things a bit easier. |
In fact Auto means there's no manual override ( or claim if you use claims ) state property. Toggling Auto on HA will just need to clear this property. |
Which is what toggling "Manual override" or "Sleep mode" does. |
I'm trying to mimic the openevse UI 3 button selectors in home assistant. Something that would solve it, would be to have a select entity with the 3 states:
edit: automation:
card yaml:
|
Have you tried the action: edit: nevermind you're using it. |
Yes that's what I've done, see my edited topic above. But it needs a template + an automation to achieve this. Not really UX friendly for some users. :) |
The problem
Also,
Sleep Mode (new)
does not seem to do anything.Please check my recording:
https://www.dropbox.com/scl/fi/xunx6tg5in8262rp7n64d/OpenEVSE-sleep-override-isssue-240515.mov?rlkey=tco4ktgdv5kh8ah4fgn6arr9r&dl=0
Thanks.
What version of Home Assistant?
core-2024.5.3
What version of OpenEVSE?
8.2.2 & wifi v5.1.0_modified
Diagnostics information
No response
Anything in the logs that might be useful for us?
No response
Additional information
No response
The text was updated successfully, but these errors were encountered: