jmaferreira / homebridge-garage-door-shelly1

Homebridge plugin for a simple web-based garage
MIT License
9 stars 4 forks source link

Two Shelly1 used for Blinds remote #1

Open MAPEZ1 opened 3 years ago

MAPEZ1 commented 3 years ago

Hello jmaferreiria, thanks for the Garage Door Plugin. Works great. After setting up my Garage, I had the idea to use your plugin also for my Rooftop blinds. They are Velux Solar operated by KUX100 remote control with two push buttons and I'm using two shelly1. I O's of the shellys are connected to Up and Down push buttons. openURL goes to one shelly and close URL to the other. The state sensor is connected to the closing Shelly1 Works also great but it would be great to have it shown as 'Blinds' and not as 'Garage Door Opener' Would it be possible to add a "service": or "type": so that it is possible to define what accessory is shown. Thanks a lot in advance

jmaferreira commented 3 years ago

Hi @MAPEZ1,

If you know how to code that I'll be happy to accept your merge request.

MAPEZ1 commented 3 years ago

Hi, not really much, but I‘ll try and have a look at the code next weekend. Learning is always good.

jmaferreira commented 3 years ago

Hi,

I've been looking into this. This is not as simple as it looks because the Characteristics supported by the "Window Covering" service are a bit different.

I'm including a link to a Window Covering service example for inspiration: https://github.com/bwejs/homebridge-simple-http-window-covering

More info at https://github.com/homebridge/HAP-NodeJS/blob/d70a1ba9fd8dbb6dba4ae4f8abae2766781cb643/src/lib/gen/HomeKit.ts#L5161

MAPEZ1 commented 3 years ago

Ok, sorry for late answer and thanks for the info. I think I understand now. You mean that to do so, a ‘Platform’ is required, right?