Timber SAV · Build & Wiring Reference

Greg LeFevre Gate Phone Control

Adds an Open button to the client's iPhone for the existing Viking gate operator; the board's own 15 second Timer closes it. One relay on the gate network. No subscription. Roughly $327 in parts.

24 Aug 2026 · Source: _artifacts/greg-lefevre-gate-control-build.html

Two things must be confirmed on site before anything is cut or ordered. Where the 120VAC for the new enclosure originates, and the conduit run length between enclosures.
Back to overview

What It Does

  • One Apple Shortcut pinned to the client's iPhone home screen, Open Gate. No new app to learn.
  • A tap closes a relay contact for half a second, which is electrically identical to pressing the Guard Station pushbutton the Viking board already expects.
  • The gate closes itself. The Viking board's own auto-close Timer is set to about 15 seconds, so there is no Close button and nothing for the client to forget.
  • Works from anywhere. The Shortcut tries the relay's local IP first and falls back to Shelly Cloud, which is free and has no subscription.
  • Nothing about existing gate operation changes. The RF remote, the free-exit loop, the photo beams and edge sensors all continue to work exactly as they do now, and none of them route through any of this.
  • The RF clicker remains primary. The phone is convenience. An internet outage means "use the clicker", not "locked out".
  • No position feedback in this design. The Reolink camera at the gate is the position feedback.
Back to overview

Bill of Materials

Shelly’s US store, in stock

ItemSpecWherePrice
Shelly Pro 1 UL-Certified1-phase, 1-channel, potential-free output (dry contacts), 16A, DIN rail, Wi-Fi + wired Ethernet + Bluetooth, 110-240VAC, 5 year warrantyShelly US store$69.99

Confirmed in stock as of 24 Aug 2026. Free shipping over $50, ships from the US.

Amazon

ItemSpecWherePrice
QILIPSU enclosureB08ZRR2DJX, 16.1 x 12.2 x 7.1 in external (410x310x180mm), grey, ABS, IP67, mounting plate and wall brackets includedAmazon$61.99
35mm top-hat DIN rail, 12 in-Amazon~$8 est
Breather ventZGLUZP M12x1.5, IP68, black, 4-pack (2-pack $4.99); only one is needed, the rest are shop spares. Same thread as the part it replaces, a higher ingress rating, black to match the painted enclosure, and cheaper for four than that part was for one.Amazon$6.88
PG9 stainless cable glands, two 3-packstwo used for the Cat6 entries, remainder spareAmazon~$16 est
Krylon Fusion All-In-One, gloss black-Amazon~$10 est
Stainless machine screw + nylock nut assortmentM3 to M5, mixed lengthsAmazon~$12 est
18 AWG bootlace ferrule kitassorted sizesAmazon~$13 est
Self-adjusting ferrule crimperIWISS or equivalent, AWG 23-10Amazon~$22 est
Weatherproof padlocklaminated or covered shackleAmazon~$15 est
Write-on wire markers / cable label pack-Amazon~$8 est

Home Depot / local

ItemSpecWherePrice
Liquidtight flexible nonmetallic conduit1/2 in x 20 ft, 2 straight fittings included, Southwire Ultratite model 59714701Home Depot$28.00
Liquidtight right-angle connectoronly if the Viking cabinet entry needs an angled approach rather than straightHome Depot / local~$9 est
WAGO 221-2401 lever nuts, 10-pack-Home Depot$9.97
Stainless hex lag screws5/16 x 2 in, qty 6, lag into a fence post or rail, not just fence boardsHome Depot / local~$15 est
Paint prep consumables220-320 grit sanding pad, isopropyl alcohol, painter's tapeHome Depot / local~$15 est
Silicone or butyl sealantsmall tubeHome Depot / local~$9 est
18/2 CL2 thermostat wireby the foot, ~$0.25/ft, length site-measuredHome Depot / local~$5 placeholder

Already on hand or already ordered DO NOT REBUY

ItemNote
Cat6from the trueCABLE 1000 ft box. Shop-make both short patches, surge protector to switch and switch to Shelly. Buying premade shielded patch cables wastes stock already paid for.
Ideal 85-368 shielded feed-thru plugswith the Ideal FT-45 crimper
8 ft ground rod, acorn clamp, 10 ft #6 bare copperalready on the client's August order, about $45

Tools, confirm you own these

  • Step bit or unibit up to about 1-3/8 in. Covers the PG9 holes, the M12 breather and the 7/8 in liquidtight holes in one tool.
  • Drill/driver
  • Caulk gun
  • Digital multimeter, for the commissioning continuity checks

Grand total: about $327. About $177 is confirmed against live listings, the relay price now included, and the remaining $150 is commodity-hardware estimate.

Every line marked "est" needs a checkout-page confirm before the order goes in, because Amazon blocked automated price extraction.

Buy the UL-Certified listing specifically. Shelly's US store has both a plain “Shelly Pro 1” page and a “Shelly Pro 1 UL-Certified” page at /shelly-pro-1-ul-certified; only the latter carries the UL badge, and the two are the same price.

  • Do not substitute the Shelly Pro 1PM, which adds power metering and is not what this needs.
  • Do not substitute anything from the Shelly Wave line. It is Z-Wave, has no Ethernet or Wi-Fi, requires a separate hub, and would not reach 250 yards through trees.
  • A non-UL EU board circulates on eBay and marketplaces for around $47. It is electrically the same but carries CE self-declaration rather than third-party listing, and it does not belong in a paying client's gate enclosure.
The Ideal FT-45 is an RJ45 modular-plug crimper and will not crimp ferrules. Completely different die profile, RJ45 versus hex or square indent. This job has no ferrule crimper on hand, which is why one is on the list above. It is a tool purchase that serves every future job, not a consumable for this one.

Confirm on arrival

One thing could not be confirmed from any listing.

  1. The UACC-ETH-SP-Pro ground lug terminal type, assumed to be a set screw accepting bare #6 copper directly.
Back to overview

Wiring

Enclosure fit, confirmed

Dimension
Mounting plate (the real mounting area)371 x 271 mm, hole spacing 324 x 224
Box interior, overall384 x 284 mm
Box interior, clear between corner bosses359 x 259 mm
Corner boss spacing329 x 230 mm, 4x M5
Depth180 mm external, 166 mm internal, 101 mm base, plate 4 mm thick
USW-Flex-Utility footprint249 x 218 x 60 mm
Free strip beside the Flex-Utility122 mm wide x 271 mm tall
Shelly Pro 1 UL94 x 19 x 69 mm ±0.5 (H x W x D), 69 mm projection off the rail
Width margin beside the Shelly28 mm

From QILIPSU's dimension drawing, tolerance ±2 mm.

The verdict is that it fits, and the 28 mm margin is the tightest number in the build. The surge protector at 91 x 61 mm stacks below the Shelly in the same strip; together they use roughly 80 mm of the 271 mm of available rail height. The Pro 1 footprint is confirmed from Shelly's own published specification at 94 x 19 x 69 mm ±0.5, identical to the two-channel Pro 2, so this margin holds as drawn.

Depth is a non-issue. The Shelly stands about 80 mm off the plate once you count the DIN rail and the 4 mm plate, against 166 mm of internal depth.

The perforated grid area is inset from the plate edges, so plan the Flex-Utility toward one end and expect to drill the solid plate margin for the DIN rail rather than assuming grid holes reach everywhere.

These dimensions are published only as an image inside the Amazon listing's photo carousel, never in text anywhere, which is why they took a manual look to obtain.

