Update failure (energy values - retrieved from modbus), transformations and logfile errors

I’m trying to use modbus values from a battery in openhab. Values are retrieved via modbus binding.

Register (registers see file attached below) 33000 containes “total charging energy”. the value 12812 means 128,12 kWh.

This is my item configuration:

And this is my thing / channel-configuration:

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?

I use openHAB 4.2.3 actually.

Registers see attached picture:

You have in the “Profile Cofiguration” letters instead of a number.
Change this to 0 and the error messages should stop.

I do not exactly understand what you are meaning.
Which field contains letters and should contain numbers only?

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.