Re: Python Plugin: Domoticz-TinyTUYA-Plugin (Cloud)
Posted: Monday 24 March 2025 21:52
You can see here the used calls https://eu.platform.tuya.com/cloud/interface
Open source Home Automation System
https://forum.domoticz.com/
Not exactly, a small calculation makes, 25 days × 24 Hours × 4 times a hour × 14 devices = 33600 status calls,then all the control api calls. So the 34442 possible.athoopen wrote: ↑Tuesday 25 March 2025 20:12 Hopefully you can help me explaining my numbers.
This month I made 62.657 API Call.scalls (Feb was around 55.000)
These are split up into: IoT Core 34,442; Smart Home Basic Service 26,949; Applet/H5 version for Hotel 284; Standard Version for Hotel 284 and Premium Version for Hotel 284. And Authorization Token Management 284 times.
IoT Core and Smart Home Basic Service are the huge numbers (I think).
It's possible that the Mode device is causing the error. Is the mode same as in the tuya based app? Also, did you put the device in DP Instruction mode? In that mode, the JSON is more complete, which is useful when using TinyTuya.THBR wrote: ↑Sunday 20 April 2025 14:20 Hello everyone,
I have multiple devices running under TinyTUYA (cloud) without any problems.
Recently, however, I successfully installed the Avatto ZWT198 thermostat, all devices are present and working, see screenshot.
But in the Domoticz log I get the following message every 5 minutes (my set polling time):
"Error: TinyTUYA: Device read failed: bffeb0ae05ba8f90c8taso"
What could be causing this and how do I solve it?
Thanks in advance!
Do you use Domoticz in a docker environment? As docker for beta is now based on bookworm with a new Python version and Python Virtual environments.reinestein wrote: ↑Friday 23 May 2025 13:51 Hi there,
After updating domoticz to build 16703 I'm getting the following error:
2025-05-23 13:48:41.888 Error: (JSONtoPython) failed to add item '-1', to list for string.
2025-05-23 13:48:41.888 Error: (JSONtoPython) failed to add item '-1', to list for string.
2025-05-23 13:48:41.888 Error: (JSONtoPython) failed to add item '-1', to list for string.
2025-05-23 13:48:41.888 Error: (JSONtoPython) failed to add item '-1', to list for string.
2025-05-23 13:48:41.888 Error: (JSONtoPython) failed to add item '-1', to list for string.
2025-05-23 13:48:41.888 Error: (JSONtoPython) failed to add item '-1', to list for string.
2025-05-23 13:48:41.888 Error: (JSONtoPython) failed to add item '-1', to list for string.
2025-05-23 13:48:41.888 Error: Tuya - Cloud: Domoticz.Configuration operation failed: <built-in function Configuration> returned a result with an exception set
Any thoughts?
reinestein wrote: ↑Friday 23 May 2025 13:51 Hi there,
After updating domoticz to build 16703 I'm getting the following error:
2025-05-23 13:48:41.888 Error: (JSONtoPython) failed to add item '-1', to list for string.
2025-05-23 13:48:41.888 Error: (JSONtoPython) failed to add item '-1', to list for string.
2025-05-23 13:48:41.888 Error: (JSONtoPython) failed to add item '-1', to list for string.
2025-05-23 13:48:41.888 Error: (JSONtoPython) failed to add item '-1', to list for string.
2025-05-23 13:48:41.888 Error: (JSONtoPython) failed to add item '-1', to list for string.
2025-05-23 13:48:41.888 Error: (JSONtoPython) failed to add item '-1', to list for string.
2025-05-23 13:48:41.888 Error: (JSONtoPython) failed to add item '-1', to list for string.
2025-05-23 13:48:41.888 Error: Tuya - Cloud: Domoticz.Configuration operation failed: <built-in function Configuration> returned a result with an exception set
Any thoughts?
Hi reinestein,
That was a hard one to find! But I built in a solution: when the error occurs, the data stored in Domoticz.Configuration is deleted and recreated.reinestein wrote: ↑Saturday 24 May 2025 13:09 Ok check! I can't roll back to a previous version 'coz my Tado plugin doesn't work![]()
That’s strange - the fix should have handled that. Is the error exact the same? Do you see this message in the log 'Configuration reset to empty'?reinestein wrote: ↑Tuesday 27 May 2025 16:41 Hmzzz, the error is back. Happened after updating to latest domoticz. After reverting to 16703, the problem still remains.
2025-05-27 21:38:43.445 Error: (JSONtoPython) failed to add item '-1', to list for string.
2025-05-27 21:38:43.445 Error: (JSONtoPython) failed to add item '-1', to list for string.
2025-05-27 21:38:43.445 Error: (JSONtoPython) failed to add item '-1', to list for string.
2025-05-27 21:38:43.445 Error: (JSONtoPython) failed to add item '-1', to list for string.
2025-05-27 21:38:43.445 Error: Tuya - Cloud: Domoticz.Configuration operation failed: <built-in function Configuration> returned a result with an exception set
2025-05-27 21:38:43.445 Tuya - Cloud: Configuration reset to empty.
2025-05-27 21:38:43.691 Tuya - Cloud: Update devices in Domoticz
Yup!That’s strange - the fix should have handled that. Is the error exact the same? Do you see this message in the log 'Configuration reset to empty'?
Can you set Debug to 'All'? Then it will show the line number where the thread ended.reinestein wrote: ↑Tuesday 27 May 2025 21:50 Also getting: Tuya - Cloud hardware (19) thread seems to have ended unexpectedly
It's strange — overnight, the issue disappears, but another one shows up instead. Should I remove bf0cefa5b282c43f66lvyk2025-05-27 23:07:50.601 Error: Tuya - Cloud: Device read failed: bf2a87a17772db2b6deg7m
2025-05-27 23:07:52.561 Error: Tuya - Cloud: (Tuya - Cloud) Unit creation failed, Hardware/DeviceID/Unit combination (19/bf0cefa5b282c43f66lvyk/4) already exists in Domoticz.
2025-05-27 23:07:53.138 Error: Tuya - Cloud: Device read failed: bf2a87a17772db2b6deg7m
2025-05-27 23:07:55.079 Error: Tuya - Cloud hardware (19) thread seems to have ended unexpectedly
2025-05-27 23:07:55.885 Error: Tuya - Cloud: (Tuya - Cloud) Unit creation failed, Hardware/DeviceID/Unit combination (19/bf0cefa5b282c43f66lvyk/4) already exists in Domoticz.
2025-05-27 23:07:56.731 Error: Tuya - Cloud: Device read failed: bf2a87a17772db2b6deg7m
2025-05-27 23:07:58.732 Error: Tuya - Cloud: (Tuya - Cloud) Unit creation failed, Hardware/DeviceID/Unit combination (19/bf0cefa5b282c43f66lvyk/4) already exists in Domoticz.
2025-05-27 23:07:59.581 Error: Tuya - Cloud: Device read failed: bf2a87a17772db2b6deg7m
2025-05-27 23:08:01.565 Error: Tuya - Cloud: (Tuya - Cloud) Unit creation failed, Hardware/DeviceID/Unit combination (19/bf0cefa5b282c43f66lvyk/4) already exists in Domoticz.
2025-05-27 23:08:02.134 Error: Tuya - Cloud: Device read failed: bf2a87a17772db2b6deg7m
2025-05-27 23:08:03.993 Error: Tuya - Cloud: (Tuya - Cloud) Unit creation failed, Hardware/DeviceID/Unit combination (19/bf0cefa5b282c43f66lvyk/4) already exists in Domoticz.
2025-05-27 23:08:04.704 Error: Tuya - Cloud: Device read failed: bf2a87a17772db2b6deg7m
2025-05-27 23:08:06.819 Error: Tuya - Cloud: (Tuya - Cloud) Unit creation failed, Hardware/DeviceID/Unit combination (19/bf0cefa5b282c43f66lvyk/4) already exists in Domoticz.
2025-05-27 23:08:07.444 Error: Tuya - Cloud: Device read failed: bf2a87a17772db2b6deg7m
2025-05-27 23:08:09.081 Error: Tuya - Cloud hardware (19) thread seems to have ended unexpectedly
2025-05-27 23:08:09.577 Error: Tuya - Cloud: (Tuya - Cloud) Unit creation failed, Hardware/DeviceID/Unit combination (19/bf0cefa5b282c43f66lvyk/4) already exists in Domoticz.
2025-05-27 23:08:10.167 Error: Tuya - Cloud: Device read failed: bf2a87a17772db2b6deg7m
2025-05-27 23:23:26.077 Error: Tuya - Cloud: Device read failed: bf0cefa5b282c43f66lvyk
2025-05-27 23:23:27.345 Error: Tuya - Cloud: Device read failed: bf2a87a17772db2b6deg7m
2025-05-27 23:38:36.280 Error: Tuya - Cloud: Device read failed: bf0cefa5b282c43f66lvyk
2025-05-27 23:38:37.541 Error: Tuya - Cloud: Device read failed: bf2a87a17772db2b6deg7m
2025-05-27 23:53:47.309 Error: Tuya - Cloud: Device read failed: bf0cefa5b282c43f66lvyk
2025-05-27 23:53:48.230 Error: Tuya - Cloud: Device read failed: bf2a87a17772db2b6deg7m
2025-05-28 00:08:55.158 Error: Tuya - Cloud: Device read failed: bf0cefa5b282c43f66lvyk
2025-05-28 00:08:56.378 Error: Tuya - Cloud: Device read failed: bf2a87a17772db2b6deg7m
2025-05-28 00:24:05.641 Error: Tuya - Cloud: Device read failed: bf0cefa5b282c43f66lvyk
2025-05-28 00:24:07.180 Error: Tuya - Cloud: Device read failed: bf2a87a17772db2b6deg7m
2025-05-28 00:39:17.099 Error: Tuya - Cloud: Device read failed: bf0cefa5b282c43f66lvyk
2025-05-28 00:39:17.976 Error: Tuya - Cloud: Device read failed: bf2a87a17772db2b6deg7m
2025-05-28 00:54:26.616 Error: Tuya - Cloud: Device read failed: bf0cefa5b282c43f66lvyk
2025-05-28 00:54:27.293 Error: Tuya - Cloud: Device read failed: bf2a87a17772db2b6deg7m
2025-05-28 01:09:36.461 Error: Tuya - Cloud: Device read failed: bf0cefa5b282c43f66lvyk
2025-05-28 01:09:37.393 Error: Tuya - Cloud: Device read failed: bf2a87a17772db2b6deg7m
2025-05-28 01:24:47.630 Error: Tuya - Cloud: Device read failed: bf0cefa5b282c43f66lvyk
2025-05-28 01:24:48.511 Error: Tuya - Cloud: Device read failed: bf2a87a17772db2b6deg7m
2025-05-28 01:40:06.595 Error: Tuya - Cloud: Device read failed: bf0cefa5b282c43f66lvyk
2025-05-28 01:40:07.482 Error: Tuya - Cloud: Device read failed: bf2a87a17772db2b6deg7m
2025-05-28 01:55:15.988 Error: Tuya - Cloud: Device read failed: bf0cefa5b282c43f66lvyk
2025-05-28 01:55:16.890 Error: Tuya - Cloud: Device read failed: bf2a87a17772db2b6deg7m
2025-05-28 02:10:25.788 Error: Tuya - Cloud: Device read failed: bf0cefa5b282c43f66lvyk
2025-05-28 02:10:26.335 Error: Tuya - Cloud: Device read failed: bf2a87a17772db2b6deg7m
2025-05-28 02:25:34.510 Error: Tuya - Cloud: Device read failed: bf0cefa5b282c43f66lvyk
2025-05-28 02:25:35.806 Error: Tuya - Cloud: Device read failed: bf2a87a17772db2b6deg7m
2025-05-28 02:40:47.305 Error: Tuya - Cloud: Device read failed: bf0cefa5b282c43f66lvyk
2025-05-28 02:40:48.374 Error: Tuya - Cloud: Device read failed: bf2a87a17772db2b6deg7m
2025-05-28 02:55:56.568 Error: Tuya - Cloud: Device read failed: bf0cefa5b282c43f66lvyk
2025-05-28 02:55:57.307 Error: Tuya - Cloud: Device read failed: bf2a87a17772db2b6deg7m
2025-05-28 03:11:05.288 Error: Tuya - Cloud: Device read failed: bf0cefa5b282c43f66lvyk
2025-05-28 03:11:06.039 Error: Tuya - Cloud: Device read failed: bf2a87a17772db2b6deg7m
2025-05-28 03:26:15.486 Error: Tuya - Cloud: Device read failed: bf0cefa5b282c43f66lvyk
2025-05-28 03:26:16.168 Error: Tuya - Cloud: Device read failed: bf2a87a17772db2b6deg7m
2025-05-28 03:41:26.231 Error: Tuya - Cloud: Device read failed: bf0cefa5b282c43f66lvyk
2025-05-28 03:41:26.794 Error: Tuya - Cloud: Device read failed: bf2a87a17772db2b6deg7m
2025-05-28 03:56:36.012 Error: Tuya - Cloud: Device read failed: bf0cefa5b282c43f66lvyk
2025-05-28 03:56:36.645 Error: Tuya - Cloud: Device read failed: bf2a87a17772db2b6deg7m
2025-05-28 04:11:45.396 Error: Tuya - Cloud: Device read failed: bf0cefa5b282c43f66lvyk
2025-05-28 04:11:46.148 Error: Tuya - Cloud: Device read failed: bf2a87a17772db2b6deg7m
2025-05-28 04:26:56.290 Error: Tuya - Cloud: Device read failed: bf0cefa5b282c43f66lvyk
2025-05-28 04:26:57.181 Error: Tuya - Cloud: Device read failed: bf2a87a17772db2b6deg7m
2025-05-28 04:42:07.344 Error: Tuya - Cloud: Device read failed: bf0cefa5b282c43f66lvyk
2025-05-28 04:42:08.052 Error: Tuya - Cloud: Device read failed: bf2a87a17772db2b6deg7m
2025-05-28 04:57:15.133 Error: Tuya - Cloud: Device read failed: bf0cefa5b282c43f66lvyk
2025-05-28 04:57:15.723 Error: Tuya - Cloud: Device read failed: bf2a87a17772db2b6deg7m
2025-05-28 05:12:25.242 Error: Tuya - Cloud: Device read failed: bf0cefa5b282c43f66lvyk
2025-05-28 05:12:26.303 Error: Tuya - Cloud: Device read failed: bf2a87a17772db2b6deg7m
2025-05-28 05:27:36.552 Error: Tuya - Cloud: Device read failed: bf0cefa5b282c43f66lvyk
2025-05-28 05:27:37.846 Error: Tuya - Cloud: Device read failed: bf2a87a17772db2b6deg7m
2025-05-28 05:42:46.088 Error: Tuya - Cloud: Device read failed: bf0cefa5b282c43f66lvyk
2025-05-28 05:42:46.726 Error: Tuya - Cloud: Device read failed: bf2a87a17772db2b6deg7m
2025-05-28 05:57:55.604 Error: Tuya - Cloud: Device read failed: bf0cefa5b282c43f66lvyk
2025-05-28 05:57:56.171 Error: Tuya - Cloud: Device read failed: bf2a87a17772db2b6deg7m
2025-05-28 06:13:06.198 Error: Tuya - Cloud: Device read failed: bf0cefa5b282c43f66lvyk
2025-05-28 06:13:06.919 Error: Tuya - Cloud: Device read failed: bf2a87a17772db2b6deg7m
2025-05-28 06:28:15.529 Error: Tuya - Cloud: Device read failed: bf0cefa5b282c43f66lvyk
2025-05-28 06:28:16.079 Error: Tuya - Cloud: Device read failed: bf2a87a17772db2b6deg7m
2025-05-28 06:43:26.254 Error: Tuya - Cloud: Device read failed: bf0cefa5b282c43f66lvyk
2025-05-28 06:43:26.923 Error: Tuya - Cloud: Device read failed: bf2a87a17772db2b6deg7m
2025-05-28 06:58:37.566 Error: Tuya - Cloud: Device read failed: bf0cefa5b282c43f66lvyk
2025-05-28 06:58:38.173 Error: Tuya - Cloud: Device read failed: bf2a87a17772db2b6deg7m
2025-05-28 07:13:46.309 Error: Tuya - Cloud: Device read failed: bf0cefa5b282c43f66lvyk
2025-05-28 07:13:47.316 Error: Tuya - Cloud: Device read failed: bf2a87a17772db2b6deg7m
2025-05-28 07:28:56.230 Error: Tuya - Cloud: Device read failed: bf0cefa5b282c43f66lvyk
2025-05-28 07:28:56.799 Error: Tuya - Cloud: Device read failed: bf2a87a17772db2b6deg7m
2025-05-28 07:44:07.787 Error: Tuya - Cloud: Device read failed: bf0cefa5b282c43f66lvyk
2025-05-28 07:44:08.369 Error: Tuya - Cloud: Device read failed: bf2a87a17772db2b6deg7m
2025-05-28 07:59:15.753 Error: Tuya - Cloud: Device read failed: bf0cefa5b282c43f66lvyk
2025-05-28 07:59:16.366 Error: Tuya - Cloud: Device read failed: bf2a87a17772db2b6deg7m
2025-05-28 08:14:25.651 Error: Tuya - Cloud: Device read failed: bf0cefa5b282c43f66lvyk
2025-05-28 08:14:26.605 Error: Tuya - Cloud: Device read failed: bf2a87a17772db2b6deg7m
2025-05-28 08:29:37.755 Error: Tuya - Cloud: Device read failed: bf0cefa5b282c43f66lvyk
2025-05-28 08:29:39.266 Error: Tuya - Cloud: Device read failed: bf2a87a17772db2b6deg7m
2025-05-28 08:44:55.781 Error: Tuya - Cloud: Device read failed: bf0cefa5b282c43f66lvyk
2025-05-28 08:44:56.725 Error: Tuya - Cloud: Device read failed: bf2a87a17772db2b6deg7m
2025-05-28 09:00:08.310 Error: Tuya - Cloud: Device read failed: bf0cefa5b282c43f66lvyk
2025-05-28 09:00:09.460 Error: Tuya - Cloud: Device read failed: bf2a87a17772db2b6deg7m
2025-05-28 09:15:26.619 Error: Tuya - Cloud: Device read failed: bf0cefa5b282c43f66lvyk
2025-05-28 09:15:27.273 Error: Tuya - Cloud: Device read failed: bf2a87a17772db2b6deg7m
2025-05-28 09:30:36.648 Error: Tuya - Cloud: Device read failed: bf0cefa5b282c43f66lvyk
2025-05-28 09:30:37.415 Error: Tuya - Cloud: Device read failed: bf2a87a17772db2b6deg7m
That is a strange behavior,
I think this is the right approach for those two devices. Is there any long-term data that needs to be preserved? If yes, please back up the database first. After deletion, click 'Update' at the plugin location to restart the plugin.reinestein wrote: ↑Wednesday 28 May 2025 9:35 It's strange — overnight, the issue disappears, but another one shows up instead. Should I remove bf0cefa5b282c43f66lvyk
and bf2a87a17772db2b6deg7m?