Python Plugin: Domoticz-TinyTUYA-Plugin (Cloud)

Python and python framework

Moderator: leecollings

Post Reply
User avatar
Varazir
Posts: 360
Joined: Friday 20 February 2015 22:23
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Contact:

Re: Python Plugin: Domoticz-TinyTUYA-Plugin (Cloud)

Post by Varazir »

Xenomes wrote: Thursday 04 May 2023 15:58 Can you put the plugin on debug all, then the plugin will give a line where the error condors.

Code: Select all

2023-05-04 18:26:05.709 Error: TinyTUYA: Device read failed: bfd6bda7f3a84e2064d97h
2023-05-04 18:26:06.182 TinyTUYA: Acquiring GIL for 'onHeartbeatCallback'
2023-05-04 18:26:15.005 TinyTUYA: Pushing 'onHeartbeatCallback' on to queue
2023-05-04 18:26:15.055 TinyTUYA: Processing 'onHeartbeatCallback' message
2023-05-04 18:26:15.055 TinyTUYA: Acquiring GIL for 'onHeartbeatCallback'
2023-05-04 18:26:15.055 TinyTUYA: Calling message handler 'onHeartbeat' on 'module' type object.
2023-05-04 18:26:15.055 TinyTUYA: onHeartbeat called
2023-05-04 18:26:15.055 TinyTUYA: onHeartbeat called skipped
2023-05-04 18:26:15.056 TinyTUYA: Acquiring GIL for 'onHeartbeatCallback'
2023-05-04 18:26:25.029 TinyTUYA: Pushing 'onHeartbeatCallback' on to queue
2023-05-04 18:26:25.079 TinyTUYA: Processing 'onHeartbeatCallback' message
2023-05-04 18:26:25.079 TinyTUYA: Acquiring GIL for 'onHeartbeatCallback'
2023-05-04 18:26:25.079 TinyTUYA: Calling message handler 'onHeartbeat' on 'module' type object.
2023-05-04 18:26:25.079 TinyTUYA: onHeartbeat called
2023-05-04 18:26:25.080 TinyTUYA: onHeartbeat called skipped
2023-05-04 18:26:25.080 TinyTUYA: Acquiring GIL for 'onHeartbeatCallback'
2023-05-04 18:26:35.014 TinyTUYA: Pushing 'onHeartbeatCallback' on to queue
2023-05-04 18:26:35.065 TinyTUYA: Processing 'onHeartbeatCallback' message
2023-05-04 18:26:35.065 TinyTUYA: Acquiring GIL for 'onHeartbeatCallback'
2023-05-04 18:26:35.065 TinyTUYA: Calling message handler 'onHeartbeat' on 'module' type object.
2023-05-04 18:26:35.065 TinyTUYA: onHeartbeat called
2023-05-04 18:26:35.065 TinyTUYA: onHeartbeat called skipped
2023-05-04 18:26:35.065 TinyTUYA: Acquiring GIL for 'onHeartbeatCallback'
2023-05-04 18:26:45.042 TinyTUYA: Pushing 'onHeartbeatCallback' on to queue
2023-05-04 18:26:45.093 TinyTUYA: Processing 'onHeartbeatCallback' message
2023-05-04 18:26:45.093 TinyTUYA: Acquiring GIL for 'onHeartbeatCallback'
2023-05-04 18:26:45.093 TinyTUYA: Calling message handler 'onHeartbeat' on 'module' type object.
2023-05-04 18:26:45.093 TinyTUYA: onHeartbeat called
2023-05-04 18:26:45.093 TinyTUYA: onHeartbeat called skipped
2023-05-04 18:26:45.093 TinyTUYA: Acquiring GIL for 'onHeartbeatCallback'
2023-05-04 18:26:55.023 TinyTUYA: Pushing 'onHeartbeatCallback' on to queue
2023-05-04 18:26:55.073 TinyTUYA: Processing 'onHeartbeatCallback' message
2023-05-04 18:26:55.073 TinyTUYA: Acquiring GIL for 'onHeartbeatCallback'
2023-05-04 18:26:55.073 TinyTUYA: Calling message handler 'onHeartbeat' on 'module' type object.
2023-05-04 18:26:55.073 TinyTUYA: onHeartbeat called
2023-05-04 18:26:55.074 TinyTUYA: onHeartbeat called skipped
2023-05-04 18:26:55.074 TinyTUYA: Acquiring GIL for 'onHeartbeatCallback'
2023-05-04 18:27:05.036 TinyTUYA: Pushing 'onHeartbeatCallback' on to queue
2023-05-04 18:27:05.087 TinyTUYA: Processing 'onHeartbeatCallback' message
2023-05-04 18:27:05.087 TinyTUYA: Acquiring GIL for 'onHeartbeatCallback'
2023-05-04 18:27:05.087 TinyTUYA: Calling message handler 'onHeartbeat' on 'module' type object.
2023-05-04 18:27:05.087 TinyTUYA: onHeartbeat called
2023-05-04 18:27:05.087 TinyTUYA: onHeartbeat called skipped
2023-05-04 18:27:05.087 TinyTUYA: Acquiring GIL for 'onHeartbeatCallback'
2023-05-04 18:27:15.018 TinyTUYA: Pushing 'onHeartbeatCallback' on to queue
2023-05-04 18:27:15.072 TinyTUYA: Processing 'onHeartbeatCallback' message
2023-05-04 18:27:15.073 TinyTUYA: Acquiring GIL for 'onHeartbeatCallback'
2023-05-04 18:27:15.073 TinyTUYA: Calling message handler 'onHeartbeat' on 'module' type object.
2023-05-04 18:27:15.074 TinyTUYA: onHeartbeat called
2023-05-04 18:27:15.074 TinyTUYA: onHeartbeat called last run: 69.36461281776428
2023-05-04 18:27:15.075 TinyTUYA: Device name=Cleverio Wifi Outdoor Plug id=bfd6bda7f3a84e2064d97h category=switch
2023-05-04 18:27:15.651 TinyTUYA: Update devices in Domoticz
2023-05-04 18:27:15.657 TinyTUYA: handleThread: 15 line 955
2023-05-04 18:27:15.657 TinyTUYA: Device name=Cleverio AF-F100 id=43035720e098061d58bc category=fan
2023-05-04 18:27:15.657 Error: TinyTUYA: Device read failed: bfd6bda7f3a84e2064d97h
Works fine in the app.

