Python Plugin: Domoticz-TinyTUYA-Plugin (Cloud)

Python and python framework

Moderator: leecollings

User avatar
Xenomes
Posts: 416
Joined: Tuesday 27 November 2018 19:05
Target OS: Linux
Domoticz version: 2025.1
Location: Netherlands
Contact:

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

Post by Xenomes »

reinestein wrote:
There was a minor compatibility issue between Domoticz and Python 3.11. This has now been resolved in the latest Domoticz update. I've also updated the plugin accordingly. Make sure to update both to ensure proper functionality.
HP T630 (256GB SSD/8GB Mem) - Ubuntu 24.04.2 LTS (64Bit) - Domoticz 2025.1 (Docker) Machinon theme - RFLink - KaKu - Sonoff - Tasmota - Shelly - MQTT2Zigbee - OpenTherm Gateway - Tinytuya - IR Blaster - P1 Smart Meter - NPN Watermeter - Google Assistant
reinestein
Posts: 17
Joined: Friday 01 April 2022 8:52
Target OS: NAS (Synology & others)
Domoticz version: 2023.1
Contact:

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

Post by reinestein »

Xenomes wrote: Tuesday 03 June 2025 19:34 There was a minor compatibility issue between Domoticz and Python 3.11. This has now been resolved in the latest Domoticz update. I've also updated the plugin accordingly. Make sure to update both to ensure proper functionality.
It works! No errors anymore 👍
User avatar
Varazir
Posts: 429
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 »

I updated the plugin

First I got this

Code: Select all

pi@domoticz:~/domoticz/data/plugins/Domoticz-TinyTUYA-Plugin $ git pull
remote: Enumerating objects: 114, done.
remote: Counting objects: 100% (113/113), done.
remote: Compressing objects: 100% (69/69), done.
remote: Total 104 (delta 42), reused 94 (delta 34), pack-reused 0 (from 0)
Receiving objects: 100% (104/104), 497.89 KiB | 1.25 MiB/s, done.
Resolving deltas: 100% (42/42), completed with 6 local objects.
From https://github.com/Xenomes/Domoticz-TinyTUYA-Plugin
   0aa22fc..06b5aac  Master     -> origin/Master
   e0a7efa..62c8e7a  pulsar     -> origin/pulsar
Updating 0aa22fc..06b5aac
error: The following untracked working tree files would be overwritten by merge:
        __pycache__/plugin.cpython-311.pyc
Please move or remove them before you merge.
Aborting
so I moved the folder mv Domoticz-TinyTUYA-Plugin ~/ so I have a backup

Code: Select all

pi@domoticz:~/domoticz/data/plugins $ git clone https://github.com/Xenomes/Domoticz-TinyTUYA-Plugin.git
Cloning into 'Domoticz-TinyTUYA-Plugin'...
remote: Enumerating objects: 1560, done.
remote: Counting objects: 100% (340/340), done.
remote: Compressing objects: 100% (152/152), done.
remote: Total 1560 (delta 237), reused 286 (delta 188), pack-reused 1220 (from 2)
Receiving objects: 100% (1560/1560), 857.64 KiB | 1.11 MiB/s, done.
Resolving deltas: 100% (842/842), done.
All looks OK so far

This is just a warning but still,

Code: Select all

2025-06-12 10:19:07.560 Status: TinyTUYA: Initialized version 2.2.2, author 'Xenomes'
2025-06-12 10:19:07.571 Error: TinyTUYA: !! Warning Plugin overruled by local json files !!
Just to ignore it ?

I'm running in docker.
To note I didn't change to install the pyton plugin in the customstart.sh file.
Raspberry PI 2 with RaZberry Controller 2016 ZWave+ and CC2531(zigbee)
Several IKEA devices/z-wave devices
bertv
Posts: 4
Joined: Tuesday 19 November 2024 18:56
Target OS: Windows
Domoticz version:
Contact:

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

Post by bertv »

