paulw11 / homebridge-wiser

Clipsal C-Bus Wiser plugin for home bridge
MIT License
11 stars 5 forks source link

REQUEST: Add support for blinds / curtains #7

Closed xJARiD closed 3 years ago

xJARiD commented 6 years ago

Is there any upcoming support for curtain controller?

paulw11 commented 6 years ago

Are you using a Shutter relay or two group addresses with curtain control set up in Wiser?

xJARiD commented 6 years ago

Both. I have a projector screen that uses 3 addresses. Up, stop and down. The blinds I have set up on shutter relay for now so I can bring them into homebridge. I previously had them set as lights (dimmable) so I could control the height, but then Siri would confuse lights and blinds, so had some weird scenarios happening!

paulw11 commented 6 years ago

Controlling a device like that would be fairly tricky; The closest HomeKit type is a "window" which has a current position and a target position, which is a percentage open. This doesn't map very closely to a 3 button open/close/stop type of set up that you have since it will require timing to try and set the position of the screen and there is no positional feedback from the screen.

You might do better with some Logic in the Wiser itself.

xJARiD commented 6 years ago

The blinds work same as light / dimmable light .. I’m just hoping I could get the icon that represents it as such. There’s no timing required.

As for the projector screen, it’s wired like a bell press. No timing required.

I might try forking your code, but I wouldn’t know where to start!

Do you take bribes? Can I offer you some $$ :)

paulw11 commented 6 years ago

Unfortunately the way that Homebridge works is that plugins, such as mine, need to expose accessories based on pre-defined HomeKit accessory types. This is what controls the icon that is shown in the Home app.

In theory the shutter relay in proportional mode could be mapped to a window object.

Your up/down/stop is trickier since there are three interconnected group addresses that you want map to a single accessory in HomeKit.

xJARiD commented 6 years ago

TBH, with the projector screen, I never use the stop button .. it’s programmed on the eDLT, so don’t really need it on HomeKit. I’ve mapped it to a scene that comes through homebridge anywho.

It’s the other blinds that I control through HomeKit. Just want the blind icon (or window). Not really fussed if it’s controlled with percentage or not.