The value is shown correctly (128 kWh) but my logfile is full of error messages like this:
2025-04-27 20:11:06.022 [WARN ] [penhab.core.library.items.NumberItem] - Failed to update item ‘venus_charged_energy_total’ because ‘127.74’ could not be converted to the item unit ‘kWh’
I cannot find my fault - anybody has a hint for me?
You posted above a picture from the “Gain Offset Configuration”.
Below at “Profile Configuration” you have “Pre-Gain Offset”, so a text.
This field is for adding a number or decrease from the original modbus value and not for text.
I don’t understand what you mean either. 0.01 as shown is a dimension/unitless number.
Besides, read the info text right below: adding a unit would be ok, too.
@quan have you tried with 0.01 kWh ?
Then again, I’m not sure if that’s supposed to work at all. There have been issues with that in the past, search the forum. And you’re not using a recent openHAB version.
I’d update OH first then enable proper debug logging to better identify the source of the conversion error. Set debug level on org.openhab.core.automationand org.openhab.binding.modbus
If that still doesn’t work, switch to a JS transformation that you write yourself.
You are right, I thought he wrote “Pre-gain Offset” in this field, but it is just the headline.
I have a zero there, his is empty so should work also.
Sorry for the confusion.