120VAC power (L/N) Cat6 / network data Relay output → Open + GND Ground bond, #6 bare copper New for this build Already ordered / existing Verify on site before landing OUTSIDE, ON THE POST NEW QILIPSU ENCLOSURE, PAINTED BLACK EXISTING VIKING VFLEX CABINET Loco5AC radio NanoStation 5AC Loco, on UB-AM mount INS-3AF-O-G converter at antenna ALREADY ORDERED 8 ft ground rod + acorn clamp + #6 bare copper ON HAND / ORDERED Reolink RLC-811A gate camera, PoE ALREADY ORDERED NEW QILIPSU enclosure, painted black UACC-ETH-SP-Pro 20kA Ethernet surge protector GND lug, ground bond lands here ALREADY ORDERED USW-Flex-Utility ALREADY ORDERED USW-Flex switch P1 → uplink P2 → camera P3 → Shelly LAN 3 SPARE PORTS 60W PoE adapter powers the USW-Flex ALREADY ORDERED Shelly Pro 1 UL UL-Certified · potential-free dry contact · 12in DIN rail L / N supply terminals Output → Open + GND LAN port, data only, not PoE NEW VERIFY SILKSCREEN LABELS ON SITE WAGO 221-2401 120VAC splice feeds adapter + Shelly L/N NEW 120VAC SUPPLY origin TBD, confirm on site (landing blocker) Breather vent ZGLUZP M12x1.5 · lowest point, facing down NEW PG9 gland PG9 gland PG9 gland Liquidtight connector, 120VAC in Liquidtight connector, 18/2 to Viking OUTPUT → OPEN + GND EXISTING Viking VFLEX cabinet Guard Station terminal bank Open Stop Close GND existing OEM terminals, unchanged
Solid outline = new for this build. Dashed outline = already ordered or existing equipment. Wire color identifies the circuit, not the equipment's age: red is 120VAC, blue is Cat6, teal is the relay output (Open), copper is the ground bond. Nothing here changes the Viking board's own Guard Station wiring; the Shelly's relay lands on the same two terminals an Open pushbutton would.
Why there is no Close wiring. The Viking board's own auto-close Timer, set on site to about 15 seconds, closes the gate through the board's normal pre-warning and entrapment-protection logic, which is exactly what that logic exists for. Wiring a remote Close button would give the client the option to close a gate he cannot see; the board's own Timer never gives him that option. This is a safety improvement over a remote Close button, not just a simplification.

Terminal-by-terminal

Source deviceSource terminalDestination deviceDestination terminalConductorNotes
120VAC supplyL / NWAGO lever nuts (in enclosure)in120VAC, 2-conductor + groundOrigin must be confirmed on site, landing blocker
WAGO lever nutsout, leg AUSW-Flex-Utility 60W adapterAC input120VACPowers the switch
WAGO lever nutsout, leg BShelly Pro 1 ULL / N supply120VACMains-referenced supply only
Loco5AC radio (via INS-3AF-O-G at antenna)Ethernet outUACC-ETH-SP-Proline sideCat6Uplink to the house. Enters enclosure through PG9 gland
UACC-ETH-SP-Proprotected sideUSW-Flexport 1Cat6-
USW-Flexport 2Reolink RLC-811APoE inCat6PoE. Camera exits enclosure through PG9 gland
USW-Flexport 3Shelly Pro 1 ULLANCat6Data only, short patch. Shelly is mains powered, not PoE
Shelly Pro 1 ULOutput (verify silkscreen)Viking VFLEX terminal bankOpen18/2 conductorIn 1/2in liquidtight conduit
Shelly Pro 1 ULOutput (verify silkscreen)Viking VFLEX terminal bankGND18/2 conductorIn 1/2in liquidtight conduit
8 ft ground rodrodUACC-ETH-SP-Proground lug#6 bare copperBond shield at the grounded end only. Enters enclosure through PG9 gland
Never wire anything to the Shelly's SW1 or SW2 inputs. They are line-voltage referenced, 110-240VAC, not dry-contact sensing. This design uses no inputs at all. Landing a low-voltage loop there will damage equipment.
Bond the cable shield at the grounded end only. The surge protectors and the ground rod only work on shielded cable; on unshielded cable they are decorative.
Confirm the exact silkscreen labels on the Shelly's output terminals against the device itself before landing conductors.
Back to overview