Code: Select all

2023-05-04 18:30:33.433 TinyTUYA: Device ID: 'bfd6bda7f3a84e2064d97h'
2023-05-04 18:30:33.433 TinyTUYA: --->Unit Count: '5'
2023-05-04 18:30:33.433 TinyTUYA: --->Unit: 1
2023-05-04 18:30:33.433 TinyTUYA: --->Unit Name: 'Tvättmaskin'
2023-05-04 18:30:33.433 TinyTUYA: --->Unit nValue: 1
2023-05-04 18:30:33.433 TinyTUYA: --->Unit sValue: 'On'
2023-05-04 18:30:33.433 TinyTUYA: --->Unit LastLevel: 0
2023-05-04 18:30:33.433 TinyTUYA: --->Unit: 11
2023-05-04 18:30:33.433 TinyTUYA: --->Unit Name: 'Tvättmaskin (A)'
2023-05-04 18:30:33.433 TinyTUYA: --->Unit nValue: 0
2023-05-04 18:30:33.433 TinyTUYA: --->Unit sValue: '114'
2023-05-04 18:30:33.434 TinyTUYA: --->Unit LastLevel: 0
2023-05-04 18:30:33.434 TinyTUYA: --->Unit: 12
2023-05-04 18:30:33.434 TinyTUYA: --->Unit Name: 'Tvättmaskin: Current Watt Meter'
2023-05-04 18:30:33.434 TinyTUYA: --->Unit nValue: 0
2023-05-04 18:30:33.434 TinyTUYA: --->Unit sValue: '7'
2023-05-04 18:30:33.434 TinyTUYA: --->Unit LastLevel: 0
2023-05-04 18:30:33.434 TinyTUYA: --->Unit: 13
2023-05-04 18:30:33.434 TinyTUYA: --->Unit Name: 'Tvättmaskin (V)'
2023-05-04 18:30:33.434 TinyTUYA: --->Unit nValue: 0
2023-05-04 18:30:33.434 TinyTUYA: --->Unit sValue: '234'
2023-05-04 18:30:33.434 TinyTUYA: --->Unit LastLevel: 0
2023-05-04 18:30:33.434 TinyTUYA: --->Unit: 14
2023-05-04 18:30:33.434 TinyTUYA: --->Unit Name: 'Tvättmaskin: kWh Meter'
2023-05-04 18:30:33.434 TinyTUYA: --->Unit nValue: 0
2023-05-04 18:30:33.434 TinyTUYA: --->Unit sValue: '7;56422.9900833333'
2023-05-04 18:30:33.434 TinyTUYA: --->Unit LastLevel: 0
2023-05-04 18:30:33.435 TinyTUYA: Pushing 'PollIntervalDirective' on to queue
2023-05-04 18:30:33.416 Status: TinyTUYA: Initialized version 1.5.5, author 'Xenomes'
2023-05-04 18:30:34.479 TinyTUYA: No device data returned for Tuya. Trying again!
2023-05-04 18:30:34.936 TinyTUYA: Scanning for tuya devices on network...
2023-05-04 18:30:52.971 TinyTUYA: Device name=Cleverio Wifi Outdoor Plug id=bfd6bda7f3a84e2064d97h category=switch
2023-05-04 18:30:53.580 TinyTUYA: Run Startup script
2023-05-04 18:30:53.581 TinyTUYA: (TinyTUYA) Creating Unit 'Cleverio Wifi Outdoor Plug (mA)'.
2023-05-04 18:30:53.584 TinyTUYA: Update devices in Domoticz
2023-05-04 18:30:53.592 TinyTUYA: handleThread: 15 line 955
2023-05-04 18:30:53.592 TinyTUYA: Device name=Cleverio AF-F100 id=43035720e098061d58bc category=fan
2023-05-04 18:30:53.581 Error: TinyTUYA: (TinyTUYA) Unit creation failed, Domoticz settings prevent accepting new devices.
2023-05-04 18:30:53.591 Error: TinyTUYA: Device read failed: bfd6bda7f3a84e2064d97h
Raspberry PI 2 with RaZberry Controller 2016 ZWave+ and CC2531(zigbee)
Several IKEA devices/z-wave devices
User avatar
Xenomes
Posts: 387
Joined: Tuesday 27 November 2018 19:05
Target OS: Linux
Domoticz version: 2024.7
Location: Netherlands
Contact:

