-
-
Notifications
You must be signed in to change notification settings - Fork 30.7k
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
tuya thermostat Temperature still wrong after latest update #66853
Comments
tuya documentation |
Hey there @tuya, @zlinoliver, @METISU, @frenck, mind taking a look at this issue as it has been labeled with an integration ( |
I suppose here is problem? Also it should be heat only, not heat_cool.
|
Still multiplied by 5 for target temp in update 2022.2.9 Device Information debugging screen in tuya iot says 150 ( 15 ℃) Strange thing is the status section in HA integration diagnostics is correct:
|
Yes.. i confirm the same.. but it is not "temperature" it is "target temperature" problem |
@maxkrok so it is not the same? |
Not the same comparing to the title of issue. But the same with people are reporting on their screenshots |
@frenck in my OP screenshot you can see actual target temp is 65, but HASS reports 140. I don't know where people are getting 5x multiplication from, this is 2.15x multiplication on my end unless I am misunderstanding. Also, "actual temp" (reported by thermostat) is multiplying by 2.62x or something |
Definitely it was ok on 2.7 core version.. |
You are correct, I have updated my comment. Tested both versions (2022.2.7 and 2022.2.8) as a custom component. |
Same problem here: 5x multiplication due to the "step": 5 reported.
from diagnostics:
while the status is 5x to high (from diagnostics):
No update available for the device. |
@frenck, you wrote:
2022.2.7 worked (and still works) correctly So it is not a change on Tuya's side that causes the error. |
I wrote a bit more, did you read it? Tuya updated the documentation, which I linked as part of the comment you are only partially quoting; Our previous implementation was incorrect. We now comply. Do you think our implementation is incorrect? Could you point out the part of the logic that isn't correct in that case? Please note, Tuya sells chips and software products, manufacturers can customize those. We do not (and cannot at this time) support that. If your product doesn't work as specified by Tuya (and thus is customized by the manufacturer), there is not much we can do. |
Why to break a working functionality and then gives big lectures about high matters? Please repair the broken logic, which we reported. |
@maxkrok Why to break a working functionality and then gives big lectures about high matters? Please repair the broken logic, which we reported. Sorry, that doesn't sound reasonable and oddly demanding in many ways. Do you suggest breaking others to fix your use case specifically? I think it makes way more sense Home Assistant to follow the standard, so most things just work as expected. Anyways, I'm happy to see a contribution that fixes it for all cases. |
That would in that case be a manufacturer-specific implementation. If you provide the diagnostics file, I'm happy to show you the calculation and why your device is probably not working according to standards set by Tuya (not Home Assistant). |
@frenck I have attached the file in the issue you closed. I am perfectly aware of where the values presented come from, I can apply the formula you indicated, but I emphasize: 2022.2.7 worked correctly, 2022.2.9 works incorrectly. The only place where there has been a change is in the HA code. |
That might be true, the other way around will be the case for many others. If your device worked because of a bug, that is unfortunate, but that is not something we do anything about 🤷 If your device is not working correctly, I recommend contacting Tuya (you can submit a support ticket when logged in into your Tuya IoT account). We cannot change your device. |
I just made a PR to fix the scaling and make it in line with the current Tuya documentation: #69348 |
@starkillerOG hopefully @frenck will accept it for version 2022.4 |
let us pray to Holy Tuya and His prophet comrade @frenck |
I checked this example and it is easy to understand and it is logically. |
@frenck checkmate... |
@maxkrok He knows this, but is unable to accept the fact that he made a mistake (through no fault of his own, because the earlier description was very inaccurate). |
@Santanachia then we have to vote to disqualify this person.. |
@maxkrok No. He created a lot of great code. This is the only place someone besides him should be concerned. But who do we report it to? How? |
You can copy the tuya component into a custom component, fix the code and use it as a custom component. |
|
@martin3000 Why are you suggesting that we should accept the fact that there is a bug when there is a fix ready for it? |
I fixed it already for my HA instance....I do not wait. |
I have exactly the same issue on various Tuya stats from different manufacturers. The issue is quite obvious any stat that has a resolution (step) of 0.5C reports incorrectly as 5 times the actual value. This is because of the faulty logic in the way the value is being calculated by home assistant. I have some stats where only the room temperature is reported to 0.5C so in this case the set point is correct but the room temperature is wrong. On others both set point and room temperature are wrong. As no one is reporting a problem before this logic was introduced it beggars belief that it hasn't been resolved. |
@martin3000 while we wait for this patch to be merged can you share instructions on how to replace the buggy production integration with a custom one? So far I have:
After reboot the integration is not listed in HACS and adding and configuring the regular integration via the "integrations" frontend still shows the bug. Can you provide directions on how to enable the custom integration? |
@nachobazz what you have done looks good, I don't know what it is missing. You could try to rename the folder from "tuya" to "tuya3" and also change the name in "manifest.json" to tuya3. |
@nachobazz I think you are missing one step - in manifest.json you should change the version |
I renamed the folder to tuya3 and my manifest looks like this:
Screenshot attached for additional context below. After rebooting I don't see another custom integration available in hacs, and the integrations list offers the regular "tuya". I tried setting that one up in the event it's been over-ridden, but the enabled integration is still the cloud one with the bug. Any ideas? |
There is no relation between the HA community store HACS and the custom_components folder. You don't have any custom components? |
@martin3000 OK, definitely a gap in my understanding of custom components, my bad. This is what my custom_components folder looks like. All the ones except for the tuya one where generated by HACS, so I assumed a manually installed component would be managed by HACS as well. Am I missing any steps to configure the custom_component after restart? Maybe I need to put a configuration key in configuration.yaml? Thanks for your invaluable help. |
maybe you have to configure tuya3 in the configuration.yaml:
if you have access to your HA machine, you could modify the original base.py which is in ????/python3.9/site-packages/homeassistant/components/tuya/base.py |
Thanks @martin3000 for some reason I couldn't get the custom component working but managed to update the installed extension. Here's the workaround I applied, as I see there's quite a few people affected by this bug. This works for my Raspberry PI running HASSIO.
Note to the thread: Before you all rush to critizise the maintainers of the project, consider that the workaround depends on a plugin developed by the same guys you're trolling, same as 99% of the code you use. An additional note / ask to the maintainers: Personally I can't thank you all enough for your work and passion you put into this, and I acknowledge that there's been a fair bit of trolling and bad attitude / communication in this thread. I think we should all be more appreciative of the time and willingness to make HA happen, instead of glossing on an honest mistake caused by bad or non-existent documentation. That being said I think it we'd all appreciate if we can just let this go and merge this into the project, as at this point I think it's quite clear that this is a bugfix that is working for a lot of us, and the odds something else will break because of this are quite low now. Thanks again for making HomeAssistant the awesome piece of software it is. |
@nachobazz I mostly agree. But this isn't about trolling, or the bug in the code itself, it's about the persistence in blocking the possibility of fixing the code. |
I still feel there's too much negativity in this post. If you put yourself in the maintaner's position it's not nice to work "for free" for people who don't appreciate it and are jumping on the opportunity to single out your every mistake or bad judgment call. Just saying, I I where in charge of this bug it would definitely be far down in my priority list, just to avoid dealing with the "attitude" in the thread. Blocking the issue "out of spite" is not cool, but I kind of get it. ATTENTION: Probably something related to permissions when running the update, who knows. |
My PR to fix the issue has been merged, so it will probably be resolved in 2022.05. However note this it may cause issues for other users like the once using Moes thermostats. |
2022.5.0b1 have it fixed |
Beta channel Works!!! 😁👍 |
Thanks for confirming! Closing this issue from this end in that case 👍 |
The problem
You can see below what it reports in SmartLife vs. Home Assistant
What version of Home Assistant Core has the issue?
2022.2.9
What was the last working version of Home Assistant Core?
2022.2.7
What type of installation are you running?
Home Assistant OS
Integration causing the issue
Tuya
Link to integration documentation on our website
https://www.home-assistant.io/integrations/tuya/
Diagnostics information
tuya-6e1a4ae19b74756253472cd31dae3077-Garage Tower Heater-29e4efe2c63a7c77d1de1fb9d91f5c57.json.txt
Example YAML snippet
Not sure
Anything in the logs that might be useful for us?
Additional information
Nope
The text was updated successfully, but these errors were encountered: