alexryd / homebridge-shelly

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

Allow Shelly 1 to be defined as a garage-door opener #106

Open bcarli2910 opened 4 years ago

bcarli2910 commented 4 years ago

iOS 13 Carplay allows you to easily access your garage-door when arriving and leaving your house. Seems Homekit has added a feature to define garage-door openers and there are a number of plugins that work with that functionality.

I use a Shelly1 to give a 1sec impulse to control my old garage door opener and would love if I could define this Shelly1 as a garage-door opener. I see currently only Shelly 2.5 allows this additional setting (type garageDoorOpener).

jeloneal commented 4 years ago

I second that. I also use a Shelly 1 with impulse (Auto off Timer after 0.5 seconds) to trigger my garage door opener motor. Additionally, a Shelly door sensor checks if the door is closed.

Maybe that can be combined to simulate a HomeKit door opener?

hfagelnour commented 4 years ago

yes pls, this would be gr8

ingmarpeters commented 4 years ago

Please, I also would like to have this.

thedriverplus commented 4 years ago

Same here!

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!

uspino2 commented 4 years ago

To all of you guys: you better move to this Homebridge plugin just for that. If you can install a second Shelly 1 + Reed sensor (a $12 investment), the internal logic of the plugin gives HomeKit the real position state (Open, Opening, Closing, Closed), unlike any other plugin relying on just one sensor. That solution is not only very convenient for obstruction detection, it's also better than any one-sensor device in the market. It took me a while to get the right config, so here it is (again, for 2 shelly 1's + 2 reed sensors, which I highly recommend):

            "accessory": "mqttgaragedoor",
            "name": "MQTT",
            "caption": "Gate",
            "lwt": "shellies/shelly1-garage/online",
            "lwtPayload": "false",
            "topics": {
                "statusSet": "shellies/shelly1-garage/relay/0/command",
                "closedGet": "shellies/shelly1-garage/input/0",
                "closedValue": "1",
                "openGet": "shellies/shelly2-garage/input/0",
                "openValue": "1",
                "openStatusCmdTopic": "shellies/shelly2-garage/command",
                "openStatusCmd": "update",
                "closeStatusCmdTopic": "shellies/shelly1-garage/command",
                "closeStatusCmd": "update"
            },
            "doorRunInSeconds": "22"
SilvioMigu commented 4 years ago

Congratulations on the code, I always wanted to use Shelly 1 to open the garage, but working in the homekit with the garage icon. I don't need a sensor, because I have a camera watching the gate. Can I use this code without the sensor? Thank you

MichaelVdheeren commented 4 years ago

If you use it without a sensor it will always show as "open".

SilvioMigu commented 4 years ago

To all of you guys: you better move to this Homebridge plugin just for that. If you can install a second Shelly 1 + Reed sensor (a $12 investment), the internal logic of the plugin gives HomeKit the real position state (Open, Opening, Closing, Closed), unlike any other plugin relying on just one sensor. That solution is not only very convenient for obstruction detection, it's also better than any one-sensor device in the market. It took me a while to get the right config, so here it is (again, for 2 shelly 1's + 2 reed sensors, which I highly recommend):

            "accessory": "mqttgaragedoor",
            "name": "MQTT",
            "caption": "Gate",
            "lwt": "shellies/shelly1-garage/online",
            "lwtPayload": "false",
            "topics": {
                "statusSet": "shellies/shelly1-garage/relay/0/command",
                "closedGet": "shellies/shelly1-garage/input/0",
                "closedValue": "1",
                "openGet": "shellies/shelly2-garage/input/0",
                "openValue": "1",
                "openStatusCmdTopic": "shellies/shelly2-garage/command",
                "openStatusCmd": "update",
                "closeStatusCmdTopic": "shellies/shelly1-garage/command",
                "closeStatusCmd": "update"
            },
            "doorRunInSeconds": "22"

Good Morning I tried to copy this code, to the hoobs and on the shelly line, I pasted the code, but it says code config.json is invalid.

I don't know anything about codes, if anyone knows what's missing. Thank you