Page 14 of 14

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

Posted: Tuesday 03 June 2025 19:34
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.

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

Posted: Wednesday 04 June 2025 8:31
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 👍

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

Posted: Thursday 12 June 2025 10:28
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.

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

Posted: Thursday 12 June 2025 11:08
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"

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

Posted: Thursday 12 June 2025 21:13
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.

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

Posted: Thursday 12 June 2025 21:17
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?

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

Posted: Thursday 12 June 2025 23:02
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.

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

Posted: Friday 13 June 2025 21:12
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.

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

Posted: Saturday 14 June 2025 8:28
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

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

Posted: Sunday 15 June 2025 10:01
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

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

Posted: Monday 16 June 2025 22:59
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.

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

Posted: Tuesday 17 June 2025 10:21
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.

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

Posted: Tuesday 17 June 2025 20:25
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.

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

Posted: Tuesday 17 June 2025 20:33
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