Re: Python Plugin: Domoticz-TinyTUYA-Plugin (Cloud)

Post by Xenomes »

The error is on updating the device called 'Cleverio Wifi Outdoor Plug (mA)', exist that device in domoticz and has it unit number 15?
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
User avatar
Varazir
Posts: 360
Joined: Friday 20 February 2015 22:23
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Contact:

Re: Python Plugin: Domoticz-TinyTUYA-Plugin (Cloud)

Post by Varazir »

Xenomes wrote: Thursday 04 May 2023 19:54 The error is on updating the device called 'Cleverio Wifi Outdoor Plug (mA)', exist that device in domoticz and has it unit number 15?
I have this , no 15

Image
Raspberry PI 2 with RaZberry Controller 2016 ZWave+ and CC2531(zigbee)
Several IKEA devices/z-wave devices
User avatar
heggink
Posts: 972
Joined: Tuesday 08 September 2015 21:44
Target OS: Raspberry Pi / ODroid
Domoticz version: 12451
Location: NL
Contact:

Re: Python Plugin: Domoticz-TinyTUYA-Plugin (Cloud)

Post by heggink »

Xenomes wrote: Thursday 04 May 2023 16:25
heggink wrote: Thursday 04 May 2023 16:12 Question: is anyone running this plugin in a docker environment? I am considering moving my entire environment to docker so interested to see whether there are any issues with that.
The plugin does work in docker but there is a small catch. In the docker environment of Domoticz the install guide needs to installed. So if the docker is renewed for a update, the install guide need to be reinstalled in the docker environment.
Ah, great. That can be easily done using teh startup script extension I created for the docker container.
Docker in Truenas scale, close to latest beta
DASHTICZ 🙃
RFXCOM, zwavejs2mqtt, zigbee2mqtt,
P1 meter & solar panel
Google home, Wifi Cams motion detection
Geofence iCloud, Bluetooth & Wifi ping
Harmony hub, Nest, lots more :-)
User avatar
Xenomes
Posts: 387
Joined: Tuesday 27 November 2018 19:05
Target OS: Linux
Domoticz version: 2024.7
Location: Netherlands
Contact:

