alexryd / homebridge-shelly

Homebridge plugin for Shelly devices
MIT License
301 stars 45 forks source link

Shelly 1 as garageDoorOpener #70

Open WRTHacker opened 4 years ago

WRTHacker commented 4 years ago

Hello, please add an mode for a shelly 1 as garage opener. The relais opens the door, the switch can be used as a door opn/closed contact.

alexryd commented 4 years ago

HomeKit needs to know if the garage door opener is in either of these states: open, opening, closed, closing or stopped. I don't think it's possible to discern these states from just the relay and the switch input?

jeloneal commented 4 years ago

Maybe this can be accomplished in conjunction with one or a pair of door sensors? But this would need to be combined in a single device for HomeKit. Otherwise you would have just a switch and a separate sensor.

I have not yet found a way to combine both in a single HomeKit button like a roller/shutter.

WRTHacker commented 4 years ago

Yes that's exactly the solution "Shelly 1 for Homekit" (which has some sideeffects at the moment in the homekit wordl) has implemented. When you connect a magnetic reed contact at the switch it can bee used for door open/closed. The relais is used to trigger the garage motor to open/close/stop/start. That's my idea for an existing Hoermann garage opener. It's a very flexible an universal usable solution.

jeloneal commented 4 years ago

I‘m using a Koogeek door sensor with Shelly 1 to control a Ruku garage door motor.

WRTHacker commented 4 years ago

That's another option, but you have to combine it in Homekit as a single "Garagedoor" device. Is this possible? Aqara offers a very cheap Homekit integrated Zigbee solution!

The Shelly all in one solution would be much more elegant!

jeloneal commented 4 years ago

I would also prefer a combined solution.

jchristianj commented 4 years ago

I have a flashed (modified Ravencore or Home Accessory Architect) Shelly 1 in operation which is doing exactly what is described here. It has native Homekit support. It has a pulse relais output for open/close command, and the input is used for door closed status in conjunction with a magnet switch. Device shows up in Homekit as a garage door.

MichaelVdheeren commented 4 years ago

Would love to see this as well. I did not even have to use a seperate magnetic switch as the motor had a relay contact making it possible to detect a closed state.

MichaelVdheeren commented 4 years ago

I’ve started to build a basic-garage-door-opener which is using the shelly1 within this library but I am stuck with how the input of the switch can be read in the library @alexryd ?

MichaelVdheeren commented 4 years ago

I basically would suggest the following states:

WRTHacker commented 4 years ago

That's sounds quite reasonable and exactly like the Garage HomeKit Shelly works.

MichaelVdheeren commented 4 years ago

https://github.com/alexryd/homebridge-shelly/pull/121

Make sure that the input gets a signal when the garage door is closed!

SilvioMigu commented 4 years ago

I would also like to see Shelly 1 work as an garageDoorOpener.

suralu commented 4 years ago

i would also really appreciate it if i could integrate my shell 1 as a garage door or door opener

MichaelVdheeren commented 4 years ago

I've been using my forked repo for about two months now. Works like a charm. Only thing that I would still like to improve is add a setting so you can configure the expected time before your garage closes. Doing so will prevent too many or too rapid notifications for open or close on your iPhone.

SilvioMigu commented 4 years ago

I've been using my forked repo for about two months now. Works like a charm. Only thing that I would still like to improve is add a setting so you can configure the expected time before your garage closes. Doing so will prevent too many or too rapid notifications for open or close on your iPhone.

Hello MichaelVdheeren Can you get the garage icon to work in the homekit? Can you share the code, which is written in the shelly settings, inside the hoobs? Thank you

hfagelnour commented 4 years ago

any news here?

MrMysakovich commented 3 years ago

Hi, any news for Shelly1 as Garage door?

SilvioMigu commented 3 years ago

Me too, I’m obverse when it’s working.

At this moment when I add some shelly, I only have the following icons:

Shelly 1:

Shelly 2.5: -I have many options for roller blinds and curtains

For the temperature of the addon, and garage, I have nothing ...

MrMysakovich commented 3 years ago

In HK firmware it is working everything. Si maybe plugin to HB for HK firmware and then I can use it in HB to convert it to Google Home :-)

Or update this Shelly 1 plugin where door, garage door, lock and other accessories work. I hope creator of this plugin know how to do it and apply it for Shelly 1 :-)

markbellus commented 2 days ago

Any updates on this case? Shelly 1 could work well as a garage door controller, as others have forked this plugin using HTTP requests. Author, could you please add a garage door opener type?