Gate automation · DIY smart control

How to wire a smart relay to a Nice M-BAR gate — yourself, step by step

A gate on the Nice M-BAR board starts listening to your phone without replacing the drive: a smart relay (Remootio or Shelly) goes onto the button input — a dry contact. Here: which two terminals, how to set it up and what not to do.

RELAY
How it works

The relay works in parallel with the button — the board stays as is

The Nice M-BAR board has a button input — a dry contact. A smart relay «presses» it from the app just like the wall button. Photocells, force limiting and remotes stay in place and keep working.

Gate type
barrier
Board
M-BAR
Drives
M3BAR, M5BAR, M7BAR, L9BAR
Bridge
(1) (2) ↓
Labels
named terminals (BlueBus)
Supply
24 V
1

DIY: 6 steps and the common mistakes

  1. Switch off the drive (breaker in the panel). Open the board cover and find the command terminal block.
  2. Find the button terminals (1)(2) by the labels on the board — not from memory, board revisions differ.
  3. Connect the two wires of the relay dry output to those two terminals. Polarity does not matter (dry contact).
  4. Relay power: Remootio — from the board 12–24 V terminals or USB; Shelly — per its model. Never from the command terminals.
  5. In the app: output mode «pulse / momentary» 0.5–1 s. Connect the status sensor if you have one.
  6. Power on, test from the button, then from the app. Photocells and force limiting must work as before.
  • ❌ Mistake: a relay with a 230 V output (power relay) on the command input — the board burns.
  • ❌ Mistake: bridging command to STOP or removing STOP/PHOT jumpers — the gate stops moving or the fuse blows.
  • ❌ Mistake: relay output left «on» — the board sees a held button and ignores further commands.
2

Nice M-BAR terminals — which two

The relay bridges (1)(2) — points (1) and (2) in the drawing. A short pulse = one command (open → stop → close). Nice terminals are named terminals (BlueBus).

Smart relaydry output · pulseoutoutWi-Fi / BT → phonesmarteg.lvsmarteg.lvOpen ▲Close ▼Setdisplay · menuL1L2L3L4L5L6L7L8fuse2 ANiceM-BAR / L-BARM3BAR · M5BAR · M7BAR · L9BARradio24V24 V accessoriesLoop1Loop2Master/Slave230 V · electricianmotorsencoder / limit switchesAerialLightFlashOGIBluebusphotocellsStopNCdo not touch (NC)SbScommandsOpenCloseHPSbS12
Nice M-BAR — real board layout, redrawn from the official manual · (1) SbS + (2) SbS · source: Nice IS0647A03EN §4.2.1 Fig. 40 / Table 4 · SVG ↗
3

Setup: pulse + status

Wire the relay in parallel with the existing button — the same two terminals. Button and remotes keep working.

  1. Relay output in momentary / pulse mode (0.5–1 s), like a button press. Not «permanently on».
  2. App command → relay click → the gate moves just like from the button.
  3. Open / closed status: limit switch or magnetic sensor → relay sensor input → state visible in the app (Remootio ships with a sensor).
  4. Scenes: geofence opening, schedule, voice, camera-at-gate linkage.
3b

How to power the relay — 24 V AC is not 24 V DC

4

Always open / always close

Separate OPEN and CLOSE blocks exist: an extra relay across the two contacts of the OPEN block always opens, across the two contacts of the CLOSE block always closes. Several relays can coexist — for example open on arrival plus close on a schedule.

4b

Full control — multi-channel relay

One multi-channel relay gives separate app buttons: Ch1 — close, Ch2 — open, Ch3 — stop. Each channel goes across the two contacts of its own command block.