Re: Python Plugin: Domoticz-TinyTUYA-Plugin (Cloud)

Post by Xenomes »

Varazir wrote: Thursday 04 May 2023 22:08 I have this , no 15

[image]
OK, then this error is valid:

Code: Select all

Error: TinyTUYA: (TinyTUYA) Unit creation failed, Domoticz settings prevent accepting new devices.
Can you enable the 'accepting new devices' and select the plugin and press update then the plugin restarts and it should create the new device 15 for ma.
After that you can hide device 11. Device 15 is for your device a new mA device. You can move the old data with from 11 to 15 you can use
https://releases.domoticz.com/releases/ ... BMerger.7z
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
User avatar
Varazir
Posts: 360
Joined: Friday 20 February 2015 22:23
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Contact:

Re: Python Plugin: Domoticz-TinyTUYA-Plugin (Cloud)

Post by Varazir »

Xenomes wrote: Friday 05 May 2023 9:04
Varazir wrote: Thursday 04 May 2023 22:08 I have this , no 15

[image]
OK, then this error is valid:

Code: Select all

Error: TinyTUYA: (TinyTUYA) Unit creation failed, Domoticz settings prevent accepting new devices.
Can you enable the 'accepting new devices' and select the plugin and press update then the plugin restarts and it should create the new device 15 for ma.
After that you can hide device 11. Device 15 is for your device a new mA device. You can move the old data with from 11 to 15 you can use
https://releases.domoticz.com/releases/ ... BMerger.7z
Thanks it's working fine now.

I haven't used it that much that I care about that. In the 7z there was a exe file and I use linux, do I need to download the db file my pie and use the exe file on my pc ?
Raspberry PI 2 with RaZberry Controller 2016 ZWave+ and CC2531(zigbee)
Several IKEA devices/z-wave devices
User avatar
Varazir
Posts: 360
Joined: Friday 20 February 2015 22:23
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Contact:

Re: Python Plugin: Domoticz-TinyTUYA-Plugin (Cloud)

Post by Varazir »

Is Cleverio WM100 ( Blinder motion controller ) supported ?
Raspberry PI 2 with RaZberry Controller 2016 ZWave+ and CC2531(zigbee)
Several IKEA devices/z-wave devices
User avatar
EdwinK
Posts: 1820
Joined: Sunday 22 January 2017 21:46
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Rhoon
Contact:

Re: Python Plugin: Domoticz-TinyTUYA-Plugin (Cloud)

Post by EdwinK »

Getting the following error:

Code: Select all

2023-05-05 17:27:29.144 Error: TUYA: Call to function 'onCommand' failed, exception details:
2023-05-05 17:27:29.147 Error: TUYA: Traceback (most recent call last):
2023-05-05 17:27:29.148 Error: TUYA: File "/home/pi/domoticz/plugins/Domoticz-TinyTUYA-Plugin/plugin.py", line 334, in onCommand
2023-05-05 17:27:29.148 Error: TUYA: _plugin.onCommand(DeviceID, Unit, Command, Level, Color)
2023-05-05 17:27:29.148 Error: TUYA: File "/home/pi/domoticz/plugins/Domoticz-TinyTUYA-Plugin/plugin.py", line 122, in onCommand
2023-05-05 17:27:29.148 Error: TUYA: function = properties[DeviceID]['functions']
2023-05-05 17:27:29.148 Error: TUYA: KeyError: 'bfe1829726d568d498bywx'
and

