The gate already opens with a button and a remote. The phone repeats that gesture. It does not replace the control board: the motor, the photocells and the obstacle stop stay as they are. The module joins two terminals already meant for the button, for the length of a press.
Text revised on 29 October 2026. Plus 1 terminals come from Shelly’s European documentation. Mini Gen3 figures are the ones already used for the garage-door guide on this site. The YAML examples were not loaded on a site install.
What the phone is for
The remote stays in the car, or in the house. The phone can open for a delivery, or show that a pulse was sent, once you already have a safe remote login. It does not see the leaf until a suitable sensor says so.
What you will get
The same pulse as the button, from the Shelly app or from Home Assistant, with a confirmation. The wall button and the original remote stay in service. This shopping list does not give a reliable open or closed lamp.
| Point | Detail |
|---|---|
| Aim | Send the same pulse as the control-board button. |
| Difficulty | Intermediate. Mains inside the cabinet is electrical work. |
| Time | Half a day. An estimate, not a timed install. |
| Budget | Catalogue estimate: about $30–40 depending on the profile. The configurator details the list. |
| Hardware | One Shelly 1 Mini Gen3 or one Shelly Plus 1 per control board. Lever connectors only if a terminal cannot take two wires. |
| Software | The Shelly app, or Home Assistant and its Shelly integration. ESPHome for the bare board, in another guide. |
| Before you start | A gate that is already powered, a button that moves it, 2.4 GHz Wi-Fi at the cabinet, and the manual. |
| Risks | Mains in the cabinet. Crushing if a command is sent with the way unwatched. Never bridge the photocells. Do not open port 8123. Do not close from a time automation. |
Three ways to the same pulse
The gesture is the same. What changes is what you already own. The address may contain tier, eco, qty and tech. Those are display settings. The canonical URL is the one without parameters. The live list is on the French page, because the configurator is still in French. The three cases below are the same choices.
Default reading: recommended profile, case A, one gate, Shelly 1 Mini Gen3. Home Assistant is not a purchase.
Case A — Home Assistant is already running
You do not buy a second server, or a dongle. The module sends the pulse over Wi-Fi. The Mini Gen3 runs on 110–240 V. The Plus 1 can also take a low-voltage supply, after you measure it. No open sensor is in the list.
Case B — You flash an ESP32 board
An ESP32 and a relay whose dry contact is driven at 3.3 V replace the Shelly. The motor mains do not land on that relay either. These steps describe the Shelly. The flash is in the ESPHome garage-door tutorial. The dry-contact idea is the same. A gate cabinet is not a garage-door head unit.
Case C — The Shelly app is enough
This profile does not install Home Assistant. The app sends the pulse, after auto-off is set. It does not prove the leaf moved.
What quantity and the variant change
| Setting | Effect on the list |
|---|---|
| One gate | One module for one control board, even if two leaves share that board. |
| Several gates | One module per board. Home Assistant stays one server. |
| Mini Gen3 | 110–240 V supply only. The smaller case. |
| Plus 1 | The same I and O contact. Supply after measurement: 110–240 V, regulated 12 V, or 24–48 V. |
Configurateur interactif du projet
Personnalisez l'écosystème, la variante technique, la quantité et le profil budget : la liste matériel et le budget se mettent à jour instantanément.
Profil budget
Écosystème
Quantité
Variante technique
Catalogue prices appear in the configurator. A Shelly search on Amazon.co.uk, with this site’s partner tag, is a name search and does not guarantee the exact model or stock: Shelly Plus 1. The official sheet is the source for the terminals, not the search page.
How the command reaches the gate
The phone asks, Home Assistant calls the Shelly, the Shelly copies the button. The photocells and the board still decide whether the leaf may move.
Which module the steps follow
| Need | Choice in this guide | Limit |
|---|---|---|
| Send the pulse, tight cabinet | Shelly 1 Mini Gen3, dry contact, 2.4 GHz | 110–240 V only. Ambient −20 °C to 40 °C, humidity 30 to 70 %. |
| Send the pulse, and maybe the board’s 12 or 24 V | Shelly Plus 1, potential-free contact | 12 V ±10 % on the 12 V terminal, or 24–48 V on +. Not one on the other. Same ambient limits. |
| Join two wires in a small terminal | Lever connectors, only then | Not needed if the screw already takes both wires. |
| Know whether the leaf is open | Not in this list | SNZB-04P and Aqara P2 are indoor. A limit output is wired only if the manual names it. |
| Stay without a server | The same Shelly, in its app | No Home Assistant history. |
Wire it and try it
The eight steps are case A: Home Assistant already there, one board, one button input. Stop if the expected observation does not happen. Keep the way clear at every test.
Step 1. Read the manual before you open the cabinet
The phone only repeats a button the board already has. If that button is not there, this project stops.
Where: The control-board manual, not the lid.
- Find the wall-button input: start, step-by-step, PP, or the local equivalent. The drawing then shows two terminals.
- If open and close are two separate inputs, one module replaces only one button. The steps below are for a single input, the one your existing button already uses.
- Find the photocells, the stop input and obstacle detection. The relay does not land on those terminals.
- If the gate is radio-only, with no button terminals, do not invent an input on the board.
You can name the two terminals the module will copy.
Check: With the way clear, one press starts the gate and a second press during travel stops it.
Step 2. Switch off the circuit, then open the cabinet
The button is often a dry contact, but the cabinet holds the motor mains.
Where: The consumer unit, then the cabinet. Fixed mains wiring is done dead, by someone qualified for that work.
- Identify the gate breaker. If it is not labelled, do not guess.
- Switch it off. The button and the warning lamp must stop responding.
- Open the cabinet and photograph the terminal strip before you move a wire. Leave the motor, earth and photocell wires where they are.
- If you cannot prove the mains terminals are dead, stop at the photograph. Someone who can do that check connects the module supply.
The photo shows two button terminals, separate from the motor supply.
Check: No motor or photocell wire has been removed.
Step 3. Name the module terminals before you tighten them
The Mini Gen3 and the Plus 1 both have a potential-free contact. Their supplies are not the same. Mixing them puts mains onto the gate board.
Where: The module on a table, with the Shelly page open.
- Plus 1: I and O are the contact. Live and neutral, regulated 12 V, and 24–48 V are three different supplies. Shelly’s European page puts 12 V DC ±10 % on the 12 V terminal and 24–48 V DC on the + terminal. Do not put 24 V on the 12 V terminal. Torque is 0.4 N·m. Ambient range is −20 °C to 40 °C, humidity 30 to 70 %.
- Mini Gen3: I and O are the contact, L and N are a 110–240 V supply only. It has no 12 V input. The same ambient limits and 0.4 N·m torque are the figures already used for the garage-door guide on this site.
- SW is an input for a switch on the module. The gate button does not go there.
- A cabinet in full sun or in the rain is outside that sheet. Keep the module in a dry enclosure, not on the post.
You can point to I, O and the supply you chose, and you know which module is in the box.
Check: No button wire is planned for L, N, SW, 12 V or +.
Step 4. Wire I and O, and power the module on its own
The existing button has to keep working. The module sits beside it.
Where: Dead: the two button terminals, then the module supply.
- Two conductors run from I and O to the two button terminals, in parallel with the wires already there. Polarity does not matter. Those two wires do not carry the motor mains.
- Do not put live or neutral on those terminals. Do not put the motor between I and O. The Plus 1 page talks about a load circuit: that is not the gate motor.
- Power the module on its own circuit. Plus 1: 110–240 V on L and N, or regulated 12 V, or 24–48 V, only after you measure the accessory output. Mini Gen3: 110–240 V on L and N only. Fixed mains wiring is electrical work.
- If a terminal cannot take two conductors, a lever connector joins them. Otherwise you do not need one. Close the cabinet before you switch the breaker back on.
The cabinet is closed, the breaker is on, nothing is hot.
Check: The original button still starts and stops the gate, way clear, before any test from the phone.
Step 5. Set a short pulse, then try once
Without a timer the contact can stay closed. The board then sees a finger that never leaves the button.
Where: 2.4 GHz Wi-Fi, the Shelly page, gate area clear.
- Both modules are 2.4 GHz only. A 5 GHz-only network will not see them. At the cabinet, the module page has to open. If it does not, the Wi-Fi at the gate is too weak.
- Turn on auto-off for the output, around 0.5 s. The label depends on the firmware. It is the output timer.
- Reserve the module’s address in the router.
- One pulse, nobody in the way. If nothing moves, try 1 s. If the gate starts and stops at once, the pulse is too long.
- Shelly Cloud can stay off. Home Assistant talks to the module on the local network.
The relay clicks briefly, the gate starts, and a second try during travel stops it.
Check: The original button and the original remote still work.
Step 6. Add the module to Home Assistant without inventing the leaf position
Home Assistant should see a switch that sends the pulse. With this shopping list it does not know whether the gate is open.
Where: Settings, Devices and services, then Scripts.
- Add the Shelly integration. If it does not appear, enter the reserved address. Documentation: home-assistant.io/integrations/shelly.
- Copy the switch entity id from Developer tools, States.
- Create a script: turn on, wait 0.5 s, turn off, mode single. The example further down was not run on a site install.
- Leave auto-off in the Shelly. It releases the contact even if the script stops halfway.
- Do not add an “open gate” template until you have a sensor whose states you have checked. An indoor window sensor on the leaf is not that sensor.
Running the script once, way clear, does the same movement as the button.
Check: The script does not start by itself when you use the remote.
Step 7. Decide about open or closed without an indoor sensor outdoors
Without a sensor the phone knows it sent a pulse. It does not know whether the leaf moved. The SNZB-04P and the Aqara P2 do not fix that on a gate.
Where: The control-board manual, then the sensor sheets.
- Sonoff’s SNZB-04P page keeps it indoors, with a gap of 20 mm at most. An outdoor leaf in the rain is outside that sheet.
- The Aqara Door and Window Sensor P2 speaks Thread and Matter, not Zigbee. Aqara keeps it indoors. It does not pair with a Zigbee dongle, and it does not go on the gate.
- Some boards have a limit-switch output as a dry contact, drawn in the manual. That is the only state path to follow here, and only if the drawing names it.
- The reed in the ESP32 profile is not sold as weatherproof. It stays somewhere dry, if its own sheet allows it.
You know whether the board manual offers a state output, or whether the phone will only show the pulse.
Check: No window-sensor magnet is stuck on the leaf.
Step 8. Ask for confirmation, and do not close the gate by itself
An automatic close can trap a person, an animal or a vehicle. Photocells reduce that risk. They do not remove it.
Where: The dashboard, then automations.
- A button card with confirmation, on the pulse script. The text asks whether you really mean to operate the gate.
- From outside the house, use remote access you already trust. Do not forward port 8123. The official note is home-assistant.io/docs/configuration/remote.
- A “left open” notification is possible only once a real state sensor exists. It contains no close action.
- No close at a fixed time, when you leave, or “after the car has passed”.
The phone asks for confirmation before it sends the pulse.
Check: A cancelled tap does not move the gate. The Shelly history shows no command at the moment of a notification alone.
Photocells still own the travel
If the gate will not close, clean and line up the photocells. Do not bridge their wires to finish the Shelly test. A pulse during travel stops the movement. Another pulse is needed to start again. The module cannot tell open, opening and closing apart.
Check that it really commands the gate
- The original button still starts and stops the gate.
- One Shelly pulse does the same gesture, way clear.
- A cancelled confirmation does nothing.
- Dirty or blocked photocells still prevent closing.
- No motor wire is on I or O.
When it does not start
Nothing moves: the pulse is too short, I and O are not on the button terminals, or Wi-Fi does not reach the cabinet. The gate starts then stops: the pulse counts as two presses, shorten it. The wall button is dead: the module is in series, or an original wire was removed. Switch off and use the photo.
The module stays dark on a “12 V” output: measure first. Many boards are 24 V. The Mini Gen3 accepts neither. The Plus 1 accepts 24 V only on the terminal meant for it, not on the 12 V terminal.
Go further
The pulse script replaces the entity id. It was not run here. Auto-off in the Shelly stays on.
alias: Gate pulse
mode: single
sequence:
- action: switch.turn_on
target:
entity_id: switch.replace_shelly
- delay:
milliseconds: 500
- action: switch.turn_off
target:
entity_id: switch.replace_shelly
Common questions
Can the Shelly switch the motor mains to open the gate?
No. The motor, the limits and obstacle detection stay with the control board. I and O copy the button for a short moment. The module supply is another circuit.
Can the Shelly Plus 1 run from the board’s 12 V or 24 V?
Only after you measure, and only on the matching terminal. Shelly’s Plus 1 page states 12 V DC ±10 % on the 12 V terminal and 24–48 V DC on the + terminal. 24 V does not go on the 12 V terminal. The Mini Gen3 is 110–240 V on L and N, not 12 V.
Do you need a Zigbee coordinator?
Not for this list. The command is Wi-Fi. The indoor Zigbee sensor is not used on an outdoor leaf, so the dongle has nothing to pair here.
Why not the Aqara P2 on the gate?
It is a Thread and Matter sensor, and Aqara keeps it indoors. It does not pair with a Zigbee dongle, and an outdoor leaf is outside that use.
Can the gate close by itself in the evening?
Not in this guide. An unwatched pulse can trap whatever is in the way. Photocells do not make that scene acceptable here.
Sources
- Shelly Plus 1 documentation — I, O, 12 V, 24–48 V, ambient range, 0.4 N·m.
- Shelly 1 Mini Gen3 product page — compact module, 110–240 V supply.
- Shelly integration in Home Assistant
- Home Assistant remote access — do not expose port 8123.
- SONOFF SNZB-04P manual — indoors, 20 mm gap: not used on the leaf.
- Aqara Door and Window Sensor P2 — Thread and Matter, indoors: not used.
- ESPHome tutorial: dry contact and reed