As discust on github: https://github.com/Xenomes/Domoticz-Tin ... issues/144Akerboom wrote: ↑Thursday 28 November 2024 9:55 Please help.
I deleted a TUYA device in Domoticz and got an error:Tried to delete the plugin in Domoticz Hardware and reinstall with a diffent name. Now all my TUYA devices are gone and I only get the above error.Code: Select all
Error: TinyTUYA: handleThread: Device not found in Domoticz! Has the device been removed, or is the "Accept New Hardware" option not enabled? line 2324
How to reset and re-add all my devices to Domoticz?
Python Plugin: Domoticz-TinyTUYA-Plugin (Cloud)
Moderator: leecollings
- Xenomes
- Posts: 383
- Joined: Tuesday 27 November 2018 19:05
- Target OS: Linux
- Domoticz version: 2024.7
- Location: Netherlands
- Contact:
Re: Python Plugin: Domoticz-TinyTUYA-Plugin (Cloud)
HP T630 (32GB SSD/8GB Mem) - Ubuntu 22.04.4 LTS (64Bit) - Domoticz 2024.7 with 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)
The plugin was working just fine, I just deleted the Domoticz diveces. How do I reset everything so the devices are created in Domoticz again?Xenomes wrote: ↑Saturday 30 November 2024 19:58As discust on github: https://github.com/Xenomes/Domoticz-Tin ... issues/144Akerboom wrote: ↑Thursday 28 November 2024 9:55 Please help.
I deleted a TUYA device in Domoticz and got an error:Tried to delete the plugin in Domoticz Hardware and reinstall with a diffent name. Now all my TUYA devices are gone and I only get the above error.Code: Select all
Error: TinyTUYA: handleThread: Device not found in Domoticz! Has the device been removed, or is the "Accept New Hardware" option not enabled? line 2324
How to reset and re-add all my devices to Domoticz?
[edit] It was another github ticket: https://github.com/Xenomes/Domoticz-Tin ... issues/126
I found a workaround, posted on github, fine for me.
-
- Posts: 84
- Joined: Sunday 14 August 2016 13:45
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2020.1
- Location: Netherlands
- Contact:
Re: Python Plugin: Domoticz-TinyTUYA-Plugin (Cloud)
I installed the TunyTuya plugin and followed all steps. Got one of the device ID from an hardware item in the Tiya cloud. But no device is added to Domotic and I get the error: Tuya: handleThread: Device not found in Domoticz! Has the device been removed, or is the "Accept New Hardware" option not enabled? line 2324
Is there any way to fix this?
Is there any way to fix this?
-
- Posts: 5
- Joined: Sunday 15 May 2022 13:10
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: Netherlands
- Contact:
Re: Python Plugin: Domoticz-TinyTUYA-Plugin (Cloud)
Hello everyone,
I am experimenting with TinyTuya to get a Water Detector and a few Smoke Detectors working within Domoticz; at least I would like to see the alarm messages from these devices being passed on within domoticz. So far no success. They are detected but not entirely correctly I suspect. See log. Am I doing something wrong or are these devices not sufficiently supported within the plugin?
I can see and hear the alarm in the tuya app.
Also, does anyone perhaps already have other Contribs for these devices?
Water Detector is: Nedis Wi-Fi, type: WIFIDW10WT (with battery)
Smoke Detector is: Nedis Wi-Fi, type: WIFIDS10WT (with battery)
I’m running Dom version 2024.7 with Python version 3.11.2 and TinyTuya 2.0.6
I have already run 'debug_discovery.py' and they all appear in the json file.
Log:
2025-01-07 17:34:13.094 Status: TinyTUTA: Entering work loop.
2025-01-07 17:34:13.095 Status: TinyTUTA: Started.
2025-01-07 17:34:13.601 Status: TinyTUTA: Initialized version 2.0.6, author 'Xenomes'
..
2025-01-07 17:29:53.365 TinyTUTA: Device name=WD1_WaterDtctr1Kelder id=12080343500291ccb5d7 category=waterleak
2025-01-07 17:29:53.998 TinyTUTA: Device name= WD1_WaterDtctr1Kelder id= 12080343500291ccb5d7 FunctionProperties= []
2025-01-07 17:29:53.999 TinyTUTA: Device name= WD1_WaterDtctr1Kelder id= 12080343500291ccb5d7 StatusProperties= []
2025-01-07 17:29:53.999 TinyTUTA: Device name= WD1_WaterDtctr1Kelder id= 12080343500291ccb5d7 result= []
2025-01-07 17:29:54.000 TinyTUTA: Device name=RM1_RookMldrWnkmr id=4520030524a160215cee category=smokedetector
2025-01-07 17:29:54.605 TinyTUTA: Device name= RM1_RookMldrWnkmr id= 4520030524a160215cee FunctionProperties= []
2025-01-07 17:29:54.605 TinyTUTA: Device name= RM1_RookMldrWnkmr id= 4520030524a160215cee StatusProperties= []
2025-01-07 17:29:54.605 TinyTUTA: Device name= RM1_RookMldrWnkmr id= 4520030524a160215cee result= []
I am experimenting with TinyTuya to get a Water Detector and a few Smoke Detectors working within Domoticz; at least I would like to see the alarm messages from these devices being passed on within domoticz. So far no success. They are detected but not entirely correctly I suspect. See log. Am I doing something wrong or are these devices not sufficiently supported within the plugin?
I can see and hear the alarm in the tuya app.
Also, does anyone perhaps already have other Contribs for these devices?
Water Detector is: Nedis Wi-Fi, type: WIFIDW10WT (with battery)
Smoke Detector is: Nedis Wi-Fi, type: WIFIDS10WT (with battery)
I’m running Dom version 2024.7 with Python version 3.11.2 and TinyTuya 2.0.6
I have already run 'debug_discovery.py' and they all appear in the json file.
Log:
2025-01-07 17:34:13.094 Status: TinyTUTA: Entering work loop.
2025-01-07 17:34:13.095 Status: TinyTUTA: Started.
2025-01-07 17:34:13.601 Status: TinyTUTA: Initialized version 2.0.6, author 'Xenomes'
..
2025-01-07 17:29:53.365 TinyTUTA: Device name=WD1_WaterDtctr1Kelder id=12080343500291ccb5d7 category=waterleak
2025-01-07 17:29:53.998 TinyTUTA: Device name= WD1_WaterDtctr1Kelder id= 12080343500291ccb5d7 FunctionProperties= []
2025-01-07 17:29:53.999 TinyTUTA: Device name= WD1_WaterDtctr1Kelder id= 12080343500291ccb5d7 StatusProperties= []
2025-01-07 17:29:53.999 TinyTUTA: Device name= WD1_WaterDtctr1Kelder id= 12080343500291ccb5d7 result= []
2025-01-07 17:29:54.000 TinyTUTA: Device name=RM1_RookMldrWnkmr id=4520030524a160215cee category=smokedetector
2025-01-07 17:29:54.605 TinyTUTA: Device name= RM1_RookMldrWnkmr id= 4520030524a160215cee FunctionProperties= []
2025-01-07 17:29:54.605 TinyTUTA: Device name= RM1_RookMldrWnkmr id= 4520030524a160215cee StatusProperties= []
2025-01-07 17:29:54.605 TinyTUTA: Device name= RM1_RookMldrWnkmr id= 4520030524a160215cee result= []
-
- Posts: 3
- Joined: Wednesday 15 January 2025 9:19
- Target OS: Linux
- Domoticz version:
- Contact:
Re: Python Plugin: Domoticz-TinyTUYA-Plugin (Cloud)
I have a lot of Error on Synctime on heartbeat.
see log below
2025-01-15 09:13:39.097 Error: tuya: Call to function 'onHeartbeat' failed, exception details:
2025-01-15 09:13:39.097 Error: tuya: Traceback (most recent call last):
2025-01-15 09:13:39.097 Error: tuya: File "/home/domoticz/plugins/Domoticz-TinyTUYA-Plugin/plugin.py", line 856, in onHeartbeat
2025-01-15 09:13:39.097 Error: tuya: _plugin.onHeartbeat()
2025-01-15 09:13:39.097 Error: tuya: File "/home/domoticz/plugins/Domoticz-TinyTUYA-Plugin/plugin.py", line 811, in onHeartbeat
2025-01-15 09:13:39.097 Error: tuya: if time.time() - last_update < synctime and testData == False:
2025-01-15 09:13:39.097 Error: tuya: NameError: name 'synctime' is not defined
2025-01-15 09:13:49.105 Error: tuya: Call to function 'onHeartbeat' failed, exception details:
2025-01-15 09:13:49.105 Error: tuya: Traceback (most recent call last):
2025-01-15 09:13:49.105 Error: tuya: File "/home/domoticz/plugins/Domoticz-TinyTUYA-Plugin/plugin.py", line 856, in onHeartbeat
2025-01-15 09:13:49.105 Error: tuya: _plugin.onHeartbeat()
2025-01-15 09:13:49.105 Error: tuya: File "/home/domoticz/plugins/Domoticz-TinyTUYA-Plugin/plugin.py", line 811, in onHeartbeat
2025-01-15 09:13:49.105 Error: tuya: if time.time() - last_update < synctime and testData == False:
2025-01-15 09:13:49.105 Error: tuya: NameError: name 'synctime' is not defined
Can this be fixed?
Also then i try to control one of the tuya devices i get this error.
2025-01-15 09:22:23.094 Error: tuya: Call to function 'onCommand' failed, exception details:
2025-01-15 09:22:23.095 Error: tuya: Traceback (most recent call last):
2025-01-15 09:22:23.095 Error: tuya: File "/home/domoticz/plugins/Domoticz-TinyTUYA-Plugin/plugin.py", line 844, in onCommand
2025-01-15 09:22:23.095 Error: tuya: _plugin.onCommand(DeviceID, Unit, Command, Level, Color)
2025-01-15 09:22:23.095 Error: tuya: File "/home/domoticz/plugins/Domoticz-TinyTUYA-Plugin/plugin.py", line 137, in onCommand
2025-01-15 09:22:23.095 Error: tuya: if Error is not None:
2025-01-15 09:22:23.095 Error: tuya: NameError: name 'Error' is not defined
see log below
2025-01-15 09:13:39.097 Error: tuya: Call to function 'onHeartbeat' failed, exception details:
2025-01-15 09:13:39.097 Error: tuya: Traceback (most recent call last):
2025-01-15 09:13:39.097 Error: tuya: File "/home/domoticz/plugins/Domoticz-TinyTUYA-Plugin/plugin.py", line 856, in onHeartbeat
2025-01-15 09:13:39.097 Error: tuya: _plugin.onHeartbeat()
2025-01-15 09:13:39.097 Error: tuya: File "/home/domoticz/plugins/Domoticz-TinyTUYA-Plugin/plugin.py", line 811, in onHeartbeat
2025-01-15 09:13:39.097 Error: tuya: if time.time() - last_update < synctime and testData == False:
2025-01-15 09:13:39.097 Error: tuya: NameError: name 'synctime' is not defined
2025-01-15 09:13:49.105 Error: tuya: Call to function 'onHeartbeat' failed, exception details:
2025-01-15 09:13:49.105 Error: tuya: Traceback (most recent call last):
2025-01-15 09:13:49.105 Error: tuya: File "/home/domoticz/plugins/Domoticz-TinyTUYA-Plugin/plugin.py", line 856, in onHeartbeat
2025-01-15 09:13:49.105 Error: tuya: _plugin.onHeartbeat()
2025-01-15 09:13:49.105 Error: tuya: File "/home/domoticz/plugins/Domoticz-TinyTUYA-Plugin/plugin.py", line 811, in onHeartbeat
2025-01-15 09:13:49.105 Error: tuya: if time.time() - last_update < synctime and testData == False:
2025-01-15 09:13:49.105 Error: tuya: NameError: name 'synctime' is not defined
Can this be fixed?
Also then i try to control one of the tuya devices i get this error.
2025-01-15 09:22:23.094 Error: tuya: Call to function 'onCommand' failed, exception details:
2025-01-15 09:22:23.095 Error: tuya: Traceback (most recent call last):
2025-01-15 09:22:23.095 Error: tuya: File "/home/domoticz/plugins/Domoticz-TinyTUYA-Plugin/plugin.py", line 844, in onCommand
2025-01-15 09:22:23.095 Error: tuya: _plugin.onCommand(DeviceID, Unit, Command, Level, Color)
2025-01-15 09:22:23.095 Error: tuya: File "/home/domoticz/plugins/Domoticz-TinyTUYA-Plugin/plugin.py", line 137, in onCommand
2025-01-15 09:22:23.095 Error: tuya: if Error is not None:
2025-01-15 09:22:23.095 Error: tuya: NameError: name 'Error' is not defined
- waltervl
- Posts: 5361
- Joined: Monday 28 January 2019 18:48
- Target OS: Linux
- Domoticz version: 2024.7
- Location: NL
- Contact:
Re: Python Plugin: Domoticz-TinyTUYA-Plugin (Cloud)
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
-
- Posts: 3
- Joined: Wednesday 15 January 2025 9:19
- Target OS: Linux
- Domoticz version:
- Contact:
Re: Python Plugin: Domoticz-TinyTUYA-Plugin (Cloud)
Thanks.
Found out this was a new settings in the latest version what had a new settings in the plugin.
So i needed to set the API Polling interval to a number, and when it worked.
A error i get now is Error: tuya: handleThread: string indices must be integers line 956
Found out this was a new settings in the latest version what had a new settings in the plugin.
So i needed to set the API Polling interval to a number, and when it worked.
A error i get now is Error: tuya: handleThread: string indices must be integers line 956
- Xenomes
- Posts: 383
- Joined: Tuesday 27 November 2018 19:05
- Target OS: Linux
- Domoticz version: 2024.7
- Location: Netherlands
- Contact:
Re: Python Plugin: Domoticz-TinyTUYA-Plugin (Cloud)
Can you try the new version of the plugin, line 2324 has moved by code update.desertdog wrote: ↑Tuesday 10 December 2024 13:07 I installed the TunyTuya plugin and followed all steps. Got one of the device ID from an hardware item in the Tiya cloud. But no device is added to Domotic and I get the error: Tuya: handleThread: Device not found in Domoticz! Has the device been removed, or is the "Accept New Hardware" option not enabled? line 2324
Is there any way to fix this?
HP T630 (32GB SSD/8GB Mem) - Ubuntu 22.04.4 LTS (64Bit) - Domoticz 2024.7 with Machinon theme - RFLink - KaKu - Sonoff - Tasmota - Shelly - MQTT2Zigbee - OpenTherm Gateway - Tinytuya - IR Blaster - P1 Smart Meter - NPN Watermeter - Google Assistant
- Xenomes
- Posts: 383
- Joined: Tuesday 27 November 2018 19:05
- Target OS: Linux
- Domoticz version: 2024.7
- Location: Netherlands
- Contact:
Re: Python Plugin: Domoticz-TinyTUYA-Plugin (Cloud)
The FunctionProperties, StatusProperties and result are empty, put your device on 'DP instruction' on the iot.tuya.com instruction are on the pdf in the readme.BobKooi wrote: ↑Tuesday 07 January 2025 18:31 Hello everyone,
I am experimenting with TinyTuya to get a Water Detector and a few Smoke Detectors working within Domoticz; at least I would like to see the alarm messages from these devices being passed on within domoticz. So far no success. They are detected but not entirely correctly I suspect. See log. Am I doing something wrong or are these devices not sufficiently supported within the plugin?
I can see and hear the alarm in the tuya app.
Also, does anyone perhaps already have other Contribs for these devices?
Water Detector is: Nedis Wi-Fi, type: WIFIDW10WT (with battery)
Smoke Detector is: Nedis Wi-Fi, type: WIFIDS10WT (with battery)
I’m running Dom version 2024.7 with Python version 3.11.2 and TinyTuya 2.0.6
I have already run 'debug_discovery.py' and they all appear in the json file.
Log:
- Spoiler: show
Last edited by Xenomes on Tuesday 28 January 2025 20:57, edited 2 times in total.
HP T630 (32GB SSD/8GB Mem) - Ubuntu 22.04.4 LTS (64Bit) - Domoticz 2024.7 with Machinon theme - RFLink - KaKu - Sonoff - Tasmota - Shelly - MQTT2Zigbee - OpenTherm Gateway - Tinytuya - IR Blaster - P1 Smart Meter - NPN Watermeter - Google Assistant
- Xenomes
- Posts: 383
- Joined: Tuesday 27 November 2018 19:05
- Target OS: Linux
- Domoticz version: 2024.7
- Location: Netherlands
- Contact:
Re: Python Plugin: Domoticz-TinyTUYA-Plugin (Cloud)
This issue is fixed in a newer version.Evolverixw04c7i wrote: ↑Wednesday 15 January 2025 9:23 I have a lot of Error on Synctime on heartbeat.
see log below
Can this be fixed?
- Spoiler: show
Also then i try to control one of the tuya devices i get this error.
- Spoiler: show
Set a default value in the current plugin version, also the readme is updated with Important flag for the extra setting update.Evolverixw04c7i wrote: ↑Thursday 16 January 2025 9:38 Thanks.
Found out this was a new settings in the latest version what had a new settings in the plugin.
So i needed to set the API Polling interval to a number, and when it worked.
A error i get now is Error: tuya: handleThread: string indices must be integers line 956
HP T630 (32GB SSD/8GB Mem) - Ubuntu 22.04.4 LTS (64Bit) - Domoticz 2024.7 with Machinon theme - RFLink - KaKu - Sonoff - Tasmota - Shelly - MQTT2Zigbee - OpenTherm Gateway - Tinytuya - IR Blaster - P1 Smart Meter - NPN Watermeter - Google Assistant
- Xenomes
- Posts: 383
- Joined: Tuesday 27 November 2018 19:05
- Target OS: Linux
- Domoticz version: 2024.7
- Location: Netherlands
- Contact:
Re: Python Plugin: Domoticz-TinyTUYA-Plugin (Cloud)
Looking for a tester for the Tuya Pulsar push system (tuya-connector), preferably someone with a variety of Tuya WiFi devices, a separate Domoticz setup for testing, and some basic Python knowledge.
Tuya-connector-python is a Python library for communicating with the Tuya IoT Cloud API, enabling easy integration and control of Tuya-compatible IoT devices, with support for message queue handling.
See https://github.com/Xenomes/Domoticz-Tin ... ree/pulsar
When Pulsar is used, the tuya-connector-python module meets to be installed and the message service on iot.tuya.com needs to be enabled!
Please report issues here at github and start the issue with [Pulsar].
Tuya-connector-python is a Python library for communicating with the Tuya IoT Cloud API, enabling easy integration and control of Tuya-compatible IoT devices, with support for message queue handling.
See https://github.com/Xenomes/Domoticz-Tin ... ree/pulsar
When Pulsar is used, the tuya-connector-python module meets to be installed and the message service on iot.tuya.com needs to be enabled!
Code: Select all
sudo pip3 install tuya-connector-python
Please report issues here at github and start the issue with [Pulsar].
HP T630 (32GB SSD/8GB Mem) - Ubuntu 22.04.4 LTS (64Bit) - Domoticz 2024.7 with Machinon theme - RFLink - KaKu - Sonoff - Tasmota - Shelly - MQTT2Zigbee - OpenTherm Gateway - Tinytuya - IR Blaster - P1 Smart Meter - NPN Watermeter - Google Assistant
Who is online
Users browsing this forum: No registered users and 0 guests