dxdc / homebridge-blinds

:sunrise: Homebridge Plugin to control my blinds over HTTP
https://www.npmjs.com/package/homebridge-blinds
ISC License
54 stars 25 forks source link

homebridge-bond open/hold/close #24

Closed barry74 closed 4 years ago

barry74 commented 4 years ago

I'm using your plugin with homebridge-bond to control Somfy shades. This is working fine, but I don't want to control it by setting the position in percentage. How can I control it by just set it to push open, hold or stop button?

Thanks!

dxdc commented 4 years ago

@barry74 -

You can just click/unclick the blinds button for a full open or close within the Home app (same way you would turn a light switch on and off). It just has the optional setting of being able to control the percentage.

Otherwise, if you literally just want buttons only, it sounds like you'd be better off setting them up using something like this:

https://github.com/Supereg/homebridge-http-switch

You would lose the "Opening..." and "Closing..." type behavior, as well as the blinds icons though.

barry74 commented 4 years ago

Full open or close works fine, but there isn't a way to stop/hold the shade. Isn't there a way in the optional settings to add a stop/hold button instead of percentage-slider?

dxdc commented 4 years ago

That behavior is all defined by Homekit (Apple), nothing much we can do. There might be a way to add an optional characteristic to a shade, not sure, but the simplest might be to just add another button in that case if you like using the repo I shared.

Did you try just clicking the button again in the middle of an open/close event? Haven't tested that myself.

barry74 commented 4 years ago

By pressing the button in the middle of the event the shade opens or close. It does not hold/stop the shade. How can I add an extra hold button?

dxdc commented 4 years ago

OK. Use the same parameters for the 'hold' URL (method, token, etc.), and just create another button using:

https://github.com/Supereg/homebridge-http-switch

It's just a single HTTP call.

dxdc commented 4 years ago

I would suggest using a stateless switch for this, by the way.

dxdc commented 4 years ago

@barry74 I've figured out how to add a stop button in the latest release.

(You'll need to add show_stop_button = true in your config.json; see the README). Hopefully this is what you were after!

barry74 commented 4 years ago

@barry74 I've figured out how to add a stop button in the latest release.

(You'll need to add show_stop_button = true in your config.json; see the README). Hopefully this is what you were after!

Yes, this is it. Works perfect. Thanks!