ronalddevos wrote: Monday 22 September 2025 8:48
Xenomes wrote: Sunday 21 September 2025 19:59
ronalddevos wrote: Sunday 21 September 2025 10:37
Love this plugin! Has been running flawlesly for a while. Just updated to 2.2.8e with TinyTuyaVersion:1.17.4 and now have a problem.
It runs OK for a while and after about 10 minutes I get the following error:
Error: TinyTuya: onCommand ERROR: HTTPSConnectionPool(host='openapi.tuyaeu.com', port=443): Max retries exceeded with url: /v1.0/iot-03/devices/bf58f96d002fcb03beswmt/commands (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x071A9418>: Failed to establish a new connection: [WinError 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond'))
and
Error: TinyTuya hardware (16) thread seems to have ended unexpectedly
and the plugin is unresponsive. I am at a loss... Any suggestions?
Looks like there is a issue with TinyTuya version:1.17.4 you can try to downgrade the version.
Thanks! - done, i will monitor the result and report back.
It has been working flawlesly for hours (i have been flicking switches) then on flicking a switch I get:
Error: TinyTuya: onCommand ERROR: HTTPSConnectionPool(host='openapi.tuyaeu.com', port=443): Max retries exceeded with url: /v1.0/iot-03/devices/bf58f96d002fcb03beswmt/commands (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x040996E8>: Failed to establish a new connection: [WinError 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond'))
Error: TinyTuya hardware (16) thread seems to have ended unexpectedly
I restarted the plugin, eberything freezes for some 30 seconds and I get:
2025-09-22 16:36:52.310 Error: TinyTuya: Devices dictionary null or not valid in 'FindDevice'.
2025-09-22 16:36:52.311 Error: TinyTuya: Devices dictionary null or not valid in 'FindDevice'.
2025-09-22 16:36:52.311 Error: TinyTuya: Call to function 'onCommand' failed, exception details:
2025-09-22 16:36:52.317 Error: TinyTuya: Traceback (most recent call last):
2025-09-22 16:36:52.318 Error: TinyTuya: File "C:\Program Files (x86)\Domoticz\plugins\Domoticz-TinyTUYA-Plugin\plugin.py", line 967, in onCommand
2025-09-22 16:36:52.318 Error: TinyTuya: _plugin.onCommand(DeviceID, Unit, Command, Level, Color)
2025-09-22 16:36:52.319 Error: TinyTuya: File "C:\Program Files (x86)\Domoticz\plugins\Domoticz-TinyTUYA-Plugin\plugin.py", line 130, in onCommand
2025-09-22 16:36:52.320 Error: TinyTuya: dev = Devices[DeviceID].Units[Unit]
2025-09-22 16:36:52.320 Error: TinyTuya: NameError: name 'Devices' is not defined
After that things work fine again.
Any information I can collect for you?