Build Steps

  1. Paint the enclosure. Scuff 220-320 grit, degrease with isopropyl, shoot Krylon Fusion gloss black, mask the gasket, sealing lip, latches and hinge pins, cure fully before any electronics go in. Painting is the UV fix for ABS, not a cosmetic step, because UV degradation is a surface effect. The sanding pad, isopropyl alcohol and painter's tape are now on the Bill of Materials, not assumed shop stock.
  2. Mount the DIN rail and the Flex-Utility to the QILIPSU's included mounting plate, confirmed to be a perforated grid plate with through-bolting holes available across the grid area. Flex-Utility toward one end; DIN rail in the 122 mm strip beside it; surge protector below the Shelly, near the uplink cable entry and the ground point. The grid is inset from the plate edges, so expect to drill the solid plate margin for the DIN rail rather than assuming grid holes reach everywhere. The Flex-Utility's own hardware, 4 drywall anchors plus 2 security screws, is wall hardware and wrong for a backplate; use machine screws and nylock nuts instead. The same fastener class covers the DIN rail and the UACC-ETH-SP-Pro, which mounts on 38mm hole spacing, M3/M5, screws not included.
  3. Drill and fit the enclosure entries. Uplink Cat6 and camera Cat6 each take a PG9 gland. The 18/2 run to the Viking cabinet and the 120VAC supply each take a liquidtight connector, not a gland. Ground conductor takes a gland or a lug through a drilled hole, installer's call. Breather vent: drill 12 mm, not 1/2 in. A 1/2 in bit cuts 12.7 mm, slightly oversize for M12; the O-ring and flange will usually still seal it, but 12 mm is correct. Mount it at the lowest point, facing down or shielded from direct rain impingement. It equalizes pressure so the enclosure does not pump moisture past the gasket on every temperature swing, and it is not meant to take running water head-on.
  4. Mount the enclosure to the fence using the included wall brackets, lagged into a structural member, a post or a rail, not just the fence boards. A loaded enclosure hanging off pickets will work itself loose. Drip loop on every cable entering from above.
  5. Run and terminate the conduit between the enclosures. A 1/2 in liquidtight connector threads into either a spare Viking knockout or a drilled 7/8 in hole with a locknut, so a missing knockout only means a step bit is needed.
  6. Land the 120VAC with WAGO lever nuts, feeding both the 60W adapter and the Shelly's L and N.
  7. Land the dry contact at the Viking end, two conductors: one on Open, one on GND. The Close terminal is left unused; the Viking board's own 15 second Timer closes the gate on its own. Nothing else in the Viking cabinet changes.
  8. Patch the Shelly to a spare USW-Flex port.
  9. Ground rod and bonding.
Back to overview

Configuration

Shelly

  • Give it a DHCP reservation on the UDR7 so the LAN address is stable. The LAN-first Shortcut depends on it.
  • Enable auto_off with auto_off_delay of 0.5 seconds. This is Shelly's own published value for garage and gate pulse simulation. The setting lives on the device, not in a cloud scene, so it stays correct if a call is duplicated or arrives late.
  • Default OFF.
  • Enable Shelly Cloud.
  • Check whether local RPC authentication is enabled. If it is, the LAN Shortcut needs a Basic Auth header. Confirm on site.
  • One Shelly Cloud account per client site, Timber SAV holds the login. The Shelly Cloud auth key is ACCOUNT-LEVEL, not per-device, so a leaked key reaches every Shelly on that account. Never share one account across client sites.

The call

Local, plain GET, no body.

http://<gate-shelly-ip>/rpc/Switch.Set?id=0&on=true&toggle_after=1

Cloud, POST with header Content-Type: application/json.

https://<server-shard>/v2/devices/api/set/switch?auth_key=<AUTH_KEY>

{"id":"<device-id>","channel":0,"on":true,"toggle_after":1}

