Python Plugin: TUYA
Moderator: leecollings
-
- Posts: 708
- Joined: Saturday 27 February 2016 12:49
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2020.2
- Location: NL
- Contact:
Re: Python Plugin: TUYA
OK, after a little patience, the lamp came in as WW! Success!
Now all I have to do is re-install the other lamps. Which is more work than you'd expect, since they disappear from all scenes when deleted....
Is there a way to reset without deleting them?
Now all I have to do is re-install the other lamps. Which is more work than you'd expect, since they disappear from all scenes when deleted....
Is there a way to reset without deleting them?
Hans
- EdwinK
- Posts: 1820
- Joined: Sunday 22 January 2017 21:46
- Target OS: Raspberry Pi / ODroid
- Domoticz version: BETA
- Location: Rhoon
- Contact:
Re: Python Plugin: TUYA
I just noticed this appearing again, about every second.
2021-04-02 10:24:56.251 Error: Tuya: (Tuya) handleThread: Expecting value: line 1 column 1 (char 0) line 198
2021-04-02 10:24:56.251 Error: Tuya: (Tuya) handleThread: Expecting value: line 1 column 1 (char 0) line 198
Running latest BETA on a Pi-3 | Toon® Thermostat (rooted) | Hue | Tuya | IKEA tradfri | Dashticz V3 on Lenovo Huawei Tablet | Conbee
-
- Posts: 184
- Joined: Wednesday 06 September 2017 9:11
- Target OS: Linux
- Domoticz version:
- Contact:
Re: Python Plugin: TUYA
Okay tried again with your scriptXenomes wrote: ↑Thursday 01 April 2021 21:02The second tuyaha is not needed with my version of the plug-in. I was mislead with the naming of the directory. You are using the version of guino in that version is has limited control of RGB. Can you try my version of the plug[in. https://github.com/Xenomes/Domoticz-TUYA-Plugin.
Version 1.0.6 is installed.
He sees the rgb strip as a switch and there is no RGB control
- Xenomes
- Posts: 379
- Joined: Tuesday 27 November 2018 19:05
- Target OS: Linux
- Domoticz version: 2024.7
- Location: Netherlands
- Contact:
Re: Python Plugin: TUYA
I pushed a new update, remove faulty device => update plug-in => update button in Hardware at Tuya plug-in.Vomera wrote: ↑Friday 02 April 2021 12:10Okay tried again with your scriptXenomes wrote: ↑Thursday 01 April 2021 21:02The second tuyaha is not needed with my version of the plug-in. I was mislead with the naming of the directory. You are using the version of guino in that version is has limited control of RGB. Can you try my version of the plug[in. https://github.com/Xenomes/Domoticz-TUYA-Plugin.
Version 1.0.6 is installed.
He sees the rgb strip as a switch and there is no RGB control
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: 379
- Joined: Tuesday 27 November 2018 19:05
- Target OS: Linux
- Domoticz version: 2024.7
- Location: Netherlands
- Contact:
Re: Python Plugin: TUYA
I don't ever seen it, try stop the plug-in, wait for minimal 61 seconds and start plug-in.
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: 379
- Joined: Tuesday 27 November 2018 19:05
- Target OS: Linux
- Domoticz version: 2024.7
- Location: Netherlands
- Contact:
Re: Python Plugin: TUYA
You can change the type/sub type directly in the database 1000% you own risk.
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: 379
- Joined: Tuesday 27 November 2018 19:05
- Target OS: Linux
- Domoticz version: 2024.7
- Location: Netherlands
- Contact:
Re: Python Plugin: TUYA
Try stop the plug-in, wait for minimal 61 seconds and start plug-in again.manjh wrote: ↑Friday 02 April 2021 10:10OK, now getting version 6.
Deleted one lamp, disabled/enabled Tuya, now get this error in the log:Also:Code: Select all
Error: (Tuya devices) handleThread: Expecting value: line 1 column 1 (char 0) line 198
Code: Select all
Error: (Tuya devices) handleThread: login rate limited line 195
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
-
- Posts: 184
- Joined: Wednesday 06 September 2017 9:11
- Target OS: Linux
- Domoticz version:
- Contact:
Re: Python Plugin: TUYA
Getting also the same error after updating your script, now in domoticz he sees the ledstrip as RGBXenomes wrote: ↑Friday 02 April 2021 12:28I pushed a new update, remove faulty device => update plug-in => update button in Hardware at Tuya plug-in.Vomera wrote: ↑Friday 02 April 2021 12:10Okay tried again with your scriptXenomes wrote: ↑Thursday 01 April 2021 21:02
The second tuyaha is not needed with my version of the plug-in. I was mislead with the naming of the directory. You are using the version of guino in that version is has limited control of RGB. Can you try my version of the plug[in. https://github.com/Xenomes/Domoticz-TUYA-Plugin.
Version 1.0.6 is installed.
He sees the rgb strip as a switch and there is no RGB control
Code: Select all
021-04-02 13:20:46.573 Error: (Tuya) handleThread: Expecting value: line 1 column 1 (char 0) line 198
- Xenomes
- Posts: 379
- Joined: Tuesday 27 November 2018 19:05
- Target OS: Linux
- Domoticz version: 2024.7
- Location: Netherlands
- Contact:
Re: Python Plugin: TUYA
Execute this and return the cli resultsVomera wrote: ↑Friday 02 April 2021 13:22Code: Select all
021-04-02 13:20:46.573 Error: (Tuya) handleThread: Expecting value: line 1 column 1 (char 0) line 198
Code: Select all
sudo pip3 install tuyaha
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
-
- Posts: 184
- Joined: Wednesday 06 September 2017 9:11
- Target OS: Linux
- Domoticz version:
- Contact:
Re: Python Plugin: TUYA
With Sudo command he said its already installed. So i tried to use the command pip3 install tuyaha. Tuya installed, maybe in the user account instead with admin account. In hardware tab update and after that it worked!!!!!. Finally!! Thank you so much!Xenomes wrote: ↑Friday 02 April 2021 15:02Execute this and return the cli resultsVomera wrote: ↑Friday 02 April 2021 13:22Code: Select all
021-04-02 13:20:46.573 Error: (Tuya) handleThread: Expecting value: line 1 column 1 (char 0) line 198
Code: Select all
sudo pip3 install tuyaha
Last edited by Vomera on Friday 02 April 2021 21:26, edited 2 times in total.
- Xenomes
- Posts: 379
- Joined: Tuesday 27 November 2018 19:05
- Target OS: Linux
- Domoticz version: 2024.7
- Location: Netherlands
- Contact:
Re: Python Plugin: TUYA
OK greet news! every system has his quirks.Vomera wrote: ↑Friday 02 April 2021 21:20Met sudo commando gaf hij al aan geinstalleerd te zijn. Daarna commando pip3 install tuyaha uitgevoerd en werd de tuya geinstalleerd waarschijnlijk user account. In hardware tab update uitgevoerd en daarna DEED HIJ HET!!!!. Eindelijk opgelost!! Dank je wel! Samen komen we er wel haha.Xenomes wrote: ↑Friday 02 April 2021 15:02Execute this and return the cli resultsVomera wrote: ↑Friday 02 April 2021 13:22Code: Select all
021-04-02 13:20:46.573 Error: (Tuya) handleThread: Expecting value: line 1 column 1 (char 0) line 198
Code: Select all
sudo pip3 install tuyaha
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
-
- Posts: 708
- Joined: Saturday 27 February 2016 12:49
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2020.2
- Location: NL
- Contact:
Re: Python Plugin: TUYA
Ah. Risky, but exciting... is there a recommended tool to do this?
Hans
- Xenomes
- Posts: 379
- Joined: Tuesday 27 November 2018 19:05
- Target OS: Linux
- Domoticz version: 2024.7
- Location: Netherlands
- Contact:
Re: Python Plugin: TUYA
Best is by hand, this is a bit off-topic, you have to install sqllite3.
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
-
- Posts: 708
- Joined: Saturday 27 February 2016 12:49
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2020.2
- Location: NL
- Contact:
Re: Python Plugin: TUYA
OK, understand. I guess simply deleting and adding the lamps may be easier....
Hans
- Xenomes
- Posts: 379
- Joined: Tuesday 27 November 2018 19:05
- Target OS: Linux
- Domoticz version: 2024.7
- Location: Netherlands
- Contact:
Re: Python Plugin: TUYA
U need to know how sql query works. select and update commands
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
-
- Posts: 708
- Joined: Saturday 27 February 2016 12:49
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2020.2
- Location: NL
- Contact:
Re: Python Plugin: TUYA
I do, but the mere job of having to install SQL just for this small thing seems a bit over the top.
I've now deleted and re-installed the lamps, this was very simple.
Reviewing all scene settings was a bit more work, but also got it done.
All lamps are now recognized as WW. Thanks for the support!
Hans
-
- Posts: 708
- Joined: Saturday 27 February 2016 12:49
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2020.2
- Location: NL
- Contact:
Re: Python Plugin: TUYA
One additional thought, perhaps a suggestion for the user interface.
Setting the right color from the color wheel is nice, but it is difficult to get multiple lamps on the same color level.
For the dimmer it can be done by simply moving the slider until the percentage is close enough.
But for color there is no numerical reference>
Would it be possible to add an input field, so that the user can choose to either select from the color wheel, or enter a value in the input field?
Setting the right color from the color wheel is nice, but it is difficult to get multiple lamps on the same color level.
For the dimmer it can be done by simply moving the slider until the percentage is close enough.
But for color there is no numerical reference>
Would it be possible to add an input field, so that the user can choose to either select from the color wheel, or enter a value in the input field?
Hans
-
- Posts: 708
- Joined: Saturday 27 February 2016 12:49
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2020.2
- Location: NL
- Contact:
Re: Python Plugin: TUYA
Now that the lamps are working, I am thinking about the next step: getting rid of the Tuya cloud dependency.
I ran into Tasmota, that seems promising.
Also found a procedure for flashing:
https://www.heise.de/ct/artikel/Tuya-Co ... 84830.html
Before I start playing around, possibly losing a perfectly good lamp, has anyone done this before? Any experience? Recommendations?
I ran into Tasmota, that seems promising.
Also found a procedure for flashing:
https://www.heise.de/ct/artikel/Tuya-Co ... 84830.html
Before I start playing around, possibly losing a perfectly good lamp, has anyone done this before? Any experience? Recommendations?
Hans
- Xenomes
- Posts: 379
- Joined: Tuesday 27 November 2018 19:05
- Target OS: Linux
- Domoticz version: 2024.7
- Location: Netherlands
- Contact:
Re: Python Plugin: TUYA
The colour wheel is default function of Domotixz, request for a input field you need be at the developer of Domoticz.
Tuya-Convert only works with bulbs with a esp chip and older firmware version. Lots of new devices firmware upload hack don't work any more. You can't convert back to the original firmware without open and destroy the bulb. If the bulb accepts the Tasmota firmware then a new world of opportunities opens.
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 1 guest