gormanb / homebridge-connector-hub

A HomeBridge plugin to expose Connector Motor Hub blinds, shades, curtains and similar devices to Homekit
Apache License 2.0
12 stars 4 forks source link

Reverse feature #20

Closed ToracX closed 9 months ago

ToracX commented 1 year ago

Hi,

Could you maybe add a reverse feature?

gormanb commented 1 year ago

Hi @ToracX - you mean an option to reverse the direction of the blinds associated with a particular hub? Are you having a problem where your blinds move in the opposite direction to what you request in the Home app?

ToracX commented 1 year ago

Yes so basically when the app says open they are closed and vice versa. Using motion blinds with the CM20 hub from Hornbach.

gormanb commented 1 year ago

Could you please do the following, so that I have some more information about the blinds:

One other question: are you using the Home app or something else to view the status of the blinds? Some apps may display the blind's state incorrectly, even though it has been reported accurately to Homekit. For instance, when I look at my own accessories in Hoobs, it shows the blinds in the opposite position to their actual position just as you describe above, even though they appear in their correct positions in the Home app.

ToracX commented 11 months ago

Yes I got it fixed now. Something you might want to think of:

When changing directions, while the blind is either closing or opening, it will stop instead of moving.

You could fix this by adding a stop before moving to the changed position. So check for reverse direction then sending a blinds stop then blinds set position.

So for instance blind is at 20% and set position is 80% it is moving going from 20->80, now its not yet at 80 and I decide I want it closed or 0%, now the blind just stops there and doesnt move anymore. Gets out of sync and only gets the actual position when sending a get handler again.

This is also true when setting the positions from 20 to 60 and then before it hits 60 to 80. So maybe just add a blinde stop before setting any position then it should work better.

I actually made a plugin for these kind of blinds before so if you have questions hmu.