iRayanKhan / homebridge-tuya

A Homebridge plugin to control Tuya devices locally.
MIT License
400 stars 165 forks source link

Neither SimpleBlinds and SimpleBlinds2 work for me. (I attached the link to the only plugin that works for my Tuya Curtain) #180

Open Aekung opened 3 years ago

Aekung commented 3 years ago

Checklist

Describe the bug I have 3 tuya curtains from 2 bands. One of the curtain is partially working with SimpleBlinds accessory type, other 2 are not working with both SimpleBlinds and SimpleBlinds 2 at all. I also used cmdOn, cmdStop and cmdStop but still nothing works.

The one that is partially working is with the following function set

Code Type Values
control Enum {"range":["open","stop","close"]}
percent_control Integer {"unit":"%","min":0,"max":100,"scale":0,"step":1}
control_back Boolean {true,false}

Other 2 that are not working at all are with the following function set

Code Type Values
mach_operate Enum {"range":["ZZ","FZ","STOP"]}
opposite Boolean {true,false}
position Integer {"unit":"%","min":0,"max":100,"scale":0,"step":1}

The problem is there's only 1 plugin that is working with both of my curtain. It's "Homebridge Tuya Web" from bSr43 (the one from Milo526 is not working as well) The url to the plugin is : https://github.com/bsr43/homebridge-tuya-web

I don't know what has been done in bSr43 version but I just want to point out so it might be easier for you ( @iRayanKhan ) to fix it in the upcoming version.

Environment (please complete the following information):

AnonymousPea commented 3 years ago

Thanks for this comment, I am having the same issue where my Tuya blind is not working with SimpleBlinds or SimpleBlinds2, and have tried it with both this plug in and the other one Tuya Lan one. I will look at the Tuya Web one, hopefully it will solve my issue as well. But agree yes it would be great if it could be fixed in this plug-in for ease of use.

Aekung commented 3 years ago

Thanks for this comment, I am having the same issue where my Tuya blind is not working with SimpleBlinds or SimpleBlinds2, and have tried it with both this plug in and the other one Tuya Lan one. I will look at the Tuya Web one, hopefully it will solve my issue as well. But agree yes it would be great if it could be fixed in this plug-in for ease of use.

How is the result? Does that plugin work for you?

AnonymousPea commented 3 years ago

Yes I have the Tuya Web by Milo526 and the blinds are working. There is an issue with that plug in though regarding the status of the blinds but it doesn’t affect the usability of the blinds.

violentlion commented 3 years ago

I've modified the code to get my Tuya blinds to work, it works perfectly with correct status report. You can give it a shot to see if it works for you.

1) Find the file "SimpleBlindsAccessory.js" and open it with a text editor. 2) Overwrite the code in the file with the code below. 3) In your config file, ensure you are using the "SimpleBlinds" as device type

Let me know if this works for you :)

SimpleBlindsAccessory.zip

Aekung commented 3 years ago

I've modified the code to get my Tuya blinds to work, it works perfectly with correct status report. You can give it a shot to see if it works for you.

  1. Find the file "SimpleBlindsAccessory.js" and open it with a text editor.
  2. Overwrite the code in the file with the code below.
  3. In your config file, ensure you are using the "SimpleBlinds" as device type

Let me know if this works for you :)

SimpleBlindsAccessory.zip

Tried but it doesn't work. The device returns not the "not responsive" status immediately.

Reversing the SimpleBlindsAccessory.js back to the official version brings the status back to responsive but still not working.

Makk1000 commented 3 years ago

I'm having a similar issue with my AM43 blind motors 'Failed to discover AM43 Blind (#############) in time but will keep looking.' using simpleblinds or simpleblinds2 haven't worked for me, nor the modified code.

xrust83 commented 3 years ago

You gave the table above. mach_operate | Enum | {"range":["ZZ","FZ","STOP"]}

I think you need to use this ... { "devices": [ { "type": "SimpleBlinds", "name": "blind-name", "id": "", "key": "", "manufacturer": "arba", "model": "kadabra", "timeToOpen": 45, "cmdOpen": "FZ", "cmdClose": "ZZ" } ], "platform": "TuyaLan" }

movy commented 3 years ago

I confirm this, out of all Tuya plugins and forks available, only https://github.com/bSr43/homebridge-tuya-web works correctly with curtain motor robots.

miguelsc82 commented 2 years ago

This one also works fine for me: https://github.com/talrhv/tuya-homebridge

Any chance this can be migrated to homebride-tuya?