Open kwankiu opened 6 months ago
Have you configured the IP address and protocol version to something other than "Auto"?
Yes I have configured IP Address and Protocol Version is 3.5
With the current level of info, this is probably more suited to Discussions. The fact that it becomes available again when the Tuya app wakes it suggests that the problem is not connection related, as the connection must be still there to start working again when activities outside of Home Assistant happen.
I have had this issue a couple of times, but i don't use the tuya app and needed to press a button to wake up. normally it can stay idle until the battery dies or in de dock, but not always. you use the tuya app which makes me wonder, would the tuya app use Bluetooth to wake the device and turn off wifi on idle to safe power?
And if you do not open the tuya app at all does your vacuum still become unavailable.
I dont think they need bluetooth to wake the device up, as it wakes the device up when i just tap configure of the device in home assistant and submit. I guess submit polled the device by its IP address and this gets the vacuum to respond and wake up?
And if a scheduled cleaning were set on the Tuya app, when the device begins to clean, the vacuum will become available.
And I think that it sometimes become available after being unavailable for sometime, as this was how i first discovered the issue when it wakes me up at midnight or early morning. (as i set an automation to let the vacuum continues when it gets error, as it would sometimes throw error and get stuck while it wasnt actually getting stuck. I later on ignored this issue as i restricted the automation to trigger only at daytime)
I have had this issue a couple of times, but i don't use the tuya app and needed to press a button to wake up. normally it can stay idle until the battery dies or in de dock, but not always. you use the tuya app which makes me wonder, would the tuya app use Bluetooth to wake the device and turn off wifi on idle to safe power?
And if you do not open the tuya app at all does your vacuum still become unavailable.
I think that when you press a physical button of the vacuum (or if your vacuum have a remote), it also wakes it up, vacuum becomes unavailable over time of inactivity happens only when docked.
issue: I have a Tuya Robot Vacuum (Realme Techlife Vacuum) and it always shows not responding / unavailable.
workaround 1: I found that when it goes unavailable, I have to send any action to the vacuum using the Tuya app and then it will work again.
workaround 2: I also discovered that if I go to Home Assistant -> the Tuya Local Intergation, the vacuum -> configure -> tap submit again, the vacuum will become available after a few seconds.
I guess maybe the vacuum would sleep after some time of inactivity? Is there any way we can prevent it to always becomes unavailable after a while? Or maybe we can fix this by making Tuya Local automatically polling the device from time to time?