Hi,
First time Home Assistant user here, just installed it on a Windows VM to try to get some more functionality out of my smart switches.
One main reason is I have a switch I’d like to log activity on, primarily for troubleshooting.
It’s a Tuya controlled switch. This particular one has a “circulate” function, when it can turn on for “x” minutes, then turn off for “y” minutes, which can come on at set times. I’m unsure if it’s actually doing that, outside of Home Assistant.
I was successful in pairing Tuya to Home Assistant through these instructions:
One issue is “IoT Data Analytics” is not appearing on the API list. There is one called “Data Dashboard Service” which has IoT Data Analytics in the description, so maybe it was renamed?
All Tuya devices do show up in HA so that was successful at least.
Several problems:
-
If I turn on the switch through the Tuya app, Home Assistant doesn’t recognize it’s on. Is this a polling issue or a sign of another problem?
-
Perhaps part of the same issue, HA is not able to accurately list the state of any of the switches/lights in Tuya. They seem to be stuck at some earlier point in time.
-
If I try to turn on a switch in HA, it will turn on. But then the switch, in HA, visibly toggles back to OFF. However, the switch is still in the ON position.
-
Conversely, if a switch shows ON in HA, I can turn it off in HA. But then the switch visibly toggles back to ON. However, the switch is still in the OFF position.
-
Perhaps obviously, history logging is following what HA thinks is happening, not what the actual state of each switch is.
-
Light switch in Tuya has the same issues as the smart plugs.
Hoping someone can help direct me in the right direction. Thank you.
Version info:
Home Assistant Core 2022.5.5
Home Assistant Supervisor 2022.05.3
Home Assistant OS 8.1
Kernel version 5.15.41
Agent version 1.2.1
EDIT:
I’ve tried removing and re-added the Tuya integration. Same issue.
EDIT2:
Found this thread: Tuya; delayed/missing state updates: Confirmed Tuya Cloud issue, awaiting upstream fix · Issue #60034 · home-assistant/core · GitHub
It was shut down and I don’t see a resolution.