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
74.18k stars 31.15k forks source link

Tuya intermittently stops updating some entities #65879

Closed nvx closed 2 years ago

nvx commented 2 years ago

The problem

I've got a number of devices with the Tuya integration. I've noticed sometimes some entities stop updating randomly, while other entities (even for the same device) update fine. Restarting Home Assistant temporarily fixes the issue.

For example a Garage Door Opener (cover) sometimes will register that it's opened (using the remote not HA), but then not pick up that it's been closed a minute or two later (also with the remote). The state in the Tuya app is correct though, and restarting HA makes the state show correctly.

Another example is with a Tuya Smart Plug, the sensor.washing_machine_power and sensor.washing_machine_current entities both froze on the same value this morning at about the same time, but the sensor.washing_machine_voltage entity on the same device is updating fine looking at the history page. Restarting HA fixed the frozen entities to match what the Tuya app showed.

What version of Home Assistant Core has the issue?

2022.2.2

What was the last working version of Home Assistant Core?

No response

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

config_entry-tuya-4211ac15c80513da8df5b40edc6ee5c2.json.txt

Example YAML snippet

No response

Anything in the logs that might be useful for us?

Grepping for tuya just shows startup info

Additional information

No response

probot-home-assistant[bot] commented 2 years ago

Hey there @tuya, @zlinoliver, @metisu, @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! (message by CodeOwnersMention)


tuya documentation tuya source (message by IssueLinks)

frenck commented 2 years ago

This is a duplicate issue, many more of these already exist. Please be sure to check our issue tracker if an issue is already reported, before creating a new one.

Thanks 👍

../Frenck

nvx commented 2 years ago

This is a duplicate issue, many more of these already exist. Please be sure to check our issue tracker if an issue is already reported, before creating a new one.

Thanks 👍

../Frenck

Can you point me to the specific issue? I did search and found similar ones with eg covers not working, but that seemed more specific to covers being broken, or another one I found was nothing ever updated (vs my issue where it does update fine for a while, then stops until a HA restart). It's entirely possible I've missed the right issue in my searches but I'd definitely like to subscribe to it to keep up to date on the progress.