-
Notifications
You must be signed in to change notification settings - Fork 10
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
Phase switching does not work correctly #380
Comments
I'm sorry, but I sent it too early. I have now completed the description. Can you reopen the ticket? |
First step: please check if log contains a message "Using min time between phase switching of" (severity info). If yes, X2 switch is recognized for switching. But I guess message is missing and X2swithc is not recognized correctly. Then, please go to settings and disable X" switch. Save, Enter again and re-activate switch. Save. |
You are right, there is no message in the log like "using min time....". I now turned off the X2-Switch and done save+close and activate the checkbox with save+close. The adapter was restating after save+clos, but there is nomessage "using min time...". But if i turn off the X2Switch, the "Invalid value for 1p3p" does not appear. |
I think you currently have to set up at least stateRegard or stateSurplus to make it work. |
Ok, I wrote my Energymeter object into stateRegard and now I have following behavior:
|
can you provide a debug log of the last step you described? |
Here the debug log. Value of currentUser was 6000.
First I set X2 to 0
Then I changed the currentUser to 7000
And now we got that X2 is not allowed (because it was during the cooldown)
Is this a bug in the Keba api? |
This is a try after the X2 cooldown
|
If I understand you right, with setting up regard state almost everything works fine? You're "only" wondering why Keba denies "curr" command? But switching 1p and 3p works? Then, perhaps this is an error or Keba not only denies switching phases but also chinging current while cooldown. |
Ok, when I see it right, no other log entries occurs while setting current to 8000 and 9000. No messages ("UDP datagram from 172.16.2.4:7090") come in? And with "report 2" x2 switch has changed to 1? |
OK, thank you very much for your time. I just sent the commands individually using a UDP tool called “Packet Sender”. If I change the charging current with "curr nnnn", then the wallbox automatically sets X2 to 1. This means that this problem is due to the wallbox and not the adapter. If I find out why the wallbox is behaving so strangely, I'll let you know |
So, after some research and a few tests, I suspect that the problem could also affect other users, but I also found a solution for it. First of all, my insight:
What I noticed while browsing the Keba documents
But now the big question: When I have to use the currtime command, how can I trigger this command with this adapter? The UDP command uses 2 parameters (mA and seconds). But when I change the currentTimer object I get the following error message: |
Thanks for that investigation. The easiest way would probably to ask Keba about their logic for self-adjusting X2 switch. |
currtime is not yet supported for update. But this is not much effort to enable. |
Ok. let's see what solution we have earlier :) My temporary workaround ist to use a UDP out Node in Node-RED and send the currtime cmd directly to the wallbox. It is not clean, but it works. |
I just upload a new version to git. X2 should now work without regard or surplus state. Also currtime should now work (also set timeoutforcurr state). |
Oh, that's fine! |
Yes, it's easy. Activate expert mode by klicking the symbol look like a masked head. Then on the adapter tab there's a git symbol (like a cat). With this, you can install special version. Klick on the github tab and select kecontact and install. Now, you're using the latest github version. |
So, now I installed the Git adapter and tested it again in passive mode. Changing the charging current via currentTime now works, but only if you also set timeoutCurrentTimer to >=1. After the value changed to 0 after restarting the adapter, I first looked for an error, which wasn't there :-) It would be great if the default value is 1 instead 0. A intial time of 0 makes no sense. In the manual you will find the following: But something is strange in this version: If the UDP value of "Curr Timer" or "Curr User" changes, the data in the adapter is not updated. The refresh interval is set to 5 seconds. |
Hm, I can not reproduce the "curr" refreshing problem yet. So I think it was an other issue. |
Thanks for your feedback. I introduced a default value for curr timeout. But I think it is only relevant for new instances. But it will help new users. It's on git. |
Describe the bug
Since I replaced my KEBA P30 Dienstwagen wallbox, the phase switch is always activated as soon as I set enableUser to true or currentUser to a different value. In addition, the following warning is logged in the log every second:
Invalid value for 1p3p switch: 0 (type number)
or
Invalid value for 1p3p switch: 1 (type number)
I have activated the dipswitch 1.3 (1.2 is off). In the KEBA webfrontend the phase switching Option is on, with UDP. The IOBroker Adapter is configured in passiv mode with 5 second refresh intervall. The options "phases switching uses x2..." and "contactor is NO" are enabled. This configuration worked since 3 months with my old Wallbox whith old Firmware, but the software-modules where inconsistent and so Keba replaced it with a new one.
The new wallbox should just do this what the adapter transmits, but the adapter (or the wallbox?) set automatically the x2phaseSwitch to 1 if I change the currentUser value. So if I have selected 1 phase charging with 10A and change the current to 8A, the Adapter are changing the value x2phaseSwitch from 0 to 1 (3 phase charging), but should remain at 0 (1 phase charging).
To Reproduce
Steps to reproduce the behavior:
Expected behavior
At step 9 the wallbox sould charge with 1 phasee and 8A.
Screenshots & Logfiles
Attached is the screenshot of the log. Regardless of whether the value of x2switch is 0 or 1, it is constantly logged that the value is invalid.
After restarting the keContact adapter, only null values are visible in the configuration of 1p3pSwitchIsNO.
Versions:
The text was updated successfully, but these errors were encountered: