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
[keba] item "maxpresetcurrent" is not able to update since update to openHAB version 4 #15876
Comments
after change the refresh interval from 60 to 10 this error occurs:
|
@maihacke & @kaikreuzer do you have an idea how this can be solved? |
This issue has been mentioned on openHAB Community. There might be relevant details there: |
I'm not sure what the problem is here. The log shows, that the setting for maxpresetuser was accepted by the box (curr user):
|
There might be a problem with cache initialization, but that should not block the curr user setting: KeContactHandler.java
Error log says that cache expiry must be greater 0, that Math.max may produce 0. If refreshinterval is <= 5. |
The value in "curr user" is wrong. It should contain the value 6000 and not 6635. We set the value in a rule The item Keba_CurrentRangeA is defined as number type in the keba binding. If we adjust the rule and set the value via the modbus tcp binding, the value in curr user is set correctly to 6000 in the wall box. The item Modbus_Keba_Current is defined as number type in the modbus tcp binding with write address 5400. |
From your item name I assume you are setting the maxpresetcurrentrange channel. So your value is interpreted as percentage value of max system current. If you want to set a specific max current in mA you better use the maxpresetcurrent channel. |
From my understanding you are sending the value 6 to this channel. The minimum value is 6000.
Does this help? |
Unfortunately this doesn't help. I created the following rules:
This is the log output:
First the value 7000 is adopted, then 10 seconds later it is automatically adjusted to 6. |
I think there are problems with the unit conversion.
Also logs with DEBUG enabled for "org.openhab.binding.keba" would be helpful. |
The rules work if the item is defined with Number:ElectricCurrent.
Why does the item have to be defined with Number:ElectricCurrent in openhab version 4? This was not necessary with version 3. I have always defined all items in all Things (not just keba) with Number:Point. This gives me flexibility in the rules and I don't have to worry about converting the values to Int, decimal or number. |
OH4 introduced a new system for units of measurement (https://github.com/openhab/openhab-distro/releases/tag/4.0.0#breaking-changes-that-require-manual-interaction-after-the-upgrade). Maybe there is a simpler version than including the unit in the command string. I personally found this variant working for my rules and didn‘t investigate further if a simpler solution exists- but it might be worth a try. |
My rule also works without the unit "A" in the sendCommand: Keba_CurrentRangeA.sendCommand(7) |
Expected Behavior
Changes in item
maxpresetcurrent
are transferred to the KEBA wallbox and the charging power is changed accordingly.Current Behavior
We set the value of the item on a sitemap or in a rule to 16 A but the value will not update.
See the attached log file.
keba_log.log
Additional information
We migrated from openHAB version 3.4.4 to version 4.0.4. Our openHAB instance runs on a Raspberry PI 4, installed with openhabian. Before the migration, openHAB was able to update the item
maxpresetcurrent
of our KEBA wallbox. So we were able to load surplus solar power into our EV. Since the upgrade, openHAB does no longer update the value current on our wallbox, it only reads the values from the keba-wallbox. This problem occurs also in all openhab versions 4.x installed with docker-images on Synology NAS and it works in all openhab 3.x versions with docker-images on Synology NAS.Described workaround in issue-15728 does not help in our case.
This issue has been mentioned on openHAB Community: https://community.openhab.org/t/keba-binding-does-not-update-current-value-on-wallbox-with-openhab-4-0-1/148365/4
The text was updated successfully, but these errors were encountered: