I’m having some real issues with the Tuya integration… around once a day it will just stop successfully to my devices. I.e. I tell it to turn a socket off and it will sit for a second then flick back on. Only way to fix is with a restart of the integration and then it works fine.
Just ran some debug logging (on the Tuya integration, which is the one broken), and I’m seeing a lot of errors for LocalTuya…
I’ve had this same issue. Not a great fix but more of a band aid IMO. I use a simple automation triggered once/hr to perform the action of “reload config entry”.
Been tracking the errors I’m seeing when I try and manually change the devices (annoyingly there doesn’t seem to be any error through automation in most cases, especially calling Tuya scenes which I need for a couple of devices)
Failed to perform the action light/turn_on. (‘Connection aborted.’, ConnectionResetError(104, ‘Connection reset by peer’))`
I also get an error in UI which I haven’t managed to catch yet but it says something about -999999
Very strange as they all work through the smart life app, are definitely on the network, will work after an integration restart
Also I’m less and less convinced this is related to LocalTuya since it’s affecting devices that don’t use local Tuya as well
Failed to perform the action switch/turn_on. network error:(-9999999) sign invalid
I’ve also found that overall, in most cases, repeating the action a second time works… even without a restart, which is all very well, but doesn’t help catch issues without creating follow up actions for every Tuya device
Edit:
For example, some testing and this seems to work every time in NodeRed:
The error is caught on the first attempt and then the command is re-pushed
But that doesn’t help when I’m trying to action something from UI or automation, and it would be very painful to update for every tuya device.
I also can’t find a way of detecting a call for the state change so it would create a lot of issues to resend the command
It really feels to me this is an issue with the integration