Xenomes / Domoticz-TUYA-Plugin

Implements the special Tuya Home Assistant API.
22 stars 8 forks source link

Blinds are not working anymore since update #36

Closed Arjan1993 closed 1 year ago

Arjan1993 commented 1 year ago

I have some tuya wifi blinds motors in my house. They have worked for several months but I think since the update of 12 november none of them is working anymore. In the tuya app they do working but not in domoticz. I have updated the plugin and domoticz to the latest version but its doesnt help for me.

Xenomes commented 1 year ago

What is the version of Domoticz?

Arjan1993 commented 1 year ago

I`m using version 2023.1

Xenomes commented 1 year ago

Update the script, please test it out i don't have covers/blinds to test.

Arjan1993 commented 1 year ago

First of all, many thanks for the plugin and the help.

I have changed the script plugin.py to the new plugin.py from here. After that tuya stopt working. I have restarted the raspberry and domoticz but tuya wont start. When I open plugin.py and run the script I get the following syntax error:

Traceback (most recent call last): File "/home/pi/domoticz/plugins/tuyaha/plugin.py", line 157 elif Command == 'Set Color': ^

So Ive looked at line 157 and saw that line wasn`t in the correct possition. So Ive moved it backwards same as the other elif statemands. After that the error was gone but non of my tuya devices are responding. There are no errors in the log so I dont know where to look for information.

Is it correct that when I do a git pull command the return is already up to date even before updating the script manualy?

Xenomes commented 1 year ago

I see the typo, browser edit was not a success. I upload the fixed code.

Xenomes commented 1 year ago

The plugin is fixed.