Smart relaydry output · pulseCh1Ch1Ch2Ch2Ch3Ch3Wi-Fi / BT → phonesmarteg.lvsmarteg.lvOpen ▲Close ▼Setdisplay · menuL1L2L3L4L5L6L7L8fuse2 ANiceM-BAR / L-BARM3BAR · M5BAR · M7BAR · L9BARradio24V24 V accessoriesLoop1Loop2Master/Slave230 V · electricianmotorsencoder / limit switchesNCAerialLightFlashOGIBluebusphotocellsStopstopSbSOpenCloseHPSbS
Multi-channel smart relay → dedicated commands · each channel across the two contacts of its own block
5

Remootio or Shelly — which to pick

Wi-Fi / BTradioREMOOTIO 3PWRLEDresetLEDfuseABCDOUTPUT1OUTPUT2+EFGHINPUT1INPUT212relay output → boardfreepower input5–32 V DC12–24 V AC−: 0 V / COM+: 12–24 Vstatus sensorbuttonWi-Fi / BT → phoneSmart relaydry output · pulseOUTPUT1 A·B → (1)(2)OUTPUT2 C·D · freepower input · 5–32 V DC · 12–24 V ACINPUT1 E·F · status sensorINPUT2 G·H · doorbell button54 × 54 × 20 mmsmarteg.lvsmarteg.lv
Remootio 3 · (1)(2) → both contacts of the SbS block
Shelly1 Gen3OISW12V+LN+16A/240V~10A/30V⎓110–240V~24–48V⎓ · 12V⎓dry output · pulseI–L not bridged12relay output → boardnot usedpower input230 V · electricianpower input230 V · electricianL · N12 V DC+ → 12V · − → L24–48 V DC+ → N · − → Lone power source onlyGen4: same terminalsO · I · SW · 12V · L · NSmart relaydry output · pulseWi-Fi / BT → phone42 × 37 × 16 mmsmarteg.lvsmarteg.lv
Shelly 1 Gen3 / Gen4 · (1)(2) → both contacts of the SbS block
OXTT210GWi-Fi · TuyaresetLEDS1S2LNS3S412relay output → boarddry output · pulsepower input230 V · electrician100–240 V ACstatus sensormagnet · 5 m cableSmart relaydry output · pulseWi-Fi / BT → phoneS1 · S2 → (1)(2)L · N · 230 V · electricianS3 · S4 · status sensor43 × 39 × 22 mm · IP20smarteg.lvsmarteg.lv
OXT T210G (Tuya) · (1)(2) → both contacts of the SbS block
Easiest

Remootio 3

Made for gates: two dry outputs, status sensor included, powered from the drive board.

  • Keys for family and guests, revocable
  • Geofence auto-open, log
  • Works without internet, encrypted
  • HomeKit / Alexa / Google / Home Assistant
Cheapest

Shelly / 4-channel dry relay

A universal Wi-Fi or Zigbee relay in dry-contact mode. Cheap, lives in Home Assistant and Tuya.

  • Separate open / close / stop
  • Schedules and scenes
  • Sensor and keys are on you

Relay and modules for this board:

6

Safety and the manual

FAQ

Does Shelly fit the Nice M-BAR board?

A model with a dry (potential-free) contact output does — for example Shelly Plus 1 in detached mode or a 4-channel dry relay. Models switching 230 V must not go on this input.

Why must the relay be in pulse mode?

The input works step-by-step: one short contact = one command. If the contact stays closed, the board sees a held button and ignores further commands.

How do I see in the app whether the gate is closed?

Put a magnetic sensor on the gate (included with Remootio) or use the drive limit switch and connect it to the relay sensor input. The app then shows the real position, not the last command.

Will the remote and the button keep working?

Yes. The relay sits in parallel, nothing is disconnected. All factory inputs keep their function.

What can I do myself and what not?

The low-voltage relay connection is simple. The 230 V side, force-limit check and commissioning are for a certified installer. If in doubt, call one.

Rather not do it yourself? We will

We pick Remootio or a relay for the Nice M-BAR board, wire it to the dry contact, set up status and scenes.

smarteg.lv · Gate automation · Smart control · Gate automation DIY planning guideParts of this content may be AI-assisted. Terminal data comes from the official drive manual.
Loading...
Back to top