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
71.15k stars 29.83k forks source link

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

Open dyegopb opened 1 month ago

dyegopb commented 1 month 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 1 month 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 4 weeks 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 4 weeks 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 3 weeks 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 weeks 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 weeks 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 weeks 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 weeks 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 1 week ago

Any solution on this! i have the same issue!

azerty9971 commented 1 week 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 1 week ago

Hi, I am also facing this problem