[Milestone 5.2.0.M5] Got error: Channel temp_value creation aborted, unit "°C" has no known dimension, please report as bug

After installing the new Milestone version M5 (previous openhab-5.2.0-SNAPSHOT from april 2026) I receive next error when starting:

Channel temp_value creation aborted, unit “°C” has no known dimension, please report as bug.

What can I do about this? Or has it to be repaired in the Tuya Binding?

The item it is about is:

Dimmer WCDBuitenTempValue “Temperature” (gTuya) {channel=“tuya:tuyaDevice:bf0acfb055d6b19164by7k:temp_value”}

Any ideas?

The Item type is a Dimmer. Dimmer items never carry a unit. They can only be an integer value between 0 and 100.

I assume this temperature channel is for a light’s color temp? If so it’s probably reporting a value in the thousands of Kelvin. your Item doesn’t have a unit but core is assuming it’s a Number:Temperature Item without a unit so it’s converting the K to °C but that’s still going to have two problems. Dimmers do not support units and the value is almost certainly> 100.

Ultimately it’s a Channel Item Type missmatch. This Item needs to be a Number or Number:Temperature or you need to use a profile to convert the number coming from the channel to meet the constraints of a Dimmer Item.

Note, you do not require a Dimmer Item to use a setpoint or slider widget to control it.

Hi Rich, thank you for the explanation but… I think I can’t do anything about it. It is all controlled by the Tuya binding. There it has to be solved in my opinion.

After automatic discovery of the new device (preferred method), all channels should be created automatically but now it is stuck on this error.

It is a DIN switch and the temperature is a real temperature of the module in degrees celsius.

So I call for help from one of the Tuya developers.

Not that familar with tuya, but what I think @rlkoshak is trying to say is the channel is not the problem. The Item you created is not okay. Delete the Dimmer Item and create a Number Item to link to that channel. See how that works

Edit: Pulled these two lines out of your github issue log before the error msg

{"code":"temp_value","value":36}
{"code":"temp_value","dp_id":47,"type":"Integer","values":"{\"unit\":\"℃\",\"min\":-99,\"max\":999,\"scale\":0,\"step\":1}"}

Thanks for your input but also with remarked out item (also, without item defined) the error occurs and the device is not created on discovery.

The problem is also not the item definition but the problem is the Tuya binding is unable to create the device with the belonging channels because in one channel there is an error.

As a workaround I used an old things definition (jsondb) from a version where the device worked fine. I manually remove the channel with the problem. The device is back now without the erroneous channel.

I created already an issue on Github.

your code goes here

Issue on Github