Python Plugin: Domoticz-TinyTUYA-Plugin (Cloud)
Moderator: leecollings
- Xenomes
- Posts: 397
- Joined: Tuesday 27 November 2018 19:05
- Target OS: Linux
- Domoticz version: 2024.7
- Location: Netherlands
- Contact:
Re: Python Plugin: Domoticz-TinyTUYA-Plugin (Cloud)
You can see here the used calls https://eu.platform.tuya.com/cloud/interface
HP T630 (256GB SSD/8GB Mem) - Ubuntu 24.04.2 LTS (64Bit) - Domoticz 2024.7 (Docker) Machinon theme - RFLink - KaKu - Sonoff - Tasmota - Shelly - MQTT2Zigbee - OpenTherm Gateway - Tinytuya - IR Blaster - P1 Smart Meter - NPN Watermeter - Google Assistant
-
- Posts: 40
- Joined: Wednesday 14 December 2022 12:00
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2022.2
- Location: Netherlands
- Contact:
Re: Python Plugin: Domoticz-TinyTUYA-Plugin (Cloud)
Xenomes,
Thanks (that I didn't find that myself
).
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).
When is an API call issued? I have 14 devices and a polling interval of 15 minutes. How can I get into those high numbers (or are they more or less normal with 14 devices) and what do I need to do to get the numbers down.
TIA!
Thanks (that I didn't find that myself

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).
When is an API call issued? I have 14 devices and a polling interval of 15 minutes. How can I get into those high numbers (or are they more or less normal with 14 devices) and what do I need to do to get the numbers down.
TIA!
Cheers,
Arjan
Arjan
- Xenomes
- Posts: 397
- Joined: Tuesday 27 November 2018 19:05
- Target OS: Linux
- Domoticz version: 2024.7
- Location: Netherlands
- Contact:
Re: Python Plugin: Domoticz-TinyTUYA-Plugin (Cloud)
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).
HP T630 (256GB SSD/8GB Mem) - Ubuntu 24.04.2 LTS (64Bit) - Domoticz 2024.7 (Docker) Machinon theme - RFLink - KaKu - Sonoff - Tasmota - Shelly - MQTT2Zigbee - OpenTherm Gateway - Tinytuya - IR Blaster - P1 Smart Meter - NPN Watermeter - Google Assistant
Domoticz-TinyTUYA-Plugin (Cloud) / Avatto ZWT198
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!
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!
- Attachments
-
- WT198.jpg (277.16 KiB) Viewed 794 times
- Xenomes
- Posts: 397
- Joined: Tuesday 27 November 2018 19:05
- Target OS: Linux
- Domoticz version: 2024.7
- Location: Netherlands
- Contact:
Re: Domoticz-TinyTUYA-Plugin (Cloud) / Avatto ZWT198
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!
HP T630 (256GB SSD/8GB Mem) - Ubuntu 24.04.2 LTS (64Bit) - Domoticz 2024.7 (Docker) Machinon theme - RFLink - KaKu - Sonoff - Tasmota - Shelly - MQTT2Zigbee - OpenTherm Gateway - Tinytuya - IR Blaster - P1 Smart Meter - NPN Watermeter - Google Assistant
Re: Python Plugin: Domoticz-TinyTUYA-Plugin (Cloud)
Thanks, that was the solution!
The mode (selector) button actually didn't work at all (should be "manual", "auto" and "temporary".
After I removed this selector device in Domoticz and put the device in DP instruction mode on the Tuya Developer Platform, a new working mode (selector) device was created in Domoticz. Now as it should be with "manual", "auto" and "temporary".
By the way: do you recommend transferring all devices to DP instruction mode anyway?
Thanks again!
The mode (selector) button actually didn't work at all (should be "manual", "auto" and "temporary".
After I removed this selector device in Domoticz and put the device in DP instruction mode on the Tuya Developer Platform, a new working mode (selector) device was created in Domoticz. Now as it should be with "manual", "auto" and "temporary".
By the way: do you recommend transferring all devices to DP instruction mode anyway?
Thanks again!
- Xenomes
- Posts: 397
- Joined: Tuesday 27 November 2018 19:05
- Target OS: Linux
- Domoticz version: 2024.7
- Location: Netherlands
- Contact:
Re: Python Plugin: Domoticz-TinyTUYA-Plugin (Cloud)
TinyTuya recommends using the 'DP instruction' some devices benefit from it, while others don’t.
HP T630 (256GB SSD/8GB Mem) - Ubuntu 24.04.2 LTS (64Bit) - Domoticz 2024.7 (Docker) Machinon theme - RFLink - KaKu - Sonoff - Tasmota - Shelly - MQTT2Zigbee - OpenTherm Gateway - Tinytuya - IR Blaster - P1 Smart Meter - NPN Watermeter - Google Assistant
-
- Posts: 11
- Joined: Friday 01 April 2022 8:52
- Target OS: NAS (Synology & others)
- Domoticz version: 2023.1
- Contact:
Re: Python Plugin: Domoticz-TinyTUYA-Plugin (Cloud)
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?
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?
- waltervl
- Posts: 5741
- Joined: Monday 28 January 2019 18:48
- Target OS: Linux
- Domoticz version: 2024.7
- Location: NL
- Contact:
Re: Python Plugin: Domoticz-TinyTUYA-Plugin (Cloud)
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?
Did you update the plugin too?
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
- Xenomes
- Posts: 397
- Joined: Tuesday 27 November 2018 19:05
- Target OS: Linux
- Domoticz version: 2024.7
- Location: Netherlands
- Contact:
Re: Python Plugin: Domoticz-TinyTUYA-Plugin (Cloud)
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,
Thanks for reporting the issue, I have replicated the problem. I am searching for a solution. Indeed the issue start with update to bookworm. Stable version is running fine.
HP T630 (256GB SSD/8GB Mem) - Ubuntu 24.04.2 LTS (64Bit) - Domoticz 2024.7 (Docker) Machinon theme - RFLink - KaKu - Sonoff - Tasmota - Shelly - MQTT2Zigbee - OpenTherm Gateway - Tinytuya - IR Blaster - P1 Smart Meter - NPN Watermeter - Google Assistant
-
- Posts: 11
- Joined: Friday 01 April 2022 8:52
- Target OS: NAS (Synology & others)
- Domoticz version: 2023.1
- Contact:
Re: Python Plugin: Domoticz-TinyTUYA-Plugin (Cloud)
Ok check! I can't roll back to a previous version 'coz my Tado plugin doesn't work 

Who is online
Users browsing this forum: No registered users and 1 guest