A lot of new devices are not detected by the old Tuyaha module, you can try the newer https://github.com/Xenomes/Domoticz-TinyTUYA-Pluginricorico94 wrote: ↑Monday 08 May 2023 16:23 Hi,
I've been using the great pugin for long time now, with several switches devices : great job and thanks a lot !
I've just added through my android App Smart Life a new device, an "irrigation device" "ie this : https://fr.aliexpress.com/item/10050050 ... pt=glo2fra
It seems working well when using the android app.
However, when I stop/start the plugin in domoticz, it doesn't see that device. If I use the debug_discovery.py script, I can also see my other switching devices, but not that one.
Any idea of what I can try to get it listed and working ? (in practice the oly thing I'd like to do through Domoticz is to switch it on/off, like standard electric switches..)
br,
Ricorico94
Python Plugin: TUYA
Moderator: leecollings
- Xenomes
- Posts: 400
- Joined: Tuesday 27 November 2018 19:05
- Target OS: Linux
- Domoticz version: 2024.7
- Location: Netherlands
- Contact:
Re: Python Plugin: TUYA
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: 5
- Joined: Tuesday 29 November 2016 11:22
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Python Plugin: TUYA
My devices all of a sudden stopped working with the following error in the log file : Error: Smart: handleThread: Get accesstoken failed. Username or password error! line 218
I changed the password and put the new one in the hardware tab but still gets the same error. Any suggestions ?
Thanks
I changed the password and put the new one in the hardware tab but still gets the same error. Any suggestions ?
Thanks
- Xenomes
- Posts: 400
- Joined: Tuesday 27 November 2018 19:05
- Target OS: Linux
- Domoticz version: 2024.7
- Location: Netherlands
- Contact:
Re: Python Plugin: TUYA
There is a issue with special characters, if you new password have one change it to a other or remove it and try again.
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: 19
- Joined: Saturday 20 May 2023 17:26
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Python Plugin: TUYA
Hello,
I was using the plugin (Domoticz-TUYA) on a Raspberry Pi for some time and it was working fine. Recently I got a strange issue with it - when I add/update it in Domoticz in the logs I can only see and nothing more logged for that Hardware:
Hardware is named "Tuya2".
I have the required python packages - tuyaha and requests
Tried deleting it in Domoticz and the plugin folder, reinstalling it - via PP Manager, directly downloading it via git, restarting Domoticz, restarting Raspberry Pi, making upgrade of the OS - same result. Debug script is showing the devices and plugin is working fine on a secondary Raspberry Pi I have.
I know it is a hard-to-check issue since there in nothing logged and I would be please if you can help me with some guidance what to check.
Thank you in advance.
I was using the plugin (Domoticz-TUYA) on a Raspberry Pi for some time and it was working fine. Recently I got a strange issue with it - when I add/update it in Domoticz in the logs I can only see and nothing more logged for that Hardware:
Code: Select all
Tuya2: Worker thread started.
Hardware is named "Tuya2".
I have the required python packages - tuyaha and requests
Tried deleting it in Domoticz and the plugin folder, reinstalling it - via PP Manager, directly downloading it via git, restarting Domoticz, restarting Raspberry Pi, making upgrade of the OS - same result. Debug script is showing the devices and plugin is working fine on a secondary Raspberry Pi I have.
I know it is a hard-to-check issue since there in nothing logged and I would be please if you can help me with some guidance what to check.
Thank you in advance.
- Xenomes
- Posts: 400
- Joined: Tuesday 27 November 2018 19:05
- Target OS: Linux
- Domoticz version: 2024.7
- Location: Netherlands
- Contact:
Re: Python Plugin: TUYA
T
The plugin should put out more log information then only this line.Cizetta wrote: ↑Saturday 20 May 2023 17:45 Hello,
I was using the plugin (Domoticz-TUYA) on a Raspberry Pi for some time and it was working fine. Recently I got a strange issue with it - when I add/update it in Domoticz in the logs I can only see and nothing more logged for that Hardware:Code: Select all
Tuya2: Worker thread started.
Hardware is named "Tuya2".
I have the required python packages - tuyaha and requests
Tried deleting it in Domoticz and the plugin folder, reinstalling it - via PP Manager, directly downloading it via git, restarting Domoticz, restarting Raspberry Pi, making upgrade of the OS - same result. Debug script is showing the devices and plugin is working fine on a secondary Raspberry Pi I have.
I know it is a hard-to-check issue since there in nothing logged and I would be please if you can help me with some guidance what to check.
Thank you 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
-
- Posts: 19
- Joined: Saturday 20 May 2023 17:26
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Python Plugin: TUYA
Yes, it should generate more logs. That's the strange part - no additional messages, no errors, no devices added. Like it somehow stops/hangs. I know it is not a common issue and it is hard for investigation with that lack of info.
- Xenomes
- Posts: 400
- Joined: Tuesday 27 November 2018 19:05
- Target OS: Linux
- Domoticz version: 2024.7
- Location: Netherlands
- Contact:
Re: Python Plugin: TUYA
Check if the plugin is active and three boxes of log level are selected, set debug to All. update the settings.
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: 19
- Joined: Saturday 20 May 2023 17:26
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Python Plugin: TUYA
After starting Domoticz manually with all debug and logging flags set I got the error:
Now I'm fighting with cryptography and pyOpenSSL packages.
Update:
Issue is resolved. According to the debug logs the plugin is using modules from python 3.7 (Domoticz uses python 3.7) but after the OS upgrade I'm using python 3.10. So pyopenssl just had to updated with pip3.7.
Thank you for the help!
Code: Select all
[686f3200] Error: Tuya2: AttributeError: module 'lib' has no attribute 'X509_V_FLAG_CB_ISSUER_CHECK'
Update:
Issue is resolved. According to the debug logs the plugin is using modules from python 3.7 (Domoticz uses python 3.7) but after the OS upgrade I'm using python 3.10. So pyopenssl just had to updated with pip3.7.
Thank you for the help!
-
- Posts: 77
- Joined: Thursday 07 June 2018 21:57
- Target OS: Raspberry Pi / ODroid
- Domoticz version: latest
- Location: Noordwijk, Netherlands
- Contact:
Re: Python Plugin: TUYA
The post below had been placed in the wrong forum topic due to a misunderstanding. So restored in this one.
Hi all,
I'm on a RPi 5 running on Bookworm. Bullseye is no longer supported for this hardware. see:
https://www.raspberrypi.com/documentati ... spberry-pi
Due to changes in the way pip should be handled now, I seem to be running into a problem with getting Tuya working.
In accordance with the descriptions in the link above, I have created a virtual environment in which pip installations like this can be processed. In doing so, I no longer get the annoying error message that prevents you from continuing the installation process.
It seems to me that from the Plugins folder in Domoticz, in the Plugin.py file is being searched for components that can no longer be found in the default location.
Can you help me get this sorted out?
Hi all,
I'm on a RPi 5 running on Bookworm. Bullseye is no longer supported for this hardware. see:
https://www.raspberrypi.com/documentati ... spberry-pi
Due to changes in the way pip should be handled now, I seem to be running into a problem with getting Tuya working.
Code: Select all
2023-12-02 15:04:27.517 Error: Smart Life: (tuya) failed to load 'plugin.py', Python Path used was '/home/MYUSERNAME/domoticz/plugins/Domoticz-TUYA-Plugin/:/usr/lib/python311.zip:/usr/lib/python3.11:/usr/lib/python3.11/lib-dynload:/usr/local/lib/python3.11/dist-packages:/usr/lib/python3/dist-packages:/usr/lib/python3.11/dist-packages'.
2023-12-02 15:04:27.544 Error: Smart Life: Traceback (most recent call last):
2023-12-02 15:04:27.544 Error: Smart Life: File "/home/MYUSERNAME/domoticz/plugins/Domoticz-TUYA-Plugin/plugin.py", line 65, in <module>
2023-12-02 15:04:27.544 Error: Smart Life: import tuyaha
2023-12-02 15:04:27.544 Error: Smart Life: ModuleNotFoundError: No module named 'tuyaha'
It seems to me that from the Plugins folder in Domoticz, in the Plugin.py file is being searched for components that can no longer be found in the default location.
Can you help me get this sorted out?
- waltervl
- Posts: 5752
- Joined: Monday 28 January 2019 18:48
- Target OS: Linux
- Domoticz version: 2024.7
- Location: NL
- Contact:
Re: Python Plugin: TUYA
From the Zigbee for Domoticz plugin wiki I read that for bookworm they need to add (double dash!) to the pip install command. Perhaps this helps you.
Code: Select all
–break-system-packages
sudo pip3 install -r requirements.txt
Note : With Debian 12 Bookworm, you have to add
–break-system-packages at the end of the previous command line. Be careful to take the two dash at the beginning.
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: 400
- Joined: Tuesday 27 November 2018 19:05
- Target OS: Linux
- Domoticz version: 2024.7
- Location: Netherlands
- Contact:
Re: Python Plugin: TUYA
I see the issue, and Waltervl's solution is the best option until Domoticz has its own virtual Python environment where modules can be installed. I tested it, and it works. The only thing is that Domoticz service needs an update to use/start the virtual Python environment.
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: 77
- Joined: Thursday 07 June 2018 21:57
- Target OS: Raspberry Pi / ODroid
- Domoticz version: latest
- Location: Noordwijk, Netherlands
- Contact:
Re: Python Plugin: TUYA
This does not seem to work, or I am doing something wrong of course. To make sure it wasn't due to the current installation, I did a new Bookworm installation with the latest Domoticz version.
I keep getting the message that the virtual environment is externally managed.
I looked up the relevant Wiki: https://zigbeefordomoticz.github.io/wik ... ation.html
I used the following commands (Obviously taking into account the double dash):
What I get back in both situations is:
I agree with Xenomes that it would be good if Domoticz got an update with its own virtual environment.
@Xenomes: You indicate that you have tested this. So I'm curious how you did that then.
Thanx so far for taking the time guys!
I keep getting the message that the virtual environment is externally managed.
I looked up the relevant Wiki: https://zigbeefordomoticz.github.io/wik ... ation.html
I used the following commands (Obviously taking into account the double dash):
Code: Select all
sudo pip3 install tuyaha requests==2.23.0 –break-system-packages
Code: Select all
sudo pip3 install tuyaha requests –break-system-packages
Code: Select all
error: externally-managed-environment
× This environment is externally managed
╰─> To install Python packages system-wide, try apt install
python3-xyz, where xyz is the package you are trying to
install.
If you wish to install a non-Debian-packaged Python package,
create a virtual environment using python3 -m venv path/to/venv.
Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make
sure you have python3-full installed.
For more information visit http://rptl.io/venv
note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages.
hint: See PEP 668 for the detailed specification.
@Xenomes: You indicate that you have tested this. So I'm curious how you did that then.
Thanx so far for taking the time guys!
- Xenomes
- Posts: 400
- Joined: Tuesday 27 November 2018 19:05
- Target OS: Linux
- Domoticz version: 2024.7
- Location: Netherlands
- Contact:
Re: Python Plugin: TUYA
Warning: I performed this on a test system within my VM environment, so it is not a viable solution for a live system.
Code: Select all
python -m venv ~/domoticz # install Python Virtual Environment
cd ~/domoticz
source bin/activate # Activate Virtual Environment
pip3 install tuyaha requests==2.23.0
./domoticz -www 8080 -sslwww 0 # Working python modules
deactivate
./domoticz -www 8080 -sslwww 0 # Not working python modules
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: 77
- Joined: Thursday 07 June 2018 21:57
- Target OS: Raspberry Pi / ODroid
- Domoticz version: latest
- Location: Noordwijk, Netherlands
- Contact:
Re: Python Plugin: TUYA
Now working with:
It was the double dash I think
Thanx for working with me guys
Code: Select all
sudo pip3 install tuyaha requests --break-system-packages

Thanx for working with me guys
-
- Posts: 6
- Joined: Friday 23 February 2024 10:31
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Python Plugin: TUYA
Hello!
Please, help me!
Python Version: 3.7.3 (default, Oct 11 2023, 09:51:27) [GCC 8.3.0]
How to add my Tuya Valve Controller (gas/water) to my Domoticz?
tuyaha plugin also results 'Device count: 0' and many messages like "onHeartbeat called time="
a screenshot from my SmartLife app: link
My anti-flooding home system doesn't make sense without this integration.
Please, help!
Please, help me!
Python Version: 3.7.3 (default, Oct 11 2023, 09:51:27) [GCC 8.3.0]
Code: Select all
2024-02-23 10:17:13.930 Status: New sensors allowed for 5 minutes...
2024-02-23 10:17:15.783 Status: TuyaXenomes: Entering work loop.
2024-02-23 10:17:15.783 Status: TuyaXenomes: Started.
2024-02-23 10:17:16.456 Status: TuyaXenomes: Initialized version 1.0.16, author 'Wagner Oliveira contributed Xenomes'
2024-02-23 10:18:16.520 TuyaXenomes: 'Key':'tuya'
2024-02-23 10:18:16.520 TuyaXenomes: 'Mode1':'48'
2024-02-23 10:18:16.520 TuyaXenomes: 'Mode2':'smart_life'
2024-02-23 10:18:16.520 TuyaXenomes: 'Mode6':'18'
2024-02-23 10:18:16.520 TuyaXenomes: 'DomoticzVersion':'2024.4'
2024-02-23 10:18:16.520 TuyaXenomes: 'DomoticzHash':'731719420'
2024-02-23 10:18:16.520 TuyaXenomes: 'DomoticzBuildTime':'2024-01-30 09:16:34'
2024-02-23 10:18:16.520 TuyaXenomes: Device count: 0
2024-02-23 10:18:16.521 TuyaXenomes: in handlethread
2024-02-23 10:18:16.623 TuyaXenomes: onHeartbeat called time=1708679896.6235979
2024-02-23 10:18:16.624 TuyaXenomes: in handlethread
2024-02-23 10:18:16.624 TuyaXenomes: Device count: 0
2024-02-23 10:18:16.356 [b]Error: TuyaXenomes hardware (10) thread seems to have ended unexpectedly[/b]
2024-02-23 10:18:30.932 TuyaXenomes: onStop called
2024-02-23 10:18:30.931 Status: TuyaXenomes: Stop directive received.
2024-02-23 10:18:31.059 Status: TuyaXenomes: Exiting work loop.
2024-02-23 10:18:31.132 Status: TuyaXenomes: Stopping threads.
2024-02-23 10:18:31.132 Status: TuyaXenomes: Stopped.
2024-02-23 10:18:47.591 Oswietlenie: Inclusion mode=0
2024-02-23 10:26:02.966 Status: New sensors allowed for 5 minutes...
2024-02-23 10:26:06.814 TuyaXenomes: Worker thread started.
2024-02-23 10:26:06.813 Status: TuyaXenomes: Entering work loop.
2024-02-23 10:26:06.814 Status: TuyaXenomes: Started.
2024-02-23 10:26:07.454 TuyaXenomes: Waiting 60 seconds to connect TuyaApi login error timeout
2024-02-23 10:26:07.454 TuyaXenomes: Waiting 50 seconds to connect TuyaApi (Tuya Plug-in)
2024-02-23 10:26:07.453 Status: TuyaXenomes: Initialized version 1.0.16, author 'Wagner Oliveira contributed Xenomes'
2024-02-23 10:26:10.825 Status: TuyaXenomes: Stop directive received.
2024-02-23 10:26:17.465 TuyaXenomes: Waiting 40 seconds to connect TuyaApi (Tuya Plug-in)
2024-02-23 10:26:27.475 TuyaXenomes: Waiting 30 seconds to connect TuyaApi (Tuya Plug-in)
2024-02-23 10:26:37.485 TuyaXenomes: Waiting 20 seconds to connect TuyaApi (Tuya Plug-in)
2024-02-23 10:26:47.495 TuyaXenomes: Waiting 10 seconds to connect TuyaApi (Tuya Plug-in)
2024-02-23 10:26:57.505 TuyaXenomes: Waiting 0 seconds to connect TuyaApi (Tuya Plug-in)
2024-02-23 10:27:07.515 TuyaXenomes: TUYA plugin started
2024-02-23 10:27:07.515 TuyaXenomes: Debug logging mask set to: PYTHON PLUGIN QUEUE IMAGE DEVICE CONNECTION MESSAGE
2024-02-23 10:27:07.516 TuyaXenomes: 'HardwareID':'10'
2024-02-23 10:27:07.516 TuyaXenomes: 'HomeFolder':'/home/pi/domoticz/plugins/Domoticz-TUYA-Plugin/'
2024-02-23 10:27:07.516 TuyaXenomes: 'StartupFolder':'/home/pi/domoticz/'
2024-02-23 10:27:07.516 TuyaXenomes: 'UserDataFolder':'/home/pi/domoticz/'
2024-02-23 10:27:07.516 TuyaXenomes: 'Database':'/home/pi/domoticz/domoticz.db'
2024-02-23 10:27:07.516 TuyaXenomes: 'Language':'pl'
2024-02-23 10:27:07.516 TuyaXenomes: 'Version':'1.0.16'
2024-02-23 10:27:07.516 TuyaXenomes: 'Author':'Wagner Oliveira contributed Xenomes'
2024-02-23 10:27:07.516 TuyaXenomes: 'Name':'TuyaXenomes'
2024-02-23 10:27:07.516 TuyaXenomes: 'Port':'0'
2024-02-23 10:27:07.516 TuyaXenomes: 'Username':'**************'
2024-02-23 10:27:07.516 TuyaXenomes: 'Password':'**************'
2024-02-23 10:27:07.516 TuyaXenomes: 'Key':'tuya'
2024-02-23 10:27:07.516 TuyaXenomes: 'Mode1':'48'
2024-02-23 10:27:07.516 TuyaXenomes: 'Mode2':'smart_life'
2024-02-23 10:27:07.516 TuyaXenomes: 'Mode6':'-1'
2024-02-23 10:27:07.516 TuyaXenomes: 'DomoticzVersion':'2024.4'
2024-02-23 10:27:07.516 TuyaXenomes: 'DomoticzHash':'731719420'
2024-02-23 10:27:07.516 TuyaXenomes: 'DomoticzBuildTime':'2024-01-30 09:16:34'
2024-02-23 10:27:07.516 TuyaXenomes: Device count: 0
2024-02-23 10:27:07.517 TuyaXenomes: in handlethread
2024-02-23 10:27:07.519 TuyaXenomes: Acquiring GIL for 'onStartCallback'
2024-02-23 10:27:07.520 TuyaXenomes: Processing 'onStopCallback' message
2024-02-23 10:27:07.520 TuyaXenomes: Acquiring GIL for 'onStopCallback'
2024-02-23 10:27:07.520 TuyaXenomes: Calling message handler 'onStop' on 'module' type object.
2024-02-23 10:27:07.520 TuyaXenomes: onStop called
2024-02-23 10:27:09.676 TuyaXenomes: Worker thread started.
2024-02-23 10:27:09.627 Status: TuyaXenomes: Exiting work loop.
2024-02-23 10:27:09.676 Status: TuyaXenomes: Stopping threads.
2024-02-23 10:27:09.676 Status: TuyaXenomes: Stopped.
2024-02-23 10:27:09.676 Status: TuyaXenomes: Entering work loop.
2024-02-23 10:27:09.676 Status: TuyaXenomes: Started.
2024-02-23 10:27:10.265 TuyaXenomes: Waiting 60 seconds to connect TuyaApi login error timeout
2024-02-23 10:27:10.265 TuyaXenomes: Waiting 50 seconds to connect TuyaApi (Tuya Plug-in)
2024-02-23 10:27:10.264 Status: TuyaXenomes: Initialized version 1.0.16, author 'Wagner Oliveira contributed Xenomes'
2024-02-23 10:27:20.275 TuyaXenomes: Waiting 40 seconds to connect TuyaApi (Tuya Plug-in)
2024-02-23 10:27:30.285 TuyaXenomes: Waiting 30 seconds to connect TuyaApi (Tuya Plug-in)
2024-02-23 10:27:40.296 TuyaXenomes: Waiting 20 seconds to connect TuyaApi (Tuya Plug-in)
2024-02-23 10:27:50.306 TuyaXenomes: Waiting 10 seconds to connect TuyaApi (Tuya Plug-in)
2024-02-23 10:28:00.316 TuyaXenomes: Waiting 0 seconds to connect TuyaApi (Tuya Plug-in)
2024-02-23 10:28:10.326 TuyaXenomes: TUYA plugin started
2024-02-23 10:28:10.326 TuyaXenomes: Debug logging mask set to: PYTHON PLUGIN QUEUE IMAGE DEVICE CONNECTION MESSAGE
2024-02-23 10:28:10.326 TuyaXenomes: 'HardwareID':'10'
2024-02-23 10:28:10.327 TuyaXenomes: 'HomeFolder':'/home/pi/domoticz/plugins/Domoticz-TUYA-Plugin/'
2024-02-23 10:28:10.327 TuyaXenomes: 'StartupFolder':'/home/pi/domoticz/'
2024-02-23 10:28:10.327 TuyaXenomes: 'UserDataFolder':'/home/pi/domoticz/'
2024-02-23 10:28:10.327 TuyaXenomes: 'Database':'/home/pi/domoticz/domoticz.db'
2024-02-23 10:28:10.327 TuyaXenomes: 'Language':'pl'
2024-02-23 10:28:10.327 TuyaXenomes: 'Version':'1.0.16'
2024-02-23 10:28:10.327 TuyaXenomes: 'Author':'Wagner Oliveira contributed Xenomes'
2024-02-23 10:28:10.327 TuyaXenomes: 'Name':'TuyaXenomes'
2024-02-23 10:28:10.327 TuyaXenomes: 'Port':'0'
2024-02-23 10:28:10.327 TuyaXenomes: 'Username':'**************'
2024-02-23 10:28:10.327 TuyaXenomes: 'Password':'**************'
2024-02-23 10:28:10.327 TuyaXenomes: 'Key':'tuya'
2024-02-23 10:28:10.327 TuyaXenomes: 'Mode1':'48'
2024-02-23 10:28:10.327 TuyaXenomes: 'Mode2':'smart_life'
2024-02-23 10:28:10.327 TuyaXenomes: 'Mode6':'-1'
2024-02-23 10:28:10.327 TuyaXenomes: 'DomoticzVersion':'2024.4'
2024-02-23 10:28:10.327 TuyaXenomes: 'DomoticzHash':'731719420'
2024-02-23 10:28:10.327 TuyaXenomes: 'DomoticzBuildTime':'2024-01-30 09:16:34'
2024-02-23 10:28:10.327 TuyaXenomes: Device count: 0
2024-02-23 10:28:10.329 TuyaXenomes: in handlethread
2024-02-23 10:28:10.331 TuyaXenomes: Acquiring GIL for 'onStartCallback'
2024-02-23 10:28:10.382 TuyaXenomes: Pushing 'onHeartbeatCallback' on to queue
2024-02-23 10:28:10.432 TuyaXenomes: Processing 'onHeartbeatCallback' message
2024-02-23 10:28:10.432 TuyaXenomes: Acquiring GIL for 'onHeartbeatCallback'
2024-02-23 10:28:10.432 TuyaXenomes: Calling message handler 'onHeartbeat' on 'module' type object.
2024-02-23 10:28:10.432 TuyaXenomes: onHeartbeat called time=1708680490.4323788
2024-02-23 10:28:10.433 TuyaXenomes: in handlethread
2024-02-23 10:28:10.437 TuyaXenomes: Device count: 0
2024-02-23 10:28:10.437 TuyaXenomes: Acquiring GIL for 'onHeartbeatCallback'
2024-02-23 10:28:11.191 [b]Error: TuyaXenomes: handleThread: you cannot auth exceed once in 180 seconds line 218[/b]
2024-02-23 10:28:20.007 TuyaXenomes: Pushing 'onHeartbeatCallback' on to queue
2024-02-23 10:28:20.057 TuyaXenomes: Processing 'onHeartbeatCallback' message
2024-02-23 10:28:20.057 TuyaXenomes: Acquiring GIL for 'onHeartbeatCallback'
2024-02-23 10:28:20.057 TuyaXenomes: Calling message handler 'onHeartbeat' on 'module' type object.
2024-02-23 10:28:20.057 TuyaXenomes: Acquiring GIL for 'onHeartbeatCallback'
2024-02-23 10:28:26.492 TuyaXenomes: Pushing 'onStopCallback' on to queue
2024-02-23 10:28:26.492 TuyaXenomes: Processing 'onStopCallback' message
2024-02-23 10:28:26.492 TuyaXenomes: Acquiring GIL for 'onStopCallback'
2024-02-23 10:28:26.492 TuyaXenomes: Calling message handler 'onStop' on 'module' type object.
2024-02-23 10:28:26.492 TuyaXenomes: onStop called
2024-02-23 10:28:26.492 Status: TuyaXenomes: Stop directive received.
2024-02-23 10:28:26.616 Status: TuyaXenomes: Exiting work loop.
2024-02-23 10:28:26.692 Status: TuyaXenomes: Stopping threads.
2024-02-23 10:28:26.692 Status: TuyaXenomes: Stopped.
later...
2024-02-23 11:20:37.062 TuyaXenomes: Device count: 0
2024-02-23 11:20:37.062 TuyaXenomes: Acquiring GIL for 'onHeartbeatCallback'
2024-02-23 11:20:47.030 TuyaXenomes: Pushing 'onHeartbeatCallback' on to queue
2024-02-23 11:20:47.081 TuyaXenomes: Processing 'onHeartbeatCallback' message
2024-02-23 11:20:47.081 TuyaXenomes: Acquiring GIL for 'onHeartbeatCallback'
2024-02-23 11:20:47.081 TuyaXenomes: Calling message handler 'onHeartbeat' on 'module' type object.
2024-02-23 11:20:47.081 TuyaXenomes: Acquiring GIL for 'onHeartbeatCallback'
2024-02-23 11:20:57.000 TuyaXenomes: Pushing 'onHeartbeatCallback' on to queue
2024-02-23 11:20:57.050 TuyaXenomes: Processing 'onHeartbeatCallback' message
2024-02-23 11:20:57.050 TuyaXenomes: Acquiring GIL for 'onHeartbeatCallback'
2024-02-23 11:20:57.050 TuyaXenomes: Calling message handler 'onHeartbeat' on 'module' type object.
2024-02-23 11:20:57.050 TuyaXenomes: Acquiring GIL for 'onHeartbeatCallback'
2024-02-23 11:21:07.020 TuyaXenomes: Pushing 'onHeartbeatCallback' on to queue
2024-02-23 11:21:07.070 TuyaXenomes: Processing 'onHeartbeatCallback' message
2024-02-23 11:21:07.070 TuyaXenomes: Acquiring GIL for 'onHeartbeatCallback'
2024-02-23 11:21:07.070 TuyaXenomes: Calling message handler 'onHeartbeat' on 'module' type object.
2024-02-23 11:21:07.070 TuyaXenomes: Acquiring GIL for 'onHeartbeatCallback'
2024-02-23 11:21:17.040 TuyaXenomes: Pushing 'onHeartbeatCallback' on to queue
2024-02-23 11:21:17.090 TuyaXenomes: Processing 'onHeartbeatCallback' message
2024-02-23 11:21:17.090 TuyaXenomes: Acquiring GIL for 'onHeartbeatCallback'
2024-02-23 11:21:17.090 TuyaXenomes: Calling message handler 'onHeartbeat' on 'module' type object.
2024-02-23 11:21:17.090 TuyaXenomes: Acquiring GIL for 'onHeartbeatCallback'
2024-02-23 11:21:27.010 TuyaXenomes: Pushing 'onHeartbeatCallback' on to queue
2024-02-23 11:21:27.060 TuyaXenomes: Processing 'onHeartbeatCallback' message
2024-02-23 11:21:27.060 TuyaXenomes: Acquiring GIL for 'onHeartbeatCallback'
2024-02-23 11:21:27.060 TuyaXenomes: Calling message handler 'onHeartbeat' on 'module' type object.
2024-02-23 11:21:27.060 TuyaXenomes: Acquiring GIL for 'onHeartbeatCallback'
2024-02-23 11:21:37.028 TuyaXenomes: Pushing 'onHeartbeatCallback' on to queue
2024-02-23 11:21:37.078 TuyaXenomes: Processing 'onHeartbeatCallback' message
2024-02-23 11:21:37.078 TuyaXenomes: Acquiring GIL for 'onHeartbeatCallback'
2024-02-23 11:21:37.078 TuyaXenomes: Calling message handler 'onHeartbeat' on 'module' type object.
2024-02-23 11:21:37.078 TuyaXenomes: Acquiring GIL for 'onHeartbeatCallback'
2024-02-23 11:21:47.048 TuyaXenomes: Pushing 'onHeartbeatCallback' on to queue
2024-02-23 11:21:47.098 TuyaXenomes: Processing 'onHeartbeatCallback' message
2024-02-23 11:21:47.098 TuyaXenomes: Acquiring GIL for 'onHeartbeatCallback'
2024-02-23 11:21:47.098 TuyaXenomes: Calling message handler 'onHeartbeat' on 'module' type object.
2024-02-23 11:21:47.098 TuyaXenomes: onHeartbeat called time=1708683707.0985184
2024-02-23 11:21:47.099 TuyaXenomes: in handlethread
2024-02-23 11:21:47.099 TuyaXenomes: Device count: 0
tuyaha plugin also results 'Device count: 0' and many messages like "onHeartbeat called time="
a screenshot from my SmartLife app: link
My anti-flooding home system doesn't make sense without this integration.
Please, help!
Last edited by papryk18 on Friday 23 February 2024 11:22, edited 2 times in total.
- Xenomes
- Posts: 400
- Joined: Tuesday 27 November 2018 19:05
- Target OS: Linux
- Domoticz version: 2024.7
- Location: Netherlands
- Contact:
Re: Python Plugin: TUYA
Newer Tuya devices are not supported by the old Tuyaha (which is archived on GitHub). You can try using https://github.com/Xenomes/Domoticz-TinyTUYA-Plugin, which is based on the tinytuya module.
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: 6
- Joined: Friday 23 February 2024 10:31
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Python Plugin: TUYA
Works fine. Thanks a lot.Xenomes wrote: ↑Friday 23 February 2024 20:05 Newer Tuya devices are not supported by the old Tuyaha (which is archived on GitHub). You can try using https://github.com/Xenomes/Domoticz-TinyTUYA-Plugin, which is based on the tinytuya module.
Re: Python Plugin: TUYA
Hello everyone,
Has anyone installed the plugin "https://github.com/Xenomes/Domoticz-TinyTUYA-Plugin" on Windows ?
I follow the procedure to the letter and do not see where we enter "your apiRegion, apiKey, apiSecret and Search deviceID".
I must be wrong somewhere.
Thanking you,
Mark
Has anyone installed the plugin "https://github.com/Xenomes/Domoticz-TinyTUYA-Plugin" on Windows ?
I follow the procedure to the letter and do not see where we enter "your apiRegion, apiKey, apiSecret and Search deviceID".
I must be wrong somewhere.
Thanking you,
Mark
- Xenomes
- Posts: 400
- Joined: Tuesday 27 November 2018 19:05
- Target OS: Linux
- Domoticz version: 2024.7
- Location: Netherlands
- Contact:
Re: Python Plugin: TUYA
Yes the plugin works under Windows.Markef wrote: ↑Monday 26 February 2024 16:23 Has anyone installed the plugin "https://github.com/Xenomes/Domoticz-TinyTUYA-Plugin" on Windows ?
In the old version these where used, it could be changed to the names used on the pdf / oit.tuya.com.
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: 748
- Joined: Saturday 27 February 2016 12:49
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2020.2
- Location: NL
- Contact:
Re: Python Plugin: TUYA
I have been using TUYA plugin version 1.0.13 for quite some time now, it used to work OK but recently I find it non-responding. No apparent error code, just "not working".
I have tried to disable and then enable the plugin, but that sometimes fails and locksup Domoticz.
The solution that works OK is to log in to the Pi, and restart the Domoticz service.
Any clues?
I have thought about migrating to another plugin (tinyTuya??), but am a bit worried about the migration path. Would I lose all devices, and then manually have to re-install?
I have tried to disable and then enable the plugin, but that sometimes fails and locksup Domoticz.
The solution that works OK is to log in to the Pi, and restart the Domoticz service.
Any clues?
I have thought about migrating to another plugin (tinyTuya??), but am a bit worried about the migration path. Would I lose all devices, and then manually have to re-install?
Hans
Who is online
Users browsing this forum: No registered users and 1 guest