Tuya-local climate entity showing wrong set temperature by factor 10

Hi guys,

I’m trying to setup a heater with tuya-local. It works fine with the normal tuya integration, but I like it to be local only. When I setup the heater with tuya-local, it picks it up right away, which is awesome, but once setup en going to the climate entity, the set temperature is off by a factor of 10: when the set temp is 23 degrees Celsius, it shows the set temp as 2,3 degrees Celsius.

I’ve also tried to set up the heater with localtuya which I didn’t get working. I get as far as being able to set which ID belongs where, but when that is setup it just shows an empty climate entity. During the setup I can see that the problem is the other way around: the current temperature is a factor 10 to high.

Any idea how I can fix this issue while still being able to control the device locally? Thanks!

Hi Ilikebread,

Not sure if the climate integration will take a template directly so create a template sensor that reads that entity & multiplies it. Then plug the template sensor into the climate thing.

It seems the temperature sensor is reported correctly, it’s only the set temp (the 2,3 C) that has the issue. Is there a mechanism to alter the set temp only? (I haven’t looked into the docs yet)

The set point is a number you set. Did you set it to 2,3?

Hi guys, thanks for helping out.

I haven’t found anything to alter the set temp only and multiply it by 10.

@Sir_Goodenough, when setting the temp on the physical device to i.e. 20 C, the value reported to Home Assistant is 2,0 C. So it is not something I set in Home Assistant

In that case, I would set up an automation to listen for set temp calls OR set something up that allows you to react to set temp calls (and have logic to catch if it’s a weird temp call; 2.3 C set point is not normal) if that functionality isn’t available natively.

Something like: when climate is set to X and (0 >= X <= 4) : Y = X * 100, re-set temp = Y. (2.3 * 100) = 230, when whatever is mangling the set temp gets it, 230 / 10 = 23.

  • 0 >= X <= 4 : the set temp is greater than or equal to 0 and is less than or equal to 4. so if the set point was mangled from 0-40 C to 0.0 - 4.0 C, deal with it and hopefully the set point is re-mangled into what you actually want. 0-4 C should be a safe bet, most home thermostats dont use those set points.

Just food for thought. I’d open an issue in localtuya / tuyalocal repos with debug logs to see if they can help with the set point.

Edit: If this works, it would result in more calls and unknown issues with that situation.

Thanks for the automation, but that doesn’t feel like a solution to me.

I came across a fork of localtuya: GitHub - xZetsubou/hass-localtuya: 🔹 A Home Assistant integration to handle Tuya devices locally "fork from localtuya"
That one manages to setup my heater correctly, so this issue is solved. Thanks for the help!

I have a very similar issue to this - my device is off by a factor of 5 on both current and set temps

Is there any way to override values at the entity level?
This is main Tuya integration and not Local as this device doesn’t seem to wokr with local