Hallo, I need some help.
I have installed the plugin and everything works except for two roller shutter controls. These are from the brand Nedis and work in the Tuya app without any problems. On the Tuya Developers Platform I can control them. Can I change something myself to make them work?
List of devices:
[
{
"name": "Rolluik zijkant",
"id": "62331156ecfabc691541",
"key": "Deleted",
"mac": "ec:fa:bc:69:15:41",
"uuid": "62331156ecfabc691541",
"sn": "PGBG28KZH0005B",
"category": "cl",
"product_name": "Curtain controller",
"product_id": "AXnFs1bJQITWAPA4",
"biz_type": 0,
"model": "WIFIWC10WT",
"sub": false,
"icon": "https://images.tuyaeu.com/smart/icon/15 ... br0h_0.png"
},
]
Properties of device: 62331156ecfabc691541
{
"result": {
"category": "cl",
"functions": [
{
"code": "status",
"desc": "{\"range\":[\"1\",\"2\",\"3\"]}",
"name": "Status",
"type": "Enum",
"values": "{\"range\":[\"1\",\"2\",\"3\"]}"
}
],
"status": [
{
"code": "status",
"name": "Status",
"type": "Enum",
"values": "{\"range\":[\"1\",\"2\",\"3\"]}"
}
]
},
"success": true,
"t": 1748204664968,
"tid": "3ffc149c39a611f0b50a8ad9f66a9c16"
}
Status of device: 62331156ecfabc691541
{
"result": [
{
"code": "status",
"value": "2"
}
],
"success": true,
"t": 1748204665301,
"tid": "402d947539a611f0b7363af2f1e8cfff"
User avatar
Xenomes
Posts: 416
Joined: Tuesday 27 November 2018 19:05
Target OS: Linux
Domoticz version: 2025.1
Location: Netherlands
Contact:

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

Post by Xenomes »

Varazir wrote: Thursday 12 June 2025 10:28 I updated the plugin

First I got this

Code: Select all

pi@domoticz:~/domoticz/data/plugins/Domoticz-TinyTUYA-Plugin $ git pull
remote: Enumerating objects: 114, done.
remote: Counting objects: 100% (113/113), done.
remote: Compressing objects: 100% (69/69), done.
remote: Total 104 (delta 42), reused 94 (delta 34), pack-reused 0 (from 0)
Receiving objects: 100% (104/104), 497.89 KiB | 1.25 MiB/s, done.
Resolving deltas: 100% (42/42), completed with 6 local objects.
From https://github.com/Xenomes/Domoticz-TinyTUYA-Plugin
   0aa22fc..06b5aac  Master     -> origin/Master
   e0a7efa..62c8e7a  pulsar     -> origin/pulsar
Updating 0aa22fc..06b5aac
error: The following untracked working tree files would be overwritten by merge:
        __pycache__/plugin.cpython-311.pyc
Please move or remove them before you merge.
Aborting
so I moved the folder mv Domoticz-TinyTUYA-Plugin ~/ so I have a backup

Code: Select all

pi@domoticz:~/domoticz/data/plugins $ git clone https://github.com/Xenomes/Domoticz-TinyTUYA-Plugin.git
Cloning into 'Domoticz-TinyTUYA-Plugin'...
remote: Enumerating objects: 1560, done.
remote: Counting objects: 100% (340/340), done.
remote: Compressing objects: 100% (152/152), done.
remote: Total 1560 (delta 237), reused 286 (delta 188), pack-reused 1220 (from 2)
Receiving objects: 100% (1560/1560), 857.64 KiB | 1.11 MiB/s, done.
Resolving deltas: 100% (842/842), done.
All looks OK so far

This is just a warning but still,

Code: Select all

2025-06-12 10:19:07.560 Status: TinyTUYA: Initialized version 2.2.2, author 'Xenomes'
2025-06-12 10:19:07.571 Error: TinyTUYA: !! Warning Plugin overruled by local json files !!
Just to ignore it ?

I'm running in docker.
To note I didn't change to install the pyton plugin in the customstart.sh file.
There was an error in the latest push. Please perform a new pull - this should resolve the message you're seeing.
HP T630 (256GB SSD/8GB Mem) - Ubuntu 24.04.2 LTS (64Bit) - Domoticz 2025.1 (Docker) Machinon theme - RFLink - KaKu - Sonoff - Tasmota - Shelly - MQTT2Zigbee - OpenTherm Gateway - Tinytuya - IR Blaster - P1 Smart Meter - NPN Watermeter - Google Assistant
User avatar
Xenomes
Posts: 416
Joined: Tuesday 27 November 2018 19:05
Target OS: Linux
Domoticz version: 2025.1
Location: Netherlands
Contact:

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

Post by Xenomes »

bertv wrote: Thursday 12 June 2025 11:08 Hallo, I need some help.
I have installed the plugin and everything works except for two roller shutter controls. These are from the brand Nedis and work in the Tuya app without any problems. On the Tuya Developers Platform I can control them. Can I change something myself to make them work?
List of devices:
[
{
"name": "Rolluik zijkant",
"id": "62331156ecfabc691541",
"key": "Deleted",
"mac": "ec:fa:bc:69:15:41",
"uuid": "62331156ecfabc691541",
"sn": "PGBG28KZH0005B",
"category": "cl",
"product_name": "Curtain controller",
"product_id": "AXnFs1bJQITWAPA4",
"biz_type": 0,
"model": "WIFIWC10WT",
"sub": false,
"icon": "https://images.tuyaeu.com/smart/icon/15 ... br0h_0.png"
},
]
Properties of device: 62331156ecfabc691541
{
"result": {
"category": "cl",
"functions": [
{
"code": "status",
"desc": "{\"range\":[\"1\",\"2\",\"3\"]}",
"name": "Status",
"type": "Enum",
"values": "{\"range\":[\"1\",\"2\",\"3\"]}"
}
],
"status": [
{
"code": "status",
"name": "Status",
"type": "Enum",
"values": "{\"range\":[\"1\",\"2\",\"3\"]}"
}
]
},
"success": true,
"t": 1748204664968,
"tid": "3ffc149c39a611f0b50a8ad9f66a9c16"
}
Status of device: 62331156ecfabc691541
{
"result": [
{
"code": "status",
"value": "2"
}
],
"success": true,
"t": 1748204665301,
"tid": "402d947539a611f0b7363af2f1e8cfff"
The json appears to be low in values. Did you try configure the device using DP instructions?
HP T630 (256GB SSD/8GB Mem) - Ubuntu 24.04.2 LTS (64Bit) - Domoticz 2025.1 (Docker) Machinon theme - RFLink - KaKu - Sonoff - Tasmota - Shelly - MQTT2Zigbee - OpenTherm Gateway - Tinytuya - IR Blaster - P1 Smart Meter - NPN Watermeter - Google Assistant
bertv
Posts: 4
Joined: Tuesday 19 November 2024 18:56
Target OS: Windows
Domoticz version:
Contact:

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

Post by bertv »

[/quote]
The json appears to be low in values. Did you try configure the device using DP instructions?
[/quote]

Yes, all the devices are set to DP instructions.
The DP instruction set is only status nothing els.
User avatar
Xenomes
Posts: 416
Joined: Tuesday 27 November 2018 19:05
Target OS: Linux
Domoticz version: 2025.1
Location: Netherlands
Contact:

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

Post by Xenomes »

bertv wrote: Thursday 12 June 2025 23:02 The json appears to be low in values. Did you try configure the device using DP instructions?

Yes, all the devices are set to DP instructions.
The DP instruction set is only status nothing els.
Maybe 1 is up, 2 is stop/hold, and 3 is down... Could added to see what it does.
HP T630 (256GB SSD/8GB Mem) - Ubuntu 24.04.2 LTS (64Bit) - Domoticz 2025.1 (Docker) Machinon theme - RFLink - KaKu - Sonoff - Tasmota - Shelly - MQTT2Zigbee - OpenTherm Gateway - Tinytuya - IR Blaster - P1 Smart Meter - NPN Watermeter - Google Assistant
bertv
Posts: 4
Joined: Tuesday 19 November 2024 18:56
Target OS: Windows
Domoticz version:
Contact:

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

Post by bertv »

Xenomes wrote: Friday 13 June 2025 21:12
Maybe 1 is up, 2 is stop/hold, and 3 is down... Could added to see what it does.
[/quote]

If possible please. 1 is up, 2 is down and 3 is stop.

Thanks
User avatar
Xenomes
Posts: 416
Joined: Tuesday 27 November 2018 19:05
Target OS: Linux
Domoticz version: 2025.1
Location: Netherlands
Contact:

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

Post by Xenomes »

bertv wrote: Saturday 14 June 2025 8:28 If possible please. 1 is up, 2 is down and 3 is stop.

Thanks
Added in version 2.2.4
HP T630 (256GB SSD/8GB Mem) - Ubuntu 24.04.2 LTS (64Bit) - Domoticz 2025.1 (Docker) Machinon theme - RFLink - KaKu - Sonoff - Tasmota - Shelly - MQTT2Zigbee - OpenTherm Gateway - Tinytuya - IR Blaster - P1 Smart Meter - NPN Watermeter - Google Assistant
bertv
Posts: 4
Joined: Tuesday 19 November 2024 18:56
Target OS: Windows
Domoticz version:
Contact:

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

Post by bertv »

Xenomes wrote: Sunday 15 June 2025 10:01
Added in version 2.2.4
Everything is working fine now, may I thank you very much for adjusting the software.
User avatar
Varazir
Posts: 429
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 »

I have trying to install the python modules using customstart.sh file but I get an error

https://gist.github.com/varazir/d67eb61 ... 6f82e58e32

I have moved back to my own solution for the time being.
Raspberry PI 2 with RaZberry Controller 2016 ZWave+ and CC2531(zigbee)
Several IKEA devices/z-wave devices
User avatar
Xenomes
Posts: 416
Joined: Tuesday 27 November 2018 19:05
Target OS: Linux
Domoticz version: 2025.1
Location: Netherlands
Contact:

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

Post by Xenomes »

Varazir wrote: Tuesday 17 June 2025 10:21 I have trying to install the python modules using customstart.sh file but I get an error

https://gist.github.com/varazir/d67eb61 ... 6f82e58e32

I have moved back to my own solution for the time being.
Strange, but if you solution works, no problem.
HP T630 (256GB SSD/8GB Mem) - Ubuntu 24.04.2 LTS (64Bit) - Domoticz 2025.1 (Docker) Machinon theme - RFLink - KaKu - Sonoff - Tasmota - Shelly - MQTT2Zigbee - OpenTherm Gateway - Tinytuya - IR Blaster - P1 Smart Meter - NPN Watermeter - Google Assistant
User avatar
Varazir
Posts: 429
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: Tuesday 17 June 2025 20:25
Varazir wrote: Tuesday 17 June 2025 10:21 I have trying to install the python modules using customstart.sh file but I get an error

https://gist.github.com/varazir/d67eb61 ... 6f82e58e32

I have moved back to my own solution for the time being.
Strange, but if you solution works, no problem.
My solution is to install the modules outside the docker and use this in my compose file ( I # it when I tested with the customstart.sh installation) .

Code: Select all

    environment:
      - TZ=Europe/Stockholm
      - PYTHONPATH=/opt/domoticz/userdata/Domoticz_Python_Environment/:/opt/venv/lib/python3.11/site-packages
Raspberry PI 2 with RaZberry Controller 2016 ZWave+ and CC2531(zigbee)
Several IKEA devices/z-wave devices
Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 1 guest