iRayanKhan / homebridge-tuya

A Homebridge plugin to control Tuya devices locally.
MIT License
390 stars 162 forks source link

flipping temperature #233

Closed Earnstl closed 3 years ago

Earnstl commented 3 years ago

Checklist

Describe the bug A clear and concise description of what the bug is. I was able to integrate an InkBird IBS-M1. The schema looks like this: [Tuya] SimpleHeater changed: {"101":false,"102":0,"103":68,"104":955,"105":20000,"106":"AAMAAQRYApz/WAKc/yADZAAAAAAAAADoVaoA","107":0,"108":30000,"109":30000,"110":20000,"111":"AQAAAAJYApz/WAKc/yADZAAAAAAAAAAAAAAA","112":0,"113":30000,"114":30000,"115":20000,"116":"AgAAAAJYApz/WAKc/yADZAAAAAAAAAAAAAAA","117":0,"118":30000,"119":30000,"120":20000,"121":"AwAAAAJYApz/WAKc/yADZAAAAAAAAAAAAAAA","126":false,"128":30000} I was able to get the datapoint for current temperature via the type "SimpleHeater". -> 104 I do not use the switching function. As far as the temperature will be shown for a short period I get the right data and devided correctly by 100. Unfortunately after a a second the reported temperature flips to 100, back to the current temperature, back to 100 and then stays there. Sometimes after a refresh it flips more then 2 times.

To Reproduce Steps to reproduce the behavior: make use of a temperature sensor

Expected behavior A clear and concise description of what you expected to happen. Show the current temperatur only. No flipping.

Screenshots If applicable, add screenshots to help explain your problem. image image

Environment (please complete the following information):

Additional context Add any other context about the problem here.

iRayanKhan commented 3 years ago

Fixed in 2.1.0, thanks @xortuna!