tuya / tuya-iot-python-sdk

Tuya IoT Python SDK for Tuya Open API.
MIT License
117 stars 47 forks source link

BHT-002 thermostats reports wrong temperature #62

Open midstar opened 1 year ago

midstar commented 1 year ago

BHT-002 thermostat (sometimes called Moes) temperature conversion is wrong.

The temperature to / from the thermostat through the Tuya Open API is reported as an "Integer data type".

According to: https://developer.tuya.com/en/docs/iot/datatypedescription?id=K9i5ql2jo7j1k -> The Integer value shall be divided by 10^(scale value) to get the temperature value in Celcius.

However, BHT-002 expects the integer value to be divided by 2^(scale value).

Is this an issue in the Tuya IoT Python SDK or in the firmware of the thermostat?

Note that the temperature is reported correctly in the Smart Life App, but it is reported incorrectly in the Tuya IoT Development Platform (https://auth.tuya.com/).