Загрузка страницы

DIY Smart Garage Door Opener

UPDATE:
use this sketch to avoid random opening of the doors when you loose wifi connection:
https://github.com/Snipercaine/HA_Garage_Doors/blob/master/HA_GA_v2_NC_pub.ino
You also have to change one wire on the relay from the NO contact to the NC contact.
This sketch also adds a "retain" message so it should update the state of the door after a HA restart (which was not happening with the original sketch).

ALSO: I did another video using a different device to control the garage doors. I have one of each working at my house. Both work great! https://youtu.be/QMepwpyjMCY

You'll never forget to close the garage doors again!
For about $20 worth of parts and maybe a couple hours of work you can control your garage doors with you phone from anywhere and program Home Assistant to check if they are open and close them if they are. Super useful!

Parts -
D1 Mini: http://amzn.to/2CknlEb
Relay: http://amzn.to/2AVifCg
Reed Switch:http://amzn.to/2yGPSlh
3d print box link: https://www.thingiverse.com/thing:1768820

Videos -
HA set-up: https://youtu.be/tCGlQSsQ-Mc
If you like reading instead: https://home-assistant.io/docs/installation/hassbian/installation/
Lights video: https://youtu.be/6Y6jUM1OaYM
MQTT: https://youtu.be/AsDHEDbyLfg
Ben’s video on Groups: https://youtu.be/EsBtyF5tZQ4

Files -
https://github.com/Snipercaine/HA_Garage_Doors

Steps -
Connect the D1 and 5v pins on the wemos and relay or use the relay shield pins that probably came with your wemos.
Connect the D8 pin and the 3v pin to the Reed switch. It doesn’t matter which wire from the reed switch goes to which pin.

With the Arduino IDE edit the HA_Garage_Public_1.ino file by adding the details from your MQTT server (IP address, username, password). If you have two doors then do the same with file HA_Garage_Public_2nd.ino. Upload the sketches to your wemos boards.

Edit your Home Assistant configuration.yaml file by adding the section labeled “cover:” in the Partial_Cover.yaml file. Then add the section labeled “customize”. If you already have headings for cover and/or customize then just add the lines I’ve got underneath those headings. Having duplicate headings with make Home Assistant angry at you.
Add the “group:” line, unless you already have it.

Edit your groups.yaml file with the lines in Partial_Groups.yaml. If you don’t already have a groups file, then you can copy Partial_Groups.yaml and rename it to groups.yaml. Restart Home Assistant.

Run a test before you mount your hardware. If everything works then find a place to mount your wemos, relay and reed switch. Find the contacts on your opener that go to the switch or button that opens your door. Connect a wire from one of those contacts to Common on the relay, and the other to Normally Open (NO).

In Home Assistant create the automation in the UI. You can name it anything you like. The Trigger is “time” and the time you want it to check the door state (open or closed). The Condition type is “state”, the Entity_id is “cover.double” and/or “cover.single” if you have two doors. The state you’re checking for is “open”. Finally the Action is “Call Service”, the alias can be whatever you like. The service is “mqtt.publish” and the payload is this json text:
{“payload”:”OPEN”,”topic”:”sensor/garage/action1”}
change that to “action2” for your second door.

All done!

Видео DIY Smart Garage Door Opener канала DrZzs
Показать
Комментарии отсутствуют
Введите заголовок:

Введите адрес ссылки:

Введите адрес видео с YouTube:

Зарегистрируйтесь или войдите с
Информация о видео
18 сентября 2017 г. 20:00:00
00:09:09
Яндекс.Метрика