home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
73.66k stars 30.8k forks source link

Issue with Tuya Integration in Home Assistant: Blinds (cover) Always Displayed as Open #122701

Open dyegopb opened 3 months ago

dyegopb commented 3 months ago

The problem

Hello everyone,

I would like to report an issue I’m encountering with the Tuya integration in Home Assistant. For about two weeks now, the integration has not been working correctly with the blinds (cover). Even when the blinds are closed, the integration continues to display them as open. Additionally, the percentage corresponding to the current position of the blinds is not being shown correctly.

Although I am able to close the blinds through the Home Assistant integration, the status still indicates that they are open, which does not reflect the actual position of the blinds.

I would like to know if anyone else is experiencing a similar issue. Is this a standalone error, or does it require an update from the Tuya integration team? Any suggestions on how to resolve or diagnose this problem would be greatly appreciated.

Thank you!

What version of Home Assistant Core has the issue?

core-2024.7.3

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant Container

Integration causing the issue

Tuya

Link to integration documentation on our website

https://www.home-assistant.io/integrations/tuya

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

home-assistant[bot] commented 3 months ago

Hey there @tuya, @zlinoliver, @frenck, mind taking a look at this issue as it has been labeled with an integration (tuya) you are listed as a code owner for? Thanks!

Code owner commands Code owners of `tuya` can trigger bot actions by commenting: - `@home-assistant close` Closes the issue. - `@home-assistant rename Awesome new title` Renames the issue. - `@home-assistant reopen` Reopen the issue. - `@home-assistant unassign tuya` Removes the current integration label and assignees on the issue, add the integration domain after the command. - `@home-assistant add-label needs-more-information` Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue. - `@home-assistant remove-label needs-more-information` Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


tuya documentation tuya source (message by IssueLinks)

gabbiani commented 3 months ago

Experiencing similar issue. Garage doors / covers will update status when Tuya is reloaded, but will not update after. Sometimes open/close commands will work but never updates status. I have other Tuya devices that appear to be working, such as smart lights.

Smart Life shows correct status as expected.

dyegopb commented 3 months ago

Estou enfrentando um problema semelhante. As portas/coberturas de garagem atualizam o status quando o Tuya é recarregado, mas não atualizam depois. Às vezes, os comandos de abrir/fechar funcionam, mas nunca atualizam o status. Tenho outros dispositivos Tuya que parecem estar funcionando, como luzes inteligentes.

O Smart Life mostra o status correto, conforme esperado.

Um amigo ai no fórum que está com o mesmo problema voltou algumas versões do HASS, mas tenho medo de que isso implique em outros problemas com outras integrações, aguardarei a Tuya arrumar a integração, se eu descobrir algo compartilho com você. Se descobrir alguma coisa, me avise também. Obrigado.

dyegopb commented 2 months ago

Hey there @tuya @zlinoliver, @frenck, mind taking a look at this issue as it has been labeled with an integration (tuya) you are listed as a code owner for? Thanks!

CatNeville commented 2 months ago

In my case the blinds show the opposite status. When the blinds are open, on the HA dashboard and in Apple Home app it says closed. When I close it in real life, then it shows up as open in AH. Interestingly in developer tools it always says open.

Screenshot 2024-08-25 at 08 47 51 Screenshot 2024-08-25 at 08 47 06
azerty9971 commented 2 months ago

I think the culprit for this issue is the following: https://github.com/home-assistant/core/pull/118444

@frenck: This might be worth reverting until a more reworked code is repushed...

azerty9971 commented 2 months ago

Hello, Could one of you post the diagnostics file for the impacted device?

Because right now it's pretty hard to figure out how to fix the code...

Thanks in advance, Azerty

dyegopb commented 2 months ago

Olá, algum de vocês poderia postar o arquivo de diagnóstico do dispositivo afetado?

Porque agora é muito difícil descobrir como consertar o código...

Obrigado antecipadamente, Azerty

tuya-aa211b1d6216e089eaf27997e122eee5-Persiana do Quarto-8dce4a8ad2eb34df0e9bd3b33e0ac258.json tuya-aa211b1d6216e089eaf27997e122eee5-Persiana do Escritório-60f79cd59a60fb72d9f2e252220dee1b.json

vaughnabs commented 2 months ago

Any solution on this! i have the same issue!

azerty9971 commented 2 months ago

Hello, I'm currently working on this issue.

I'll post an update when it moves forward :).

Have a nice evening, Azerty

Pedritod commented 2 months ago

Hi, I am also facing this problem

Pedritod commented 1 month ago

Hi @azerty9971 is there any update on this issue? Thank you

azerty9971 commented 1 month ago

Hello, Sorry I had completely forgotten this issue, thanks for the reminder!!

I've reverted the change that I think is the culprit in my custom integration: https://github.com/azerty9971/xtend_tuya Can you install it through HACS and use it as a full in place replacement of the tuya integration from HA? (So disable or delete the config entry from HA's Tuya integration and use my custom integration to manage your Tuya devices) (the configuration is exactly the same as for HA's Tuya integration :))

To test this, please use the latest BETA version of my integration (the change has not made it into the stable one yet).

Again, sorry for the delay!!

Let me know if it worked :).

Have a nice day, Azerty

Pedritod commented 1 month ago

Hi,

I have tested it with the beta 3.0.0 v16 and it worked!

example_blind_current_position

Thanks a lot, will this be added to the next home assistant release?

azerty9971 commented 1 month ago

Hi, I've made the PR so hopefully it should be fixed in HA soon :).

Have a nice day, Azerty

muhabmahmoud commented 3 weeks ago

Wow! I have been posting about this issue nonstop for months! This worked for me! Thank you!

Pedritod commented 3 weeks ago

@azerty9971 I can see that the PR to home assistant is still in draft, do you have more or less an estimation when will be it added? Thanks

dyegopb commented 1 week ago

Hi, I've made the PR so hopefully it should be fixed in HA soon :).

Have a nice day, Azerty

Hello, do you have any information on whether the error will be fixed in version 2024.11?