The auth key AND the regional server shard both come from the Shelly app under User Settings, Authorization cloud key, shown on the same screen. The device ID comes from Device, Settings, Device Information.

Apple Shortcut

One shortcut, "Open Gate", pinned to the home screen. Get Contents of URL against the LAN address first, and on failure fall back to the cloud POST, then show a notification reporting the result.

The notification matters: a fire-and-forget Shortcut that silently fails is the worst outcome for a non-technical client, because his phone has signal and everything else works, so a failure looks like the install broke.

Network

Gate post on its own VLAN. Out to internet allowed. No path to the house LAN in either direction. Verify WPA2/AES is actually enabled on the Loco5AC link at commissioning rather than assuming it; airMAX point-to-point gear commonly ships with encryption off.

Back to overview

Commissioning & Handover

Verify on site

  • UL 325. Actuation from out of line of sight is explicitly permitted provided two independent entrapment-protection means are present and functional and every trigger still runs the board's own timing and reversal logic. Wiring across Open/GND is electrically identical to the pushbutton the board expects, so it defeats nothing. What must be verified is that the existing photo beams and edge sensors are landed on the board's MONITORED entrapment inputs, not merely present. That is the single fact that decides compliance and it is a gate-technician check.
  • Confirm a momentary Open while the gate is already open does nothing harmful, and confirm the board's 15 second auto-close Timer actually closes the gate on every cycle without a stall.
  • Confirm WPA2/AES on the radio link.
  • Confirm the relay fails open-circuit so loss of power, Ethernet or cloud simply reverts the gate to the RF remote and loops with no stuck input.

Client handover sheet

  1. The clicker is primary. If the internet is down, use the clicker.
  2. Press Open and walk away. The gate closes itself about 15 seconds later. There is no Close button, because the gate watches its own sensors while closing, which is safer than closing something you cannot see.
  3. Here is a spare RF remote.

Thermal note

The Shelly's +40C ceiling is still the tightest spec in that enclosure, against the USW-Flex at 55C and its adapter at 60C. The enclosure mounts on a northeast-facing wood fence, so it takes only weak morning sun when ambient is coolest and sits in shade through the 2 to 5pm peak, the window that would otherwise have threatened the Shelly's ceiling. No shade structure is required. In winter the nested boxes trap the adapter's waste heat, which helps hold the Shelly above its -20C floor.

Back to overview

Decisions

Option consideredReason rejected
Apple Home / HomeKitNeeds a bridge box, because Matter only added a Closures device type in spec 1.5 (Dec 2025) with unproven Apple rendering, and no Shelly SKU has both wired Ethernet and Matter. Would have meant an Apple TV plus a bridge appliance, about $430 and a permanent remote support obligation.
Apple-certified garage controllers (Meross, iSmartGate, ratgdo, Tailwind, Konnected)All Wi-Fi only, all indoor-rated, all built for a single-toggle garage button rather than Viking's separate Open/Stop/Close, and there is no AP at the gate.
UniFi UA-Hub-Gate$305, needs 802.3bt while the gate switch is af/at, and drags a whole access-control platform plus a second app onto the client's phone for one gate and one user.
LPR auto-openThe RLC-811A does vehicle detection, not plate reading; real LPR needs a dedicated plate camera plus an NVR or paid OCR, on a driveway that hits canopy at 30 yd.
Position feedback from the Viking maglock relayThe Shelly's SW inputs are line-voltage referenced, so reading it would put mains through a low-voltage aux contact.
Altelix DIN-rail enclosure at $384.99The DIN-rail-branded category carries a large premium; a plain gasketed NEMA 4X box plus $5 of rail is the same result.
Cloudflare Worker credential intermediarySolved a problem that one Shelly account per client site already handles at this scale.
A remote Close buttonThe Viking board's own 15 second auto-close Timer makes it redundant, and a Close the operator cannot see is a liability the board's own entrapment logic already handles better.