Add Wifi Control to your Garage Opener using Sonoff SV, ESPhome, and Home Assistant

  Рет қаралды 61,268

DrZzs & GrZzs

DrZzs & GrZzs

5 жыл бұрын

DIY Smart Garage Door Control, just keeps getting better. I made a couple improvements to this version. #1 Using ESPhome which directly connects to Home Assistant without going through MQTT broker. #2 Added a US Sensor to detect the presence or absence of a car in the garage.
NOTE: Some garage door systems send rolling codes so shorting the two terminals with the Sonoff SV won't cut it. What you can do in this case is adding a compatible button and shorting the terminals that are in that button instead. More information can be found in this subreddit
[www.reddit.com/r/homeassistan...]
Social:
Discord DrZzs - discord.me/drzzs
DrZzs Facebook Group: / 1969622823351838
Discord Home Assistant - / discord
Twitter: / dr_zzs
Instagram: / drzzs
ESPhome Yaml code:
gist.github.com/Snipercaine/f...
ESPhome Flashing tool:
github.com/esphome/esphome-fl...
Sonoff SV:
Banggood - drzzs.com/Sonoff_SV
iTead - www.itead.cc/sonoff-sv.html
AliExpress - s.click.aliexpress.com/e/bODLa91e
UltraSonic Sensor:
AliExpress - s.click.aliexpress.com/e/b6gyc26U
Amazon - amzn.to/2JVqwJm
Banggood - drzzs.com/US_Sensor
Reed Switch:
AliExpress - s.click.aliexpress.com/e/bt8x2WMs
Amazon - amzn.to/2YDc9xv
Banggood - drzzs.com/ReedSwitch
Jumper Wires:
Amazon - amzn.to/2YLM2EV
AliExpress - s.click.aliexpress.com/e/buqEtUlE
Banggood - drzzs.com/Jumpers

Пікірлер: 164
@bdubs6666
@bdubs6666 4 жыл бұрын
You are awesome Doc! This was my first and long awaited dive into the home automation world and I think I have impressed my family, they now can open/close and see the state of the garage door with their phones from anywhere. I don't think I can thank you enough for your HA videos, I like your style. This went pretty smooth with maybe the exception of getting duckdns working, I struggled with that a little. Thanks again.
@DrZzs
@DrZzs 4 жыл бұрын
Excellent! Glad to help!
@firepilot17
@firepilot17 3 жыл бұрын
Thanks for the video! I used this to control my garage door, added a temperature sensor, and used another one of your videos to place the US sensor on the ceiling to tell me if the garage door is up. The only problem I had was with the FTDi adapter. My computer had an issue with the driver and I had to search around to correct that. In the end it all worked out. Thanks!
@Sparky056
@Sparky056 5 жыл бұрын
Well done Doc. I updated my sonoff SV last night version 3. Working flawlessly on the test bench. Today I installed it onto my door, I had a few problems with MY connections, but I worked them out and now its complete. Well done Sir. Waiting on version 4 with stop assist and LEDs.
@DrZzs
@DrZzs 5 жыл бұрын
Great! I've been distracted lately with other projects that have forced their way up the priority list, but I'll get back to v4 soon.
@Sparky056
@Sparky056 5 жыл бұрын
@@DrZzs Can I suggest an option to car senor? Your is set for 1.5 meters. What about when two people share the same garage space, both have different heights. For me its 34 inches and 43 inches (car=wife and truck=mine).
@salim.studio
@salim.studio 5 жыл бұрын
Super ultra amazing bro , you are in other level .
@jefferygrantham5582
@jefferygrantham5582 5 жыл бұрын
Love the addition for the detection of the car in the garage. Super cool.
@DrZzs
@DrZzs 5 жыл бұрын
Thanks! ya, works a charm too.
@DeclanShanaghy
@DeclanShanaghy 4 жыл бұрын
👍 nice. I like the 3M VHB double sided tape to mount stuff like that. Anything stuck up with that is never falling off! 😁
@denispublic2482
@denispublic2482 4 жыл бұрын
Excellent. Waiting for version 4
@jethro2512
@jethro2512 4 жыл бұрын
Finding projects to do in self isolation. I just finished my install and works great. Made a mod to the SV board and freed up GPIO13. This gave me an extra input which I used for a second reed switch to confirm door is closed. Did this because I have an IR beam across the doorway which can stop it from closing if something or someone is under the door. Maybe GPIO13 could be used for the CO sensor. Cheers from Oz.
@bill_automated1226
@bill_automated1226 5 жыл бұрын
I like it. I am also looking forward to version 4.
@biggyk87
@biggyk87 5 жыл бұрын
This is hilarious, I was looking at old videos and deciding which would be best to try after I had issues with my sonoff SV and well here you are with another garage video :)
@DrZzs
@DrZzs 5 жыл бұрын
I'm reading your mind. ;)
@jonatanrebollar5918
@jonatanrebollar5918 5 жыл бұрын
What issues did you have?
@biggyk87
@biggyk87 5 жыл бұрын
@@jonatanrebollar5918 I'm actually having the same issue as before with this new method. when I connect the wires to the contacts the door won't trigger and just throws a button short circuit error code. I have a chamberlain just like Dr zzz and my button also uses input 1 and 2. no matter what I do I can't get it to work.
@biggyk87
@biggyk87 5 жыл бұрын
@@DrZzs still having issues though :/ explanation below.
@biggyk87
@biggyk87 5 жыл бұрын
@@DrZzs so it looks like if your chamberlain opener has the security 2.0 feature your method will not work. You have to use one of the wireless button remotes and solder then sonoff to it.
@anyDiy
@anyDiy Жыл бұрын
You are genius. Thanks a lot. I followed your instructions and so far so good on my desk. I will then deploy it.
@MihirPatel_mihir2787
@MihirPatel_mihir2787 5 жыл бұрын
I was able to finally try this out after waiting patiently for a few days to secure the components. A couple of notes - 1. I did not need to remove the 10k resistors and everything still works fine for me. 2. I used binder clips to secure one end of the reed switch on the garage door opener rail and some good old Electrical tape to secure the other part of the reed switch. Works good so far! Can't complain! Thanks for sharing this!
@danieleriksson3170
@danieleriksson3170 4 жыл бұрын
1. arent you then passing full voltage through the switch? Its not made for that..
@kevinfietz409
@kevinfietz409 4 жыл бұрын
@@danieleriksson3170 So I cant power it with the 24V the whole time ? Would it be safer to do an Stepdown Convert (24V -> 5V) between them ?
@ukaszZalewskiLooker
@ukaszZalewskiLooker 5 жыл бұрын
This is the one on my list. Thanks. I am looking forward for version 4.
@DrZzs
@DrZzs 5 жыл бұрын
Thanks! I'll get working on it soon. I've got 2 other videos to finish first - The Dreamlight and the Window opener.
@qbs7701
@qbs7701 5 жыл бұрын
@@DrZzs so we can be ready with all the needed parts on hand, can you give us a complete parts/affiliate links list? Looking forward to the latest version! Other ideas I could find useful/suggest would be water leak detection for an overflowing/clogged ac drain pan. Tapping into the existing float switch that many ac systems currently utilize such as this model www.amazon.com/Rectorseal-97637-Safe-T-Switch-Ss2/dp/B005D4RFEM/ref=sr_1_3?crid=1S81T5U8HQU41&keywords=ac+float+switch&qid=1560456099&s=gateway&sprefix=ac+float+%2Caps%2C154&sr=8-3, but just turn off the ac system if triggered. For some reason the one installed in my system stopped working so I' ordered a replacement, but still need to install it. Connecting it to HA would be a good upgrade along with maybe 1 or more additional water sensors for redundancy ! It's always nice to know there is a minor problem before it potentially becomes a bigger one! I also have had one of theses electronic water heater control timers www.amazon.com/INTERMATIC-Electronic-Heater-Voltage-Channels/dp/B07J6RQRT1/ref=sr_1_9?keywords=electronic+water+heater+timer&qid=1560456253&s=gateway&sr=8-9 that works fine but could be much better being controlled via HA!
@SmartSolutionsForHome
@SmartSolutionsForHome 3 жыл бұрын
Thanks for the inspiration! Great job, as always! :)
@ferencszabo3504
@ferencszabo3504 5 жыл бұрын
Banggood one stop shop, Doc you're my kind of guy! Cheers 🍻
@DrZzs
@DrZzs 5 жыл бұрын
thanks!
@dwaynelarose278
@dwaynelarose278 5 жыл бұрын
Ferenc Szabo they don’t honour warranties #neverbanggood
@MrMduzee
@MrMduzee 5 жыл бұрын
My HA mentor , you are the best !!
@JHBVDS
@JHBVDS 9 ай бұрын
Hey DrZzs Thanks for the effort you put in in making your videos and sharing your knowledge! Having one magnetic sensor on a door, is certainly better than none, but being in Africa, we need something better. One sensor only tells you when the door is FULLY closed, but helps nothing to tell you if the door is stuck somewhere between open and close! I was hoping that you would like to make a further iteration of your opener/controller. I'm thinking of a opener which has two magnetic sensors, one to sense the fully open position and another for the fully closed position. PS: I think your idea with the ultrasonic sensor is great! Perhaps you can also use it to sense if there is an obstruction in the doorway 😃
@randyarrasmith2013
@randyarrasmith2013 5 жыл бұрын
awesome project. I already had a zwave device for the door control but am adding a parking sensor with LEDs to indicate when I am parked where I want (in far enough but not too far). Side comment: if you snap a component off of a board you will most likely damage the solder pads making it very hard to put those components back on. I suggest for most people to simply use a soldering iron to heat up the resistor and then gently slide off with the screwdriver. You can then easily put them back on if you want if using the board for something else. :) I know all these boards are cheap now a days but still good practice :)
@DrZzs
@DrZzs 5 жыл бұрын
good point! I'm not planning to reinstall those resistors, but that's a great tip for other times when we might want to reuse the parts. Thanks!
@sidneyking11
@sidneyking11 5 жыл бұрын
Wow DrZzs, that is a cool project you came up with. it would be awesome to add some kind of parking assistant.
@DrZzs
@DrZzs 5 жыл бұрын
coming in v4!
@JustinFontes
@JustinFontes 4 жыл бұрын
@@DrZzs v4!
@eclecticlife
@eclecticlife 5 жыл бұрын
First of all, I want to thank you for all the videos and information that you share with us. I have learned a tremendous amount of knowledge from you and my automations are a success because of your guidance. I hope you can continue this for a long time. I do have a comment/suggestion regarding this implementation. As I was upgrading my garage openers, I realized that if for some reason the nodemcu (I used them instead of sonoff sv) looses power, by default the relay would trigger the doors. That's a major security problem, because the garage doors would be open after a power failure. I fixed this by adding the following line of code under the Switch definition. This way the switch never is on when power is restored. restore_mode: ALWAYS_OFF thanks again for all your work!!
@DrZzs
@DrZzs 5 жыл бұрын
Awesome! Thanks for posting that. I'll include it in my v4 video!
@steelcityking383
@steelcityking383 5 жыл бұрын
Another awesome video. I added another ultrasonic sensor over top of the roof of the cars. When I tell Alexa I'm leaving I set up a script with a wait template and when the car pulls out the value from the ultrasonic sensor changes I add 5 seconds of delay then the garage closes its awesome.
@DrZzs
@DrZzs 5 жыл бұрын
That's a great idea!
@rockmerlin6487
@rockmerlin6487 5 жыл бұрын
Yet again excellent tutorial.
@DrZzs
@DrZzs 5 жыл бұрын
Thanks! Glad to hear it :)
@i00Productions
@i00Productions 4 жыл бұрын
I powered mine off the 12v from the garage door itself ... I just use it as a relay that I can control remotely ... I like it because it neatly fits inside my existing garage door controller box :) ...as for a ultrasonic sensor ... I have that in another box at the back of the room ... This works out car presence detection and distance to the wall when parking and flashes a light when the car is just far enough in for the garage door to close so I can have max space behind for other junk :)
@TheBeefyTube
@TheBeefyTube 4 жыл бұрын
Hey DrZzs, thought I would share the easy Shelly setup - I took your original setup and now replaced with a Shelly1 in 12v mode. You don't even have to flash it or break resistors. I use the stock firmware with built in timer to auto off after 0.2 seconds, so it works as momentary to activate the door and then use the button as a detached switch that works for the reed sensor. You could probably flash it and use the debug pins as other inputs.
@acordill
@acordill 5 жыл бұрын
Great video as usual Dr. You can add a USB port from your NUC to your home assistant container. Attach FTDI adapter to a USB port on NUC, go to your container in proxmox, click on hardware, click add at top, select add usb device, I use add USB port on menu, from there pick the one with the FTDI adapter attached. Restart container, and you are golden!
@acordill
@acordill 5 жыл бұрын
Forgot to say that this method dedicates the port to hassio.
@DrZzs
@DrZzs 5 жыл бұрын
Thanks! I've played with using the USB ports on my Nuc before. I keep my Nuc in a closet, so it's more convenient for me to use the USB ports on my main PC. But these will be good instructions for others, so thanks for posting.
@acordill
@acordill 5 жыл бұрын
@@DrZzs My Pleasure!!
@VAKUL-DC
@VAKUL-DC 5 жыл бұрын
nice update , thanks doc
@DrZzs
@DrZzs 5 жыл бұрын
Thanks! It's working great too.
@jasonmarriott1058
@jasonmarriott1058 5 жыл бұрын
This is awesome don't need this for my garage but a borehole switch to my water tanks using a sonoff :)
@DrZzs
@DrZzs 5 жыл бұрын
Thanks! That's a great use for the sensor too!
@interupt0
@interupt0 5 жыл бұрын
Thanks Doc!
@DrZzs
@DrZzs 5 жыл бұрын
You're welcome!
@H4HDJD
@H4HDJD 5 жыл бұрын
Version 4 is how I want to go with parking assist LED and some sort of range detection. Also maybe mention what to do for adding a 2nd car detection. Another thing maybe talk about how to set up auto close and open for when a car leaves and comes back? Thanks for all the work you do it’s really helpful
@DrZzs
@DrZzs 5 жыл бұрын
good ideas. The best solution for auto-opening/closing is the MQTT Car Presence project. I'm still using mine. It's been about 18 months now, and it's still one of my favorite projects. kzbin.info/www/bejne/Z3Xck5-tqM-Zi5o
@rustyherd3172
@rustyherd3172 5 жыл бұрын
Great video. I built something similar for my garage about a year ago. I used a vary similar range finder but connected it to a ESP32 dev board and it is mounted to the ceiling just above the door when it is open. This way if the distance is less than 5 cm it knows the door is open, 150 the car is there door closed, 200 car gone door close. This data is sent to a python program on my serve that tracks my wife's gps location on her phone. If she gets within a certain distance of the house it checks the sensor and determines what to do with the door.
@DrZzs
@DrZzs 5 жыл бұрын
That is brilliant! I love the idea of putting the US sensor above the door! I'll have to do that for my next version.
@iulianch
@iulianch 4 жыл бұрын
When will you make a video with Version 4? I'm waiting for it a loot! Thank you
@danmireille4975
@danmireille4975 5 жыл бұрын
Love this guy!
@DrZzs
@DrZzs 5 жыл бұрын
ha! Thanks man!
@Vendoization
@Vendoization 5 жыл бұрын
OMG the RGB ULTRASONIC parking assist instead of tennis ball hanging from the ceiling would be perfect!
@DrZzs
@DrZzs 5 жыл бұрын
That's what I'm thinking too!
@bogdanasanache3135
@bogdanasanache3135 3 жыл бұрын
The rest of pins where door magnet and proximity sensor are connected ,can be used to add a second proximity sensor ? Awesome video . Everything works as swiss clock 😏. Thank you 😊
@willdabeast4430
@willdabeast4430 5 жыл бұрын
This is awesome! I’m have a d1 mini with (2) sr04s, dht22 and reed switch. Looking to add a relay and motion sensor.
@DrZzs
@DrZzs 5 жыл бұрын
perfect! That'll be great.
@MrKunal1503
@MrKunal1503 3 жыл бұрын
Hi DrZzs Great video. Love them. Learned a lot. Thanks. Was wondering if you could point me in a direction here. My 1st project at the moment is the garage door as well. I need the tasmota to work as a momentary switch. So I have a spare remote that want to sacrifice to hook to the tasmota's relay. So it triggers on command. But it will stay on and I will have to issue two commands to open the door or close the door. I you know which template I should use. Thanks.
@p.hartmann
@p.hartmann 5 жыл бұрын
Great project :-)
@DrZzs
@DrZzs 5 жыл бұрын
Thanks!
@diederikmaes2367
@diederikmaes2367 2 жыл бұрын
Hi Justin, I've now used this solution for months using an NFC tag in the car to open the garage through Home Assistant. Great stuff, thanks. I would now like to add a radar motion sensor to that same module because it's conveniently in the middle of the garage. So I was wondering if there's any pins left on this layout to add the sensor? That would avoid dedicating an ESP32 module to that one extra sensor. Thanks in advance for the reply.
@Skefda
@Skefda 4 жыл бұрын
Thanks for all the videos! Super helpful. Just done this for my garage door and driveway gate. Which method do you prefer? This ESPHome based one or the Tasmota option in the previous video version?
@DrZzs
@DrZzs 4 жыл бұрын
I like this one better. I like knowing if there is a car in the space or not.
@eclecticlife
@eclecticlife 5 жыл бұрын
Version 4 needs to include a CO2 sensor that opens automatically the garage when levels of CO2 are too high and dangerous. ;)
@DrZzs
@DrZzs 5 жыл бұрын
I love that! I'll look for a CO2 sensor. Last time I went looking they were kinda pricey. Of course, I drive an electric car so.... no fumes in the garage. Except MrZzs SUV. :)
@brendankmurphy75
@brendankmurphy75 4 жыл бұрын
CO would be more relevant. Carbon Monoxide (CO) is the deadly odorless gas that can kill people when they idle their cars in a closed garage. Carbon Dioxide (CO2) is the relatively acutely harmless greenhouse gas. In other words: CO will kill you from an idling car before CO2 will. This being said, you can detect CO with an MQ-7 sensor.
@OldCurmudgeon3DP
@OldCurmudgeon3DP 5 жыл бұрын
The issue w/ the position of the reed switch is you can only be sure if the door is fully open where you placed it or fully closed (I like this better) if it's at the other end. I almost wish I'd found HA before we got a commercial system. So many things I could do better, but the WAF during the transition at this point would be a mess.
@DrZzs
@DrZzs 5 жыл бұрын
true, true, true :)
@EugenePugach
@EugenePugach 3 жыл бұрын
Another v4 idea - Put the sonic sensor on one or both sides of the garage door to ensure that the garage door does not close if someone parked the car too far out or there is another obstacle in the way.
@peterhouston7266
@peterhouston7266 5 жыл бұрын
Thanks for the updated video. Back up and running with my garage opener and Lovelace now. Thanks! With your previous version the cover had up and down buttons and only the available option was clickable (the other was greyed out). Is that something you need MQTT for or is it possible with ESPHome too?
@DrZzs
@DrZzs 5 жыл бұрын
it's possible with ESPhome too. You just make it a Cover instead of a switch and binary sensor. The ESPhome page has examples of making a cover entity for a garage door. esphome.io/cookbook/garage-door.html
@mrteausaable
@mrteausaable 4 жыл бұрын
Hi, how do you make it so it will show big picture of garage open or close status like on your new lovelace ui?
@hippyknight
@hippyknight 4 жыл бұрын
Fantastic video as always @DrZzs with a great straightforward approach to something many of us want to implement. Can I ask a question about an an issue I have please? Realize the video is getting older now but I can't seem to get the actual garage door working to open/ close in HA the door after I have implemented the project. I have got it all working and when it comes to the door opening/ closing the tests you show for the Sonoff SV red led light coming on when clicking on the button in HA that also works fine. The wires soldered to the Sonoff SV also trigger the door immediately to open/ close as you talk about when they are touched to the end points of the door motor mech. The issue I have is when the wires are connected to the door mech and I press the button in HA the door does not respond at all. Everything else works fine reed switch, US sensor, Red Led in Sonoff SV indicator on button press etc but the door won't budget after opening/ closing at the first point of contact when the wires are screwed in. Could my solder of the two wires on the Sonoff be an issue or something else obvious? Any help you or anyone else here can give would be very much appreciated.
@moizqureshi1796
@moizqureshi1796 3 жыл бұрын
Version 4 you should remove the magnetic door sensor. Instead, extend the jump cables for the ultra sonic distance sensor and place it on the ceiling. Far enough that when the garage door pulls up it covers the sensor. Now you can add two distance. One for the car and another for the garage door.
@TheDannys19
@TheDannys19 5 жыл бұрын
Doc, Love all your videos. I am still learning what the capabilities are of these devices. Is there a good reference of what you can connect to this board? For example, I want to connect a temperature sensor to it to make sure my water heater doesn’t freeze in the garage. Use any available GPIO (4 or 5)? Thanks!
@DrZzs
@DrZzs 5 жыл бұрын
thanks! yes, you can use 4 or 5 for a temp sensor. ESPhome has support for many sensors. Come to discord if you get stuck.
@gdreelin
@gdreelin 5 жыл бұрын
II was thinking it would be great to re-purpose some of those old outside keypads for garages to work with this new way of doing it. This would give you a backup in case HA is acting strange or just another way to get in your garage. My garage has one wired in for both doors but most times it does not work right and keeps losing the code. So replace it with something more high-tech that does the same using the wires.... A thought!
@DrZzs
@DrZzs 5 жыл бұрын
I haven't tried incorporating the keypad... that's a good thought.
@Nicoleise
@Nicoleise 5 жыл бұрын
By this numbering scheme, I've build version 6 or so on an Arduino about a year ago. :) So if you want to skip some iterations, here are some useful ideas: - LED RGB Parking guide, collision warning and traffic light (I use AdaFruits circular addressable array) - User programmable/teachable desired parking position to let you park exactly in the right spot. - Ultrasonic parking distance and garage door automation (open the garage door once the car reverses about a feet, auto-close garage door after exit or when car is parked/clear) - Courtesey lights (traditional function; turn on with presense or open door if dark outside (gets signal from other controller) and if dark outside and reversing out, also turn on exterior spotlight.) - Alarm function to trigger alarm system if garage door is opened while armed, or if the vehicle is moving away from the ultrasonic sensor) So essentially, when you arrive home, the garage door needs to be opened by other means (button in car, WiFi connection or ALPR camera). The rest is automatic, the door closes behind you, and when you leave, it opens automatically and closes when you leave. You can obviously still monitor the state of the garage door and open/close it manually. I used an encoder to get the actual position of the door rather than the magnetic switches. If you use a magnetic switch, it's a good idea to either put one at both ends, or if only one, put it in the closed position. It's the closed position you'll want confirmation about, not "the door is not fully open". Especially not if you'd like to also use this sensor as an alarm. The encoder I programmed to be auto-adaptive so it self-learns the travel of the door and converts that to a percentage of opening. For the other stuff, I used the same ultrasonic sensor you used (but two of them, since it's a two-bay garage), and then integrated the garage door controller itself to get the encoder (position), the end switches, the command to open/close, and the safety IR beam that stops the door if a car or person is in the way, to register that the vehicle left the garage through a long enough interruption of the safety beam. The parking guide is off (energy conservation and less "eye clutter") until the garage door is opened and the distance is something like 3 m. It only reacts to "sloping change" so if you walk past the sensor, in most cases it doesn't react. Closer than 3 meters the LED array fills a circle of blue, then green, then yellow and then red. You stop when it's all reds. You should remember to take the deceleration of the car into account - the car will be moving faster at 3 meters than at 20 cm, so space the zones accordingly. :) If the distance is less than a certain threshold, the guide flashes red and the brightness is increased from 150 I think to 255, it's *really* good, you literally cannot not notice it. The parking guide turns off again, when the distance has been constant for ten seconds, unless the collision warning mode is active. When reversing out, it will show a red ring once you move the car a bit, and that turns to an animated red ring when the door is commanded to open, and a green constant ring when the door is either fully opened, or opened enough to clear the car (using the encoder position). When the car is monitored through the alarm system, the parking guide emits a solid ring red flash every five seconds to indicate the alarm function monitoring the car. In this instance, the auto-open is off and you need to disarm the alarm to move the car, otherwise the alarm will trigger, if you haven't already triggered it by opening a door or moving around in the garage. I hope this helps as a bit of inspiration. :) Oh - and be careful using cheap phone chargers for your house automation. A Danish bureau recently tested 40 non-OEM (not Samsung, Huawei, etc.) chargers bought in stores, and more than half had serious safety issues. Some of them would even catch on fire, even with no load attached.
@gunnarbjru9685
@gunnarbjru9685 5 жыл бұрын
I like the idea of having an safety IR beam that stops the door if a car or person is in the way. And maybe a sound alarm telling persons in the garage that the door is closing. Something for the next version?
@Nicoleise
@Nicoleise 5 жыл бұрын
@@gunnarbjru9685 - It's typically mandantory in most of the EU, so in my case the IR beam was already on the garage door. Breaking the beam whilst closing causes the door to stop and then reverse to full open. :) If it isn't there already, it's inexpensive to add. I would never be without it. :)
@gunnarbjru9685
@gunnarbjru9685 5 жыл бұрын
@@Nicoleise - I would like to have that on mine too. Unfortunately it does not have this feature. My garage door senses that it meet something and the load on the motor increases - but it uses quite a load until it gives up and returns.
@Nicoleise
@Nicoleise 5 жыл бұрын
​@@gunnarbjru9685 - Oh right. Our garage door does that too, but I don't think it's approved as enough protection on it's own anymore (might have been when the door was made). In any case, it does take quite an amount of force to stop the door. There's also another method which is suitable on it's own; a rubber profile (which usually exists anyways) along the edge of the door, but then with an air chamber inside it. If the rubber list is compressed, the air flow is detected from the profile being compressed against something. But both these methods will cause some damage (e.g. scratches to car paint), so I specifically wanted an IR beam. Like I said, it's not expensive if you want to retrofit it and your door supports it :)
@DrZzs
@DrZzs 5 жыл бұрын
wow! Thanks
@niceguy1818
@niceguy1818 4 жыл бұрын
Is it possible to connect a dht22 sensor into the rx/TX pins?
@MihirPatel_mihir2787
@MihirPatel_mihir2787 5 жыл бұрын
Great video as always!! With the ultrasonic sensor reporting distances, you don't really need the reed switch, do you? You could base all the logic based on distance. Assuming Distance A>B>C, If the sensor reports distance C it means garage door is open. If the sensor reports distance B it means the door is closed and the car is present. If the sensor reports distance A, it means the door is closed and the car is not present
@sumb0dy0utthere
@sumb0dy0utthere 5 жыл бұрын
To do this the sensor would need to be above where the door travels. You would not be able to determine if the vehicle was in the garage with the door up, only that the door was open.
@MihirPatel_mihir2787
@MihirPatel_mihir2787 5 жыл бұрын
@@sumb0dy0utthere I did not think about that scenario!
@theguid0
@theguid0 4 жыл бұрын
Having trouble with the open/close sensor. The relay trigger works well, but the door shows always closed in the panel. I've tried the reed switch and just bridging GPIO14 to ground with a straight wire off and on with no change. The log shows no reaction to anything with GPIO14. Any ideas? *EDIT* I changed to GPIO4 on the sonoff and changed the yaml to match and everything worked. I don't know if there's something wrong with my pin 14 or if something from an old setup still in the sonoff, but that was easy enough of a fix for anyone else who may run into something similar.
@richf7148
@richf7148 3 жыл бұрын
For the binary_sensor referencing GPIO14, do I need a add-on to use it? I've not referenced GPIO pins before. Device is a Sonoff SV with Tasmota firmware.
@mattriding5588
@mattriding5588 5 жыл бұрын
Thought...Instead of a read switch which can be difficult to install sometimes. Could you place the ultrasonic sensor pointing down above the door in the open position. Then you would have 3 distance readings. Short: door open. Medium: door closed and car in garage. Long: Door closed and no car in garage
@jmyler
@jmyler 5 жыл бұрын
Matt Riding this is what I did too
@DrZzs
@DrZzs 5 жыл бұрын
I tried that, and it didn't work well for me. But I think it was the angle I had the sensor pointing. If you line it straight up with the front of the car it should work as you say. Great idea!
@StePhanMckillen
@StePhanMckillen 5 жыл бұрын
other 10 out 10 thanks
@DrZzs
@DrZzs 5 жыл бұрын
thanks!
@stevebrown1413
@stevebrown1413 4 жыл бұрын
Hey Doc, Excellent video as always. Pardon my confusion but I can't figure if I missed a step or your did. I run HA on a virtual server on my desk top. Thus I assume ESPhome will create the *.bin file in the virtual server. Will I need to move the *.bin file to Win 10 on the desktop, or can the flasher select the *.bin file from the virtual server (presumable using Samba).? Sorry for the dumb question ... but I am a Buckeye.
@stevebrown1413
@stevebrown1413 4 жыл бұрын
Ignore this question. The reason you didn't mention it is because it shows you as you do it!
@AdamCostenbader
@AdamCostenbader 3 жыл бұрын
Has anyone else run into where your Wemos D1 Mini, or whatever controller you used, caused enough interference to block the normal garage opener signal from your car or key fob? I'm curious if this is a common issue or if it might just be the controller I have.
@NicholasKillin
@NicholasKillin 5 жыл бұрын
I want to do this, but am new to these kinds of projects. Everything seems well laid out here, so thank you! My only question is this. I want to put my reed switch in a different location so that it only closes when the garage door is fully closed instead of open. What kind of cable should I use to go from the sonoff sv to the reed switch? Thanks!
@DrZzs
@DrZzs 5 жыл бұрын
Thanks Any decent paired wire should be fine. Maybe no smaller than 28g. The voltage for the reed switch (or any gpio pin) is only 3v max, so you may have trouble if it has to travel long distances.
@johnp2802
@johnp2802 3 жыл бұрын
Great video, the only problem is that now from homekit i need to say "turn on the garage" vs the last video I could say "open the garage" is there any way i can change the code to controll it by saying open the garage again :). THanks!
@DrZzs
@DrZzs 3 жыл бұрын
I believe there is a way to use Open and Unlock commands with Alexa/Google Home, but it requires you to set a pin code with them. Then when you say "open" or "unlock" it will ask for your pin. That's the best solution I have right now.
@rashiedeksteen5464
@rashiedeksteen5464 3 жыл бұрын
Hi DrZzs, Is this possible by using a SONOFF 1Channel Inching Self-Locking WiFi Switch 5V 12V, looking forward to your reply
@michaeltheophilou5309
@michaeltheophilou5309 5 жыл бұрын
@DrZzs - Thank you for sharing this. I have just switched over to it from your MQTT version and think its much more stable.. Could i please ask fro your assistance in solving something for me, which i just cannot get my head around. With your MQTT version, i created an automation which triggered a LED flash cycle (on -> off each second), while the door was open. I have the LED attached on the TX pin of the SV, but cannot seem to grasp how to recreate the code in ESPHome.. Could you please help. thanks in advace
@DrZzs
@DrZzs 5 жыл бұрын
cool! to set up a simple on/off led on a gpio pin in ESPhome this should tell you what you need to know: esphome.io/components/light/monochromatic.html For the output make it Tx (or GPIO1). That'll give you the light. Then if you want it to flash when the door is open you could probably use the binary_sensor "on_press" or "is_on", something like this: esphome.io/components/binary_sensor/index.html#binary-sensor-on-press you can list the actions. I'd have to play with it to really tell you exactly how to make it happen. But that should point you in the right direction. Good luck!
@richf7148
@richf7148 2 жыл бұрын
So, what would an automation look like to identify when a car is now in garage that wasn't a minute ago?
@bawitdaba1337
@bawitdaba1337 3 жыл бұрын
I'm not done setting mine up yet, but I had a lot of issues just flashing esphome. ESPHome flasher was detected as a virus (i guess this is a known issue according to the forums), ftdi drivers for windows was (not fun) to find and setup. At first I couldn't get the ESPHome binary to download from HA in chrome you have to shift+f5 if this happens. I could not for the life of me get ESPHome to connect to my hidden wifi network it needed to be configured as a bssid with fast_connect: true and a shorter password. Many hours later and 7 flashes later and it's actually online now, now on to the (what was supposed to be) hard part
@allonmessenberg3129
@allonmessenberg3129 5 жыл бұрын
Hey DrZzs, When you print gears for your mechanisms, what material do you use?
@DrZzs
@DrZzs 5 жыл бұрын
PLA usually.
@johnraahauge4552
@johnraahauge4552 5 жыл бұрын
You might damage your Sonoff by hooking the echo pin from the Ultrasonic sensor directly to it. Remember it potentially gives up to 5v and the Sonoff GPIO is 3.3, so you should make a voltage divider with two resistors.
@DrZzs
@DrZzs 5 жыл бұрын
ooh, that's a good point. I wonder if using a 3v US sensor would avoid that issue too?
@johnraahauge4552
@johnraahauge4552 5 жыл бұрын
@@DrZzs Yes, if you use a sensor that accepts 3v you won't have any problems. To be honest I don't really know if its that big of a deal. These devices are so cheap that it doesn't really break the bank if you fry one. Think they are pretty resilient. People hook up 5v inputs all the time and doesn't seem to have a big problem. Noticed Rob also did it with his temperature input on his Pool Controller.
@sreed1073
@sreed1073 5 жыл бұрын
great video I do have one question how would I also add MQTT to the sketch as my kids and wife use an android app that sends an MQTT to publish the open the garage door command topic. other than that I would switch in a min.
@DrZzs
@DrZzs 5 жыл бұрын
I should have also included the webhook shortcut button I put on my wife's phone. She wanted one quick button to press to open/close the garage. Sounds like what you've got with MQTT.
@sreed1073
@sreed1073 5 жыл бұрын
@@DrZzs yes that is what I need do you have steps to add that
@schololo-blog8762
@schololo-blog8762 2 жыл бұрын
My sonoff SV stopped working after I soldered relay input pins. The led doesn't blink when I connect power (I don't connect to the relay switch but to board power as in video). Voltage is 4.9 and before soldering it worked. I tried on 2 sonoffs sv and both don't work now. Anyone help? Could it be because I overheated the board? There are no solder bridges.
@BACRULES
@BACRULES 4 жыл бұрын
I What to make this so bad, but i have a big problem. I need it-sensor and Reed swish. how can i make it works so when the IR is broken the garage door going up and the reed swish will notice the door close or open. Any one have any ideas?
@diederikmaes2367
@diederikmaes2367 3 жыл бұрын
Hi Justin, is there a specific reason why you want to isolate the relay circuit by removing the resistors? Is this dependant on the type of garage relay switch or is this always necessary. I wanted to make sure I need to remove them. It'll be a pain getting them back on afterwards :-)
@MrTjnielsen81
@MrTjnielsen81 Жыл бұрын
I know this reply is a bit late to help you, but here's the answer in case somebody else needs to know: the garage door is configured to work with a physical momentary button, and it will toggle the motor when the trigger wire is grounded. The Sonoff SV is designed to work as a DC switch. In its factory state, it will not only use the power supply to run the electronics of the device itself, but also pass that voltage through the relay (as controlled by the user). If you connect the Sonoff SV's output directly to the garage door, you'll be supplying positive DC power into the garage door, not ground. Removing those little resistors isolates the DC power supply from the relay so it can operate entirely independently.
@NicolasBoulanger
@NicolasBoulanger 4 жыл бұрын
this is the better version of garage opener :) ! is there any way to set cover position with this configuration ? thanks !
@DrZzs
@DrZzs 4 жыл бұрын
no. You'd have to have a different motor system for that. Either a motor with an encoder that tracks how many times it has rotated, or a stepper motor that counts steps. Are you thinking of using it for something other than a garage door?
@NicolasBoulanger
@NicolasBoulanger 4 жыл бұрын
DrZzs ok i prefer the esphome version for « management » its pretty cool no only for garage door :)
@theguid0
@theguid0 4 жыл бұрын
You could possibly time how long it takes to get to the position you wanted (if there was one spot in particular you wanted to allow pets in or something) and put a delay on that trigger. A second press when going up usually stops the door in place.
@therealblujuice
@therealblujuice 4 жыл бұрын
Version 4 yet?
@areks4397
@areks4397 5 жыл бұрын
I would suggest setting the Car presence as an automation: If the distance is less than 1.5 for X amount of time, car is present. That way you won't get false positives of people just passing by.
@DrZzs
@DrZzs 5 жыл бұрын
good thought! Thanks
@terencefaul
@terencefaul 4 жыл бұрын
Does anyone know how to change the yaml to make this in the form of a cover so there is one entity to show the state and a up down arrow either side for open and close
@DrZzs
@DrZzs 4 жыл бұрын
I just saw a custom card that makes a cover out of any entity (at least I think that's what it does). github.com/custom-cards/cover-element it's available in the HA community store. Hope that's what you're looking for.
@DanielNictheroy
@DanielNictheroy 5 жыл бұрын
Tip for Mac Users!! I found a program to flash on Mac, that works like the "EZ Flash" for windows. It's called NodeMCU PyFlasher 4. I used to flash Sonoff, NodeMCU and D1Mini with no problem. In the past I had to install windows on my Mac just to use the EZ Flash from Dr Zzz recommendation, the other methods for Mac were complicated and didn't work well for me.
@DrZzs
@DrZzs 5 жыл бұрын
Excellent!! Thanks!
@eastfreakspl
@eastfreakspl Жыл бұрын
Hello. At end You mentioned something about v4. Is it available? I`m asking because i`m thinking about that kind of sensor with LEDs ;)
@DrZzs
@DrZzs Жыл бұрын
This is the latest... github.com/aderusha/MQTTCarPresence
@eastfreakspl
@eastfreakspl Жыл бұрын
@@DrZzs Thank You!:)
@timnaylor9823
@timnaylor9823 5 жыл бұрын
Is there a compelling reason not to check more often with the sonic sensor? I use it to determine if the garage is open or closed as well. In my case, the sensor is on the main rail, and if it sees the door at
@timnaylor9823
@timnaylor9823 5 жыл бұрын
also I used a nodemcu and a relay instead of the sonoff SV but basically the same YAML works with the tweaks for my specific garage door opener, and using the sonic sensor for double duty.
@DrZzs
@DrZzs 5 жыл бұрын
no, I don't think it's a problem to check more often. I have some sensors that are reporting back every 10 seconds. Shouldn't be a problem. Good luck!
@TheMisterTFM
@TheMisterTFM 3 жыл бұрын
Broken links under parts section.
@jeremyoberbroeckling9421
@jeremyoberbroeckling9421 5 жыл бұрын
Will this still work if you have the yellow learn button on your garage door opener?
@OldCurmudgeon3DP
@OldCurmudgeon3DP 5 жыл бұрын
It should since he paralleled the SV relay contact w/ the wall switch that controls the unit.
@DrZzs
@DrZzs 5 жыл бұрын
I imagine it would. I don't know exactly what that learn button would do. My guess is it shouldn't come into play at all in this process. As Old Curmudgeon says, we're just connecting in parallel with the wall switch, so we're not asking your opener to change how it behaves with your existing remote control. Hope that helps.
@colinbuckley5320
@colinbuckley5320 3 жыл бұрын
For future readers with a yellow. It does not work. The wall panel isn't a simple switch, but a multi button panel with motion detection, garage door programming, etc. There are workarounds however. Some people open up a car remote and solder to that button. I chose to open the wall panel, found the button that opens the door, and wired directly to that.
@danieleriksson3170
@danieleriksson3170 4 жыл бұрын
Add an AI camera that reads the car plates for automatic opening. And a sensor that sees if something is under the door to automatically stop it (toys, kids, cars whatver can block its path)
@DrZzs
@DrZzs 4 жыл бұрын
That would be awesome! I think someone has done something like that. At least the recognition of the Plates part.
@lmamakos
@lmamakos 5 жыл бұрын
Urggh! You mercilessly tore the PCB pads and resistors off the board -- hurt so much to watch! Would have taken 2 seconds with a soldering iron to remove those parts, and you could actually restore them in the future if you ever wanted to.. Don't fear the soldering iron - mostly you just have to make sure to pick it up by the right end and you'l end up with more reliable results than those "Dupont" wires plugged in those header pins. Nice work! I'm using a different style ultrasonic sensor and ESPhome to measure my water softener's salt level. That sensor looks like what's embedded in car bumpers and is all nicely sealed up.
@DrZzs
@DrZzs 5 жыл бұрын
Excellent! Sorry about the pcb resistors. Sometimes I like to break things. Zzulk Smash!!
@JordanReese
@JordanReese 5 жыл бұрын
you can make a nice looking cover component with the following: that way you don't have a separate sensor and switch, just one nice garage door control switch: - platform: gpio pin: D2 name: "Garage Door Open Switch" id: door_switch internal: true inverted: yes - platform: restart name: "garage Restart" binary_sensor: - platform: gpio id: closed_stop internal: true pin: number: D6 mode: INPUT_PULLUP name: "closed_stop" device_class: garage_door filters: - invert: cover: - platform: template name: "Garage Door" lambda: |- if (id(closed_stop).state) { return cover::COVER_CLOSED; } else { return cover::COVER_OPEN; } open_action: # Turn the OPEN switch on briefly - switch.turn_on: door_switch - delay: 0.3s - switch.turn_off: door_switch close_action: - switch.turn_on: door_switch - delay: 0.3s - switch.turn_off: door_switch stop_action: - switch.turn_on: door_switch - delay: 0.3s - switch.turn_off: door_switch optimistic: true
@DrZzs
@DrZzs 5 жыл бұрын
thanks :) I've used cover for garage doors in the past. I went for something different this time on purpose.
@costenalolek973
@costenalolek973 5 жыл бұрын
ESPhome? No, Thank You. Smart Home is to make life easier. ESPhome is like tying shoes with one hand! TASMOTA rules!!!
@EpicLPer
@EpicLPer 5 жыл бұрын
ESPurna >>>> Tasmota
@DrZzs
@DrZzs 5 жыл бұрын
really? Where does ESPhome fit in then? No MQTT, direct connection to Home Assistant API. Pretty easy to configure and update. I guess they each have their strengths.
This is SO Much Better! Getting Started with ESPHome 2021
29:42
Everything Smart Home
Рет қаралды 328 М.
Nastya and SeanDoesMagic
00:16
Nastya
Рет қаралды 31 МЛН
Un ÉCRAN CONNECTÉ avec HOME ASSISTANT (Awtrix)
9:55
GammaTroniques
Рет қаралды 11 М.
Garage Door Automation with Home Assistant and Shelly 1 Plus
19:15
ESM Custom Creations
Рет қаралды 26 М.
ESPHome Smart Garage Door Controller
6:33
Speak to the Geek
Рет қаралды 10 М.
How to mod Sonoff SV to Isolated mode for garage door
11:10
Freddy Ong
Рет қаралды 20 М.
Sonoffs can work with Home Assistant without changing the Firmware!
9:41
WS2812B LED Strip with ESPHome and Home Assistant
11:56
Will Surridge Tech
Рет қаралды 66 М.
$25 DIY "Smart" Door Locks - ElectroMagnet + Sonoff + Tasmota
11:44
DrZzs & GrZzs
Рет қаралды 302 М.
Turn Sonoff Basic to garage door opener with eWeLink
11:41
Csongor Varga
Рет қаралды 375 М.
Small Act of Kindness is also a charity
1:00
PainCare _Trust
Рет қаралды 25 МЛН
WOW! SMART idea and very USEFUL 👓 👁 p5 #camping #survival #bushcraft #outdoors
0:17
Ăn Vặt Tuổi Thơ 2024
Рет қаралды 69 МЛН
RINTANGAN AIR #waterpark #summer #waterslide #fun #gadgets
0:19
ABANG FAAREZ
Рет қаралды 49 МЛН
Reuse3♻️
0:25
Yoshipapa / よしパパ
Рет қаралды 11 МЛН
Reuse3♻️
0:25
Yoshipapa / よしパパ
Рет қаралды 11 МЛН
🥹Он герой (shawn_cnhk on IG)
0:15
Бутылочка
Рет қаралды 4,4 МЛН