Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
bcarli2910 opened this issue May 3, 2020 · 9 comments
Open

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

bcarli2910 opened this issue May 3, 2020 · 9 comments
Labels
duplicate This issue or pull request already exists enhancement New feature or request

Comments

@bcarli2910
Copy link

bcarli2910 commented May 3, 2020

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
Copy link

jeloneal commented May 3, 2020

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
Copy link

yes pls, this would be gr8

@bcarli2910 bcarli2910 changed the title Allow Shelly to be defined as a garage-door opener Allow Shelly 1 to be defined as a garage-door opener May 8, 2020
@ingmarpeters
Copy link

Please, I also would like to have this.

@thedriverplus
Copy link

Same here!

@MichaelVdheeren
Copy link

#121

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

@uspino2
Copy link

uspino2 commented Jun 24, 2020

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
Copy link

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
Copy link

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

@alexryd alexryd added the enhancement New feature or request label Aug 27, 2020
@SilvioMigu
Copy link

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

@alexryd alexryd added the duplicate This issue or pull request already exists label Sep 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

9 participants