homebridge-tuya-web icon indicating copy to clipboard operation
homebridge-tuya-web copied to clipboard

Support percentage based open for cover devices

Open milo526 opened this issue 3 years ago • 7 comments

Cover devices currently only support open and close.

#145 should add support for the stop operation.

When a device supports the stop options, it should also be possible to support percentage based open states.

This would require the user to input the time it takes to fully open and close in the configuration.

Opening a certain percentage (x%) could then be done by sending the open operation and after x% of the configured time, sending the stop operation.

We should also consider how we can keep track of the current open percentage and calculate the diff. I.e. when we want the curtains to close 20% more then they currently are.

milo526 avatar Dec 30 '20 19:12 milo526

Hello all, I’m currently using tuya web plugin and percentage seems to be not allow. Do you know when an update will come with this feature? Thanks!! javi

jacumal avatar May 23 '21 10:05 jacumal

Hello all, I’m currently using tuya web plugin and percentage seems to be not allow. Do you know when an update will come with this feature? Thanks!! javi

The update will come whenever it's ready. Yeah, that is the least useful answer I could give you, but it is also the only correct answer :D There is no release schedule. I do not discuss any (expected) release dates until a feature is very close to release, this is mainly to prevent disappointment and to give myself the ability to be flexible. Developing this plugin is something I do in my free evenings. I don't want to make promises here that will keep me from doing what I love in "the real world". I hope you'll understand.

milo526 avatar May 23 '21 10:05 milo526

I am also very curious to have this for our curtains. Maybe I can take a look and try to implement the feature, do you accept pull requests?

ItsMeDelanoDev avatar Jul 11 '21 20:07 ItsMeDelanoDev

Please feel free to give it a shot @dneeleman

milo526 avatar Jul 13 '21 07:07 milo526

I remember back in early 2019 someone managed to achieve this but unfortunately cant remember his name. I’ll try and investigate a bit and report back here. On another note, can this be achieved by seconds? For example open for 30 seconds =50% or every 1sec =2% etc? Just my 2c

costispavlou avatar Nov 11 '21 18:11 costispavlou

Just want to add my vote for this feature request: percentage based open/close would make a huge difference.

I note that “stop” functionality has been introduced. I’ve got that feature enabled but I don’t know how to use it? Tapping the curtain just open/closes it (reversing the direction of its already performing an action). Any suggestions please?

robimart avatar Sep 18 '22 14:09 robimart