2023-05-05 17:49:48.092 Error: TUYA: handleThread: string indices must be integers
Running latest BETA on a Pi-3 | Toon® Thermostat (rooted) | Hue | Tuya | IKEA tradfri | Dashticz V3 on Lenovo Huawei Tablet | Conbee
User avatar
Xenomes
Posts: 387
Joined: Tuesday 27 November 2018 19:05
Target OS: Linux
Domoticz version: 2024.7
Location: Netherlands
Contact:

Re: Python Plugin: Domoticz-TinyTUYA-Plugin (Cloud)

Post by Xenomes »

Varazir wrote: Friday 05 May 2023 10:10 Is Cleverio WM100 ( Blinder motion controller ) supported ?
The support is not in brand or device, but on the common group that Tuya presents. At the moment support for a cover ('cl', 'clkg', 'jdcljqr') is in the plugin programed.
Last edited by Xenomes on Friday 05 May 2023 23:52, edited 1 time 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
User avatar
Xenomes
Posts: 387
Joined: Tuesday 27 November 2018 19:05
Target OS: Linux
Domoticz version: 2024.7
Location: Netherlands
Contact:

Re: Python Plugin: Domoticz-TinyTUYA-Plugin (Cloud)

Post by Xenomes »

EdwinK wrote: Friday 05 May 2023 17:31 Getting the following error:

Code: Select all

2023-05-05 17:27:29.144 Error: TUYA: Call to function 'onCommand' failed, exception details:
2023-05-05 17:27:29.147 Error: TUYA: Traceback (most recent call last):
2023-05-05 17:27:29.148 Error: TUYA: File "/home/pi/domoticz/plugins/Domoticz-TinyTUYA-Plugin/plugin.py", line 334, in onCommand
2023-05-05 17:27:29.148 Error: TUYA: _plugin.onCommand(DeviceID, Unit, Command, Level, Color)
2023-05-05 17:27:29.148 Error: TUYA: File "/home/pi/domoticz/plugins/Domoticz-TinyTUYA-Plugin/plugin.py", line 122, in onCommand
2023-05-05 17:27:29.148 Error: TUYA: function = properties[DeviceID]['functions']
2023-05-05 17:27:29.148 Error: TUYA: KeyError: 'bfe1829726d568d498bywx'
and

2023-05-05 17:49:48.092 Error: TUYA: handleThread: string indices must be integers
Looks like a int or float problem, to check/fix i need a dump.json file you can create it by edit and running the tools/debug_discovery.py file with Python3. You can send the file to [email protected]
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
User avatar
EdwinK
Posts: 1820
Joined: Sunday 22 January 2017 21:46
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Rhoon
Contact:

Re: Python Plugin: Domoticz-TinyTUYA-Plugin (Cloud)

Post by EdwinK »

Only got an empty file back when i do 'python3 debug_discovery.py'

will investigate this further.
Running latest BETA on a Pi-3 | Toon® Thermostat (rooted) | Hue | Tuya | IKEA tradfri | Dashticz V3 on Lenovo Huawei Tablet | Conbee
User avatar
Xenomes
Posts: 387
Joined: Tuesday 27 November 2018 19:05
Target OS: Linux
Domoticz version: 2024.7
Location: Netherlands
Contact:

Re: Python Plugin: Domoticz-TinyTUYA-Plugin (Cloud)

Post by Xenomes »

EdwinK wrote: Saturday 06 May 2023 21:32 Only got an empty file back when i do 'python3 debug_discovery.py'

will investigate this further.
May be your subscription is expired? https://github.com/Xenomes/Domoticz-Tin ... on-expired
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
User avatar
EdwinK
Posts: 1820
Joined: Sunday 22 January 2017 21:46
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Rhoon
Contact:

Re: Python Plugin: Domoticz-TinyTUYA-Plugin (Cloud)

Post by EdwinK »

Possible. When I visit that page I get an 'all input paramaters of the remote API are lost'

After the weekend I will try and do some more work in it. Now I'm going enjoy a lazy sunday.
Running latest BETA on a Pi-3 | Toon® Thermostat (rooted) | Hue | Tuya | IKEA tradfri | Dashticz V3 on Lenovo Huawei Tablet | Conbee
renerene
Posts: 347
Joined: Wednesday 03 August 2016 11:36
Target OS: -
Domoticz version:
Contact:

Re: Python Plugin: Domoticz-TinyTUYA-Plugin (Cloud)

Post by renerene »

Excuse me for not reading entire thread, bus did somebody got Domoticz working with Nedis Smartlife?
A friend wants to start with Domoticz and is using Nedis SmartLife devices.
User avatar
Xenomes
Posts: 387
Joined: Tuesday 27 November 2018 19:05
Target OS: Linux
Domoticz version: 2024.7
Location: Netherlands
Contact:

Re: Python Plugin: Domoticz-TinyTUYA-Plugin (Cloud)

Post by Xenomes »

renerene wrote: Wednesday 17 May 2023 9:59 Excuse me for not reading entire thread, bus did somebody got Domoticz working with Nedis Smartlife?
A friend wants to start with Domoticz and is using Nedis SmartLife devices.
The plugin is not brand sensitive,it look up the category of the device and check if there functions available and make them available in Domoticz. So if the Device Tuya based it should work.
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
Nautilus
Posts: 722
Joined: Friday 02 October 2015 12:12
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Finland
Contact:

Re: Python Plugin: Domoticz-TinyTUYA-Plugin (Cloud)

Post by Nautilus »

Hi, thaks for the excellent work with this plugin.

I tested it and was able to get it running after initial problems, maybe some incompatibility with other Tuya plugins I had running. It discovered all devices, but Moes BHT-002 thermostat was inoperable as it set the setpoint to 35C always. Maybe this is because the resolution there is 0.5C (and not 0.1C). Is there something I could do to help adding support to these thermostats? Or is it something at my end which is not working as expected...?
User avatar
Xenomes
Posts: 387
Joined: Tuesday 27 November 2018 19:05
Target OS: Linux
Domoticz version: 2024.7
Location: Netherlands
Contact:

Re: Python Plugin: Domoticz-TinyTUYA-Plugin (Cloud)

Post by Xenomes »

Nautilus wrote: Thursday 09 November 2023 17:13 Hi, thaks for the excellent work with this plugin.

I tested it and was able to get it running after initial problems, maybe some incompatibility with other Tuya plugins I had running. It discovered all devices, but Moes BHT-002 thermostat was inoperable as it set the setpoint to 35C always. Maybe this is because the resolution there is 0.5C (and not 0.1C). Is there something I could do to help adding support to these thermostats? Or is it something at my end which is not working as expected...?
Yes you could add the issue on the github page and post the result of the 'debug_discovery.py' script (don't forget to edit the file)
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
guigui
Posts: 3
Joined: Sunday 01 November 2015 21:21
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Python Plugin: Domoticz-TinyTUYA-Plugin (Cloud)

Post by guigui »

Hello,

I was using Domoticz-TUYA-Plugin, but I switched to Domoticz-TinyTUYA-Plugin because I was experiencing numerous errors (Error: Tuya: handleThread: can only concatenate str (not "NoneType") to str line), and eventually, I lost access to my Tuya devices.

Domoticz-TinyTUYA-Plugin is working fine now. However, I can't find my scenes (scenarios) anymore, whereas I could find them with Domoticz-TUYA-Plugin.

Do you have any idea on how to resolve this?

Thanks in advance for the help, and a special thanks (from France!) to the plugin developer.
User avatar
Xenomes
Posts: 387
Joined: Tuesday 27 November 2018 19:05
Target OS: Linux
Domoticz version: 2024.7
Location: Netherlands
Contact:

Re: Python Plugin: Domoticz-TinyTUYA-Plugin (Cloud)

Post by Xenomes »

The Tinytuya module currently does not support scenes.
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
jpvaneijk
Posts: 76
Joined: Thursday 07 June 2018 21:57
Target OS: Raspberry Pi / ODroid
Domoticz version: latest
Location: Noordwijk, Netherlands
Contact:

Re: Python Plugin: Domoticz-TinyTUYA-Plugin (Cloud)

Post by jpvaneijk »

Hi Xenomes,

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'
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?
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests