Automate your garage door for 5€

Nico Writing by Nico Yann Writing by Yann
  6 min of reading

This page has been visited ... times

In this article I will simply show you how to automate your garage door for 5 € with homeassistant and an esp8266 7-30V module. The domotized motor is a hormann supramatic e3, but we could have used any brands of motorizations like Somfy because they are all equipped with electric motors operating between 18 and 24v.

easily automate your garage door for €5

In addition, they are almost all equipped with inputs for an external push button. The most difficult in this tutorial is to find a DC power supply to power our esp 8266 7-30V relay module, which obviously works in this electrical range.

ESP8266 relay 7-30v ESP-12F

By

Prerequisites to automate your garage door:

Nomenclature Yunshan-Lysignal esp8266

Yunshan-Lysignal esp8266 garage door relay


ESP8266 relay 7-30v Yunshan lysignal ESP-12F

A: Alimentation 7-30V + CC A1: ft232 connection (Tx, RX and GND) B: Boot jumper (in program position on the photo)

C: Contactor output

  • Normally closed relay input (NC)
  • Communication relay (COM) black wire
  • Normally open relay contact (NO)

D: Optocoupler (push button switch)

  • 5v (line + of the push button)
  • GPIO5 (line - of the push button)
  • GND (ground not connected to be connected with ground A1 for example, essential for the operation of the push button)

2: Blue led D4 of the optocoupler (on when the switch is on)
3: Red led D2 of the relay contactor (on when the relay is on))
4 : Blue wifi led (flashes when searching for the network and then fixed).

Connection

ft232 and esp8266 ESP-12F Yunshan-Lysignal

  • On one side, a universal dc socket set to 9v, a minimum of 7v is required for programming.
  • The other rx on tx
  • next tx sur rx
  • and for finish ground sur ground (GND)
  • Connect everything to the raspberry pi
Hookup ft 232 yunshan Lysignal
  1. ESP8266 relay 7-30v Yunshan lysignal ESP-12F
  2. usb uart ft232 converter module

Parameterized file for ESPhome

STEP TO FOLLOW CAREFULLY

The module can be finicky to program so follow these steps carefully

  1. Connect ftd232 usb uart (jumper on 3.3v) to the raspberry pi (homeassistant) and to the yunshan / lysignal module (tx> rx, rx> tx and gnd)
  2. Then connect a minimum 7v and max 30v power supply in dc,
  3. Check the presence of the jumper on the connectors
  4. To be able to upload the code, the light must be light blue on led d4 after connecting the power supply (if it is red on led d2, we cannot upload even in usb. In this case disconnect the boot jumper and replace - then unplug the power supply for a few seconds.)
  5. Upload the code
  6. Once finished remove the jumper from the boot while leaving the rest powered (plug and ft232)
  7. Disconnect ft232
  8. Disconnect the power wait 20 sec and reconnect the power once started the blue led of the esp8266-12e module flashes several times the time to connect to the wifi network, once fixed your module is ok
  9. You can remove the rx / tx / gnd pins and the ftd.

Final rendering in Homeassistant

intégration module yunshan-lysignal homeassistant

animated gif image on the operation of the yunshan 7-30v module integrated with esphome and homeassistant

Here is a complete return to properly automate your garage door for € 5 thanks to the help of homeassistant and esphome of the Yunshan-Lysignal esp8266 7-30V module, but beware the integration stage is not yet finished!

Creation of dry contact automation

To begin with, the no / nc pushbuttons operate in dry contact. In order to allow the state return to Off, we must create an automation which indicates to us when the state of the switch garage switch relay changes to on after 0.4 seconds the relay returns to off to be personalized according to the name given to your switch relay .

Hormann supramatic e3 control card

hormann supramatic e3 motor controller board parts list

Hormann supramatic e3 engine controller board nomenclature In our case we want to automate a Hormann engine, the nomenclature is quite simple:

  1. The three-pin molex type plug that delivers 24v continuously so that’s what we need. Originally this - + - plug is intended to connect a back-up battery in the event of a power cut.
  2. Input for external push button, we will of course connect the relay above NO or NC on the + plug and the COM on the - plug. See the pictures of the module setup below.

Module setup and testing

Now that our module is ready and functional with homeassistant, we just have to put it in place in our engine. Warning! Before any intervention, do not forget to switch off the 230V current. Fortunately the connection is simple and there is room to integrate additional modules. As this is a 24V test, for the occasion we did not use suitable molex connectors and 0.75mm electric wire.

Domotiser sa porte de garage avec un moteur hormann supramatic e3
démontage du moteur de porte de garage afin d’accéder à la carte
branchement du yunshan no nc sur les entrées du bouton poussoir externe
branchement test du yunshan esp8266
entrée contacteur pour bouton poussoir
connecteur type molex prévu par hormann pour brancher une batterie supplémentaire fourni du 24v

All you have to do is put everything together and incorporate it into the garage door motor unit and you can order your garage door for € 5 delivered via wifi via esphome and homeassistant, quite simply magic !.

ESP8266 relay 7-30v ESP-12F

By

We are currently experiencing a problem with the distance of the wifi antenna, part of an orange box without an external antenna, the dropout is regular, to alleviate this problem we are going to integrate an external antenna to the esp8266 chip, an article will be dedicated to This manipulation with earnings tests very soon, do not hesitate to follow us.

Yann

Yann

Newbie in home automation I help Nico and Math in the visual integration of articles

Comments