-
-
Notifications
You must be signed in to change notification settings - Fork 33.8k
Correct current temperature for tuya thermostats #66715
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
Hey there @tuya, @zlinoliver, @METISU, @frenck, mind taking a look at this pull request as it has been labeled with an integration ( |
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
Mi "upper_temp" field looks like: "upper_temp": { "type": "Integer", "value": { "unit": "\u2103", "min": 0, "max": 100, "scale": 0, "step": 5 } } The difference in this case ist step. scale == 0 and step != 1 or maybe this only applies to "upper_temp"? |
id suggest we'll use and step!=1 as part of the if clause rather than binding it to the dpcode |
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
I submitted a patch changing the if clause as suggested. Thus the division by 10 is only performed if scale == 0 and step != 1 |
@frenck Please be so kind to try again if the current version now shows the correct value for your thermostat |
@SaSa1983 Yeah I know it will for all test equipment I have. Let's merge this and try this during beta to see how it pans out for others 👍 |
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
@frenck Many thanks for the quick fixing. Now finally I can work on an climate automation. |
The same problem is with "target temperature" after 2.8 update. 2.9 update does not help. Instead of 20 degrees it shows 100 degrees. So it is multiplied by 5. Please help. |
Breaking change
Proposed change
Type of change
Additional information
Checklist
black --fast homeassistant tests
)If user exposed functionality or configuration variables are added/changed:
If the code communicates with devices, web services, or third-party tools:
Updated and included derived files by running:
python3 -m script.hassfest
.requirements_all.txt
.Updated by running
python3 -m script.gen_requirements_all
..coveragerc
.The integration reached or maintains the following Integration Quality Scale:
To help with the load of incoming pull requests: