iRayanKhan / homebridge-tuya

A Homebridge plugin to control Tuya devices locally.
MIT License
404 stars 167 forks source link

New Device: Window Opener #103

Closed hugozheng2017 closed 3 years ago

hugozheng2017 commented 4 years ago

Describe your device A clear and concise description of what your device is, such as accessory type, and product description.

YUNYI Window Opener just like an garage door opener Partial Support? Does this device work in any fashion in the plugin? I set the type as garagedoor by it does not work

Additional context When the service start,The log message:

[TuyaLan] Marked BalconyDoor unreachable by faulting Service.BalconyDoor.Target Door State 2020/6/30 下午10:04:06 [TuyaLan] Starting discovery... 2020/6/30 下午10:04:06 Bridge is running on port 51826. 2020/6/30 下午10:04:06 [TuyaDiscovery] Discovery started on port 6666. 2020/6/30 下午10:04:06 [TuyaDiscovery] Discovery started on port 6667. 2020/6/30 下午10:04:07 [TuyaDiscovery] UDP from 192.168.1.161:6666 0x000055aa...0x0000aa55 2020/6/30 下午10:04:07 [TuyaLan] Discovered BalconyDoor (51048850807d3a28d04c) identified as GarageDoor (3.1) 2020/6/30 下午10:04:07 [TuyaLan] Connected to BalconyDoor 2020/6/30 下午10:04:07 [TuyaAccessory] Sending first query to BalconyDoor (3.1) 2020/6/30 下午10:04:07 [TuyaLan] Ready to handle BalconyDoor (GarageDoor:3.1) with signature {"6":true,"101":0,"102":"pause","103":false,"104":"6","105":"9","106":"left","107":"cancel","108":false,"109":false,"110":"off"}

when I open it from the App: 2020/6/30 下午11:38:42 [TuyaAccessory] GarageDoor changed: {"6":false,"101":0,"102":"open","103":false,"104":"6","105":"9","106":"left","107":"cancel","108":false,"109":false,"110":"off"} the door is open: 2020/6/30 下午11:38:55 [TuyaAccessory] GarageDoor changed: {"6":false,"101":0,"102":"pause","103":false,"104":"6","105":"9","106":"left","107":"cancel","108":false,"109":false,"110":"off"}

when I close it from the App: 2020/6/30 下午11:39:03 [TuyaAccessory] GarageDoor changed: {"6":false,"101":0,"102":"close","103":false,"104":"6","105":"9","106":"left","107":"cancel","108":false,"109":false,"110":"off"} the door is closed: 2020/6/30 下午11:39:25 [TuyaAccessory] GarageDoor changed: {"6":false,"101":0,"102":"pause","103":false,"104":"6","105":"9","106":"left","107":"cancel","108":false,"109":false,"110":"off"}

may I change something in the GarageDoor config to make this opener work?

hugozheng2017 commented 4 years ago

Hi. I have connected the window opener through the plugin of the SimpleBlinds, and only need to make some modifications to the parameters of opening, closing and stopping. But I found a problem. If it is manually opened and closed, the device status cannot be sent to Homekit, but it can be synchronized to the smart life app. Can tuya lan api also support this manual status synchronization?

dmatora commented 4 years ago

I only change status through HomeKit, but sometimes Window Opener controller will ignore the command (most likely simple blinds controller fault) and set wrong status which breaks automations. I have to change status manual, in order for system resume working. Having an option to send reverse command right before intended command should probably fix the issue

ElphaX commented 3 years ago

Feel free to make PR. Please re-open this issue if relevant.

dmatora commented 3 years ago

Well I've switched to more reliable less noisy and cheaper alternative