Heater Temperature has the decimal point in the wrong place #331
benghuckle
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Just added a new heater to tuya app/homebridge and noticed it was displaying the set temperature as 170 degrees 🥵
The cloud data also show it's a 170 when it should be 17.0
As well as looking weird you also get the error "This plugin generated a warning from the characteristic 'Current Temperature': characteristic was supplied illegal value: number".
Changing the following lines in lib/heater_accessory.js fixes this, basically divide the numbers by 10.
Line 50:
this.normalAsync(Characteristic.CurrentTemperature, this.temperatureMap.value/10, {
Line 88:
this.normalAsync(Characteristic.HeatingThresholdTemperature, this.tempsetMap.value/10, {
Beta Was this translation helpful? Give feedback.
All reactions