Garage Door Automation with Home Assistant and Shelly 1 Plus
Vložit
- čas přidán 29. 11. 2021
- This video will show you how to use the Shelly 1 plus and home assistant to create your own smart garage door automation.
The following are useful links for the project:
Supplies (I earn a small commission on these links):
Power Supply: amzn.to/3spTOFW
Magnetic Reed Switches (5 Count): amzn.to/3BZxINN
Magnetic Reed Switches (2 Count): amzn.to/3CZH50A
Shelly Plus 1: amzn.to/3wxM1ap
The configuration.yaml file, as well as the stl and f3d files for shelly mount:
drive.google.com/drive/folder... - Věda a technologie
Thank you very much for this tutorial, and for making the YAML code accessible.
Just in case someone stumbles on this and is trying to figure out why theirs isn't working: I have a Chamberlain with the MyQ stuff on it. However, I am not able to access my MyQ for a number of reasons, so I am working on this project. Turns out those openers use a RF signal to open the garage, not a physical button connection. I'm going to have to solder some wires on an extra button you can get for like $15 on amazon and use that for the button press.
Thanks again!
Thanks for the video! It took me a bit of time to appreciate the creative use of the switch input of the shelly as a 'continuity sensor' that can be adapted to determine door closed/open status.
Glad you enjoyed it!
Thank you for helping a nube on his Home Assistant journey.
Thanks! Your YAML saved me a bunch of time since I didn't have to write and debug my own.
You're welcome!
Thank you so much for the video and sharing your config file. It's helped so much :)
Just came back to say that when I originally commented on your video, I had no idea what home assistant was. Since then I have set it all up and used your guide to set a Shelly 1 plus up with my garage door, including notifications for when it's is Opened, closed and left open for a certain period of time.
I'd like to say thanks for the intuitive guide, it's is very well explained, even for a home assistant newbie like myself
Hi Karl, Awesome man. Thanks! I'm glad you found the video helpful!
Greatly appreciate your video. Thank you for showing all the steps really clearly and taking the time to explain why you set things up in a certain way, rather then just saying "press here".
I'm glad you found it helpful!
@@esmcustomcreations5247 It is exactly how it's installed in my house now, haha. I just changed the button press to be a press and hold and added a confirmation dialog window. Just to avoid accidental openings.
Thanks again!
Thanks so much for the excellent video and accompanying yaml config file! I'm new to Home Assistant and just getting started with adding automation functionality to my home and this is my first Shelly project. The video has certainly been very helpful to get me up and running quickly. I've used it to succesfully automate the two doors on my garage and learnt a few things along the way which could have taken me some time to realise otherwise ... like using the switch input in detached mode as a binary sensor! Thanks!
You're welcome. Glad you found it helpful!
Thank you so much! This inspired me to keep learning YAML to help tweak what I want to see in Home Assistant!
Thanks for your feedback. I did finally get it to work. It seems that HA is kinda slow to my changes. I just went back to try somemore and it was all working. Now I'm going to do one for my shop door. Thanks again for you help.
Nice video. I'm trying to adapt this to a Shelly 2.5 and 2 garage doors. I'm also planning on adding an alert "Door left open" that will trigger after a set length of time. I'm still learning how to use HA so it's a challenge. Videos like yours really help.
Very well done video. Thank you for putting this together
Awesome instructions. Did this to Garage Door today, one of my first automations with HA. Thanks!
Glad it helped!
Excellent video and a GREAT way to stay off public net. Thank you for this.
Great tutorial and easy to follow. And kudos for uploading the 3D files and YAML! Thanks!
Thanks! I'm glad you found it helpful!
Great Video. I look forward to your upcoming videos. Very helpful just subscribed.
Thanks!! I appreciate the support!
Great Video. I look forward to your upcoming videos. Just subscribed.
Thank you! I appreciate that!
Nice video! Thanks for the template and cover work. I ended up having to swap the ons and offs in the sensor section to get it to work right for me. I'm guessing it's normally open vs normally closed sensors.
Very helpful - My set up is working perfectly now. Thanks
Great! I'm glad you found it helpful!
wow this is very help ful
Thank you for your informative video. Some more information on where the reed switch is placed was handy, i viewed that part like 8 times. I just got it to work. I also used a Shelly plus 1. The only difference is that i could take power from the garage door system.
That's awesome! Glad the video helped!
great video. thanks been looking for looking forward to new videos
Thanks bro! I appreciate that!
@@esmcustomcreations5247 okay have everything some what working but my home assistant doesn't work like yours i have everything the same as yours but when you chose cover garage door this doesn't acted like a button or change states when i make or break the switch thanks
@@10138707 I'm sorry you are having issues! Software configuration can definitely be a pain. Is it still giving you issues?
If so, did you try rebooting home assistant, after making changes to configuration.yaml?
When you add a card to lovelace, are you selecting the button card? Then for entity selecting cover.garage_door?
Assuming so, try making the entity the switch, and not the cover. The state won't change properly, but if the door opens, then that will tell you it's a problem with the configuration, and not the hardware. If it still doesn't work, does it work if you trigger the switch from the Shelly web server?
I usually try to break the problem into little steps, and test each along the way, to find the exact issue.
Also, If you go on the left menu to Configurations then Devices at the top, and then click on the shellyplus1 you installed. You can toggle the switch there, and see the value of the Switch input change. If that doesn't work, then it's probably a hardware issue. Sounds like that isn't your problem, but just trying to give some ideas.
I hope you figure it out! Best of luck!!
hi dad nice video
Subscribed!
Awesome! Thanks for your support!
I was looking at using a cover template. But it was so much easier to use condition button. Just made 2 buttons one will show when garage door is closed and another for when it's open.
Hey, that's pretty cool!! Thanks for pointing it out. Always more than one way to accomplish a task I suppose.
Super! Can you post the wiring?😊
Great work ! would be good if you could go through and show us exactly how you wired it and how you wired the open close sensor to the shelly and add the STL file for the holder!
Hi Loui,
I added a download link for the STL, as well as the f3d (fusion 360) file to the description section of the video.
Are you saying it would be good to add a schematic for how it's wired, or that it would have been good to have shown how I pulled the wired, and connected everything?
I can definitely attach a schematic of the hookup, and can see how that would be useful.
Thanks for your comments!
@@esmcustomcreations5247 Thank you for taking the time to up load the files, am printing the holder as I text! yes a schematic would help a great deal but for visual learners like my self going through, if you have the time, showing what wire goes where would make this project very doable for your viewers that aren't so tech-savvy but are enthusiast. please do not take this as criticism it is a really good video and am looking forward to doing it my self when I acquire all the parts keep up the great work and look foreword to future projects.
Ok, thanks for the feedback, I appreciate it!
Hello and very good video! Please can you tell me if I only can connect the Shelly by bluetooth to my sliding gate motor? I have a router but no WiFi Internet connection in my house yet so I wish use the Shelly to make the same functions of a remote control but using my smartphone and the App to open the door. Many Thanks and cheers from Spain!
The icon does change color while the relay is turned on.
My remotes are intermittent (work sometimes, not others), and there's no push button in the house, just inside the garage (not attached to house). Was wanting to use a Pi Zero W or something, but they are hard to come by at the moment, and this looks like it would be perfect. Thanks.
Awesome! I'm glad you found it helpful!
You can actually use a newer opener as well. I just did it this weekend.
When you say a newer opener, I assume you mean a garage door opener that doesn't use a simple continuity switch to open it? If so, that's cool! I wasn't sure how that would be accomplished, since I don't own one. I think mine is original to my house, so about 20 years old now.
I have a craftsman model 139.55918 garage door and I have tried to hook up my shelly 1 plus to the proper spots to get the garage door to open but all I hear is clicking sounds. I should have everything wired correctly. I don't know what I am doing wrong. I am trying to test via the shelly app to just get the door to open and close.
Hello great vid but i have one question what is inside your groups.yaml because its completly empty in my visual code could you please help?
And those of us who might wish to use something other than Home Assistant, such as Google Home and then Google Assistant? What options have we?
Why didn't you use the 24v from the garage door opener to power the shelly?
found your video very useful. Any idea why my cover icon would change to purple when open? I was expecting yellow..
Thanks! Mine is actually purple now as well. I just noticed that. They must have made a default theme change at some point. There are lots of different themes available if you want to change it, though.
I have duplicated your setup and can't seem to get the icons to change. I have copied your yaml file and wired everything like you had it. The only thing I can think of is that I don't have something on the Shelly configured right. Right now I'm just running it at my desk until I can get the icons to work. any suggestions?
@gary57210, sorry for the slow reply. Were you able to get it figured out? I would look in home assistant at the sensor value and see if it's changing there, outside of any of the yaml you've written. If it is, then it's likely an issue with your home assistant setup. If it isn't, then the issue is probably on the shelly side. Best of luck!
If I have a second garage door what changes would I need to make in order for it work for the second door?
Hi Luis,
I also have two garage doors configured.
What I did was to duplicate the hardware, and template data, but name the sensor and switch something else for the second shelly device. I named mine shop_door, and garage_door.
I included my configuration.yaml file in the downloads in the description section, with both doors configured.
Let me know if you have any questions.
@@esmcustomcreations5247 Thank you so much for your assistance and including the yaml file! I finally got one shelly installed. The only issue I have, is it shows open when closed and closed when open. I am going to install the other this upcoming week. I plan to use the door switch sensor to trigger my garage lights to turn on for a couple of minutes when the door opens to help illuminate the garage when we get home. Again I really appreciate all your help.
@Lois Rodas, awesome, glad you got it installed!!
If you haven't figured it out yet, you can probably just move the wire on the magnetic reed switch to fix the issue of it showing open when closed and vise versa. From what I read, those are frequently mislabeled, so if you move the wire from NO to NC, or vise versa, that should fix it. The other option would be to reverse the sensor code in the yaml file.
The light automation will be cool. I also configured mine to send me a notification on my phone if the door is open for more than 10 minutes. My kids sometimes leave it open, and this way, I get notified when they do.
If you’re using google home, do you have to edit a yaml file?
Hi Karl. I don't have Google Home, so I can't speak authoritatively about it. From the Shelly website though, it appears they offer direct integration with Google Home, so you should be able to set it up separately from Home Assistant. All of the yaml stuff I do in this video is only applicable to Home Assistant, which wouldn't be used if you do a direct integration with Google.
I have all but duplicated your setup including copying and modifying your yaml config. I have the sensor and the switch in HA and can view the status of the sensor and switch to operate the door.
However i cannot get the cover to work, when i tap the cover i get no response, i have to hold it to open the switch and press the middle stop button which will cycle the door. any suggestions?
Hi. It sounds like you might be missing the step in the shelly settings that revert the relay to the open position after 1 second. I show that at 7 minutes into the video, although the shelly interface has changed since I created this. Hope that helps, and you get it working!
got that bit, the binary sensor reports closed-opening-open when the switch cycles as it should. still cant get the cover to trigger the switch or change with the state. Im assuming that its something amiss with my code.
Edit: it seems the cover is not getting the binary sensor data
@@dillonray2975 it's been a while, but I believe when I first completed the project, I created a debug screen with all the sensor values so I could see how they changed. Good luck man, hope you get it figured out!
Nice video. Thanks.
If you get a moment... the link for the configuration.yaml does not point to the correct files.
Thanks again.
Oops! Ok, thanks for the heads up! It should work now.
@@esmcustomcreations5247 Thanks!
Hi the sensor show open when the sensor is near the connector.. its the contrary.. some configuration mistake?
Hi @Kiloptero, sorry for the slow reply. There are two ways those switches can be wired. Normally Open, or Normally closed. Sounds like you likely have them wired the opposite from how I configured the YAML file. You could try either reversing your wiring or changing the YAML. Reversing the connection on the switch would be the easier option.
Could I use a wifi sensor instead of a hard wired switch?
Sure. You would just need to program it a little differently, but I don't see any reason that you couldn't do that.
What kind of connector did you use for the power supply?
amzn.to/3Lxl26A
Is that the part you're looking for?
Yes, thank you@@esmcustomcreations5247
My garage door automatically closes after few minutes. If shelly1 opens the door, and it automatically closes in few minutes, will it know that its closed already?
Hi Harj.
Yes, if you install the magnetic reed switches as I show in the video, then home assistant will know if the door is closed, regardless of how it gets closed.
That's interesting that your door has that functionality. Mine is old, and I haven't really looked into the new doors.
Thanks for commenting!
@@esmcustomcreations5247 I have turned the function off yesterday. its a PITA. it can dent your car or your head if you forget that its going to close in couple mins
Haha. I wondered about that, but thought maybe I was missing something.