You have just spent hours organizing a subpanel. The conduit runs are parallel, the neutral bus is pristine, and you snap a row of smart relays onto the standard DIN rail. You swing the heavy steel deadfront door shut, tighten the latch screws, and open your Home Assistant dashboard—only to watch every single smart breaker relay drop offline one by one. Or worse, six months into operation, a continuous 14-amp load welds a cheap internal relay contact shut, keeping a pool pump running dry while heating the relay enclosure to 85°C inside an unvented box.
Wiring smart relays directly into electrical subpanels is the absolute gold standard for clean home automation. It eliminates messy wall-box smart switches, hides control gear out of sight, and centralizes power monitoring. But an main service panel or subpanel is the harshest environment in smart home automation: it is a metal enclosure that attenuates wireless signals like a Faraday cage, packed tight with high-voltage conductors generating localized magnetic fields and thermal buildup.
Choosing between the Shelly Pro Series (such as the Pro 1PM, Pro 2PM, and Pro 4PM) and Sonoff’s DIN-mountable offerings (such as the Sonoff POW Elite and DUALR3) isn’t just a matter of price. It is an engineering choice between industrial-grade continuous duty and consumer-grade convenience. Below is the direct breakdown of how these two hardware families perform under real-world electrical loads.
For high-reliability subpanel installations, the Shelly Pro series is superior due to hardwired RJ45 Ethernet, UL 94-V0 flame-retardant enclosures, zero-cross switching, and true dry contacts. Sonoff (POW Elite/DUALR3) works well for budget Wi-Fi retrofits on light loads, but lacks Ethernet reliability and industrial-grade thermal isolation inside sealed steel panels.
Why Do Wi-Fi Smart Relays Drop Offline Inside Steel Panels?
The primary point of failure for panel-mounted smart switches isn’t software—it is physics. A standard NEMA 1 steel enclosure or flush-mount load center acts as a highly effective Faraday cage. Sheet steel (typically 14 to 16 gauge) attenuates 2.4 GHz RF signals by anywhere from 20 dB to over 35 dB. When you close a metal panel door over a Wi-Fi relay, the Signal-to-Noise Ratio (SNR) collapses. The relay may maintain a connection while the door is open for testing, but immediately enters an offline boot-loop once sealed shut.
Sonoff DIN solutions, including the POW Elite and DUALR3, rely exclusively on 2.4 GHz Wi-Fi (powered by ESP32 or ESP8266 silicon). To maintain connectivity inside a closed metal panel, you are forced to mount an external Wi-Fi access point within a few feet of the subpanel, install a plastic load center door, or retrofit external SMA antenna pigtails—which voids safety compliance.
The Shelly Pro series solves this foundational flaw by incorporating a dedicated 10/100 Mbps RJ45 Ethernet port directly into the DIN module. Running a single shielded Cat6 cable into the low-voltage side of your subpanel completely bypasses wireless attenuation. Shelly Pro devices can simultaneously operate as local Wi-Fi range extenders and Bluetooth gateways, but their core control logic, power reporting, and Home Assistant telemetry travel over zero-latency, noise-immune copper copper ethernet. For critical loads like sump pumps, server rack circuits, or heating elements, hardwired Ethernet is the non-negotiable threshold for professional installations.
How Do Shelly Pro and Sonoff Handle Inductive Loads and Thermal Isolation?
Switching resistive loads (like incandescent bulbs or basic space heaters) is easy. Switching inductive loads—such as HVAC compressor contactor coils, pool pumps, high-bay LED driver banks, and motorized gate operators—is where budget relays fail catastrophically. Inductive loads create two severe stresses on panel relays: extreme inrush currents during turn-on, and inductive voltage spikes (flyback voltage) upon turn-off.
When an LED driver bank energizes, inrush current can spike to 80 to 100 amps for several milliseconds. On standard relays, this micro-second arc melts the silver-alloy contact faces, permanently welding the relay in the “ON” state. The Shelly Pro series (specifically the Pro 1PM, 2PM, and 4PM) implements hardware-level zero-cross switching. The micro-controller monitors the AC sine wave voltage and energizes the relay contacts precisely at the zero-volt crossing point. This eliminates arcing, prevents relay contact welding, and extends relay contact lifespans tenfold under heavy capacitive or inductive loads. Sonoff modules do not offer zero-cross switching on their standard DIN lineup, making them susceptible to contact sticking when driving heavy LED arrays or inductive coils.
| Feature / Engineering Metric | Shelly Pro Series (1PM, 2PM, 4PM) | Sonoff DIN Line (POW Elite / DUALR3) | Practical Panel Impact |
|---|---|---|---|
| Network Connectivity | RJ45 Ethernet, 2.4 GHz Wi-Fi, BLE Gateway | 2.4 GHz Wi-Fi only (eWeLink / ESPHome) | Shelly maintains zero-latency control inside sealed steel enclosures; Sonoff risks RF dropout. |
| Enclosure Fire Safety | UL 94-V0 Flame-Retardant Flame-Safe Polycarbonate | ABS / PC Flame-retardant (V0 rated on specific SKUs) | Shelly meets strict commercial panel safety specs; lower thermal distortion risk under sustained loads. |
| Contact Architecture | Dry Contact options (Pro 1 / Pro 2) & Power-metered Wet Contacts | Wet Output (POW Elite) / Switchable Dry mode (DUALR3) | Shelly Pro 1/2 can safely switch 24VAC HVAC coils or garage triggers without line voltage bleed. |
| Arc Prevention | Hardware Zero-Cross Switching (PM models) | Standard random-phase contact engagement | Zero-cross prevents relay welding caused by high inrush current from LED drivers & pumps. |
| Thermal Cutoff Protection | Dual internal PCB thermistors per channel with auto-shutdown | Overload/Power cutoffs via software telemetry | Shelly provides hardware-level thermal protection before panel fires or wire insulation breakdown occur. |
| Local Logic & Scripting | On-device mJS JavaScript engine, webhooks, native MQTT | eWeLink webhooks (Stock) / Requires ESPHome flash for local logic | Shelly executes complex safety interlocks locally even if Home Assistant or the router crashes. |
Thermal management inside a crowded DIN panel is equally critical. When running a continuous 16-amp load through a DIN enclosure, internal relay resistance generates heat. The Shelly Pro series utilizes flame-retardant UL 94-V0 plastic housing and integrates continuous thermal tracking via dedicated internal PCB thermistors. If the internal component temperature crosses safety limits (typically 95°C), the device automatically disconnects the relay output and sends an emergency event payload via WebSocket and MQTT. Sonoff devices monitor power draw via their metering chips (like the CSE7761), but lack discrete, hardware-level thermal sensors directly monitoring the relay contact pads, relying instead on over-current trip settings configured in software.
Power Metering Precision, Dry Contacts, and Local APIs
Not all subpanel switching requirements involve switching standard 120V or 230V branch circuits. Modern smart panels frequently require control over secondary systems: 24VAC HVAC zone valves, low-voltage contactors, garage door triggers, or generator transfer signals. This requires dry contacts—volt-free switching terminals that are galvanically isolated from the relay’s own power supply.
The Shelly Pro 1 and Shelly Pro 2 provide true dry contacts. You can power the relay module itself from a standard 120V/230V mains breaker, while cleanly switching isolated 24V DC, 24V AC, or external signal lines without passing line voltage downstream. Conversely, the Sonoff POW Elite is strictly a “wet contact” device: the voltage applied to the supply terminals ($L_{in}$) is directly energized onto the output terminals ($L_{out}$) when switched. Wiring a wet contact directly into a 24VAC HVAC control board will instantly destroy the transformer and circuit board. While the Sonoff DUALR3 offers a dry contact mode, its terminal spacing and trace isolation are tight, requiring meticulous wiring to ensure line voltage does not cross over into low-voltage channels.
When evaluating energy tracking, power metering accuracy dictates whether your home automation platform can make intelligent decisions—such as shedding loads when peak utility rates trigger, or balancing solar self-consumption:
- Shelly Pro Metering (1PM, 2PM, 4PM): Employs high-precision metering ICs capable of sub-watt resolution for Active Power ($W$), RMS Voltage ($V$), RMS Current ($A$), and accumulated Real Energy ($kWh$). Measurements are sampled continuously and can be streamed locally via WebSockets, MQTT, or REST endpoints at frequencies up to 1 Hz without cloud reliance.
- Sonoff POW Elite Metering: Features a built-in LCD screen displaying real-time power, current, and voltage directly on the panel face—a convenient touch for quick manual inspections. Telemetry updates to Home Assistant via the eWeLink LAN integration or custom ESPHome builds. However, out-of-the-box telemetry polling rates over stock firmware are slower (typically 5 to 10 second intervals), making rapid load-shedding automations slightly delayed.
Crucially, Shelly Pro devices run an embedded mJS JavaScript runtime engine directly on the micro-controller. This allows you to write micro-scripts that execute directly on the relay board itself. For example, you can program a Shelly Pro 4PM to monitor total panel current, and if Channel 1 (Electric Heater) and Channel 2 (EV Charger) push total load beyond 32 Amps, the relay automatically opens Channel 1 locally—with zero reliance on Home Assistant, network switches, or cloud servers.
The Smart Panel Setup Playbook: Step-by-Step Installation
If you are engineering a smart electrical subpanel today, follow this step-by-step installation process to avoid electrical code violations, thermal throttling, and connection failures.
- Calculate Thermal Clearance and Module Spacing: Do not pack smart DIN relays tightly against one another without breathing room. For continuous loads exceeding 10 Amps per channel, leave a 0.5-module (9mm) DIN rail blank spacer between units, or install active panel ventilation. High thermal densities degrade relay life rapidly.
- Isolate Ethernet Infrastructure: If installing Shelly Pro modules inside a main steel panel, run category-rated Ethernet cable (Cat6 or Cat6A with a 600V-rated outer jacket) through low-voltage knockout points or separated conduit. Keep Ethernet data lines physically segregated from uninsulated 120V/240V mains conductors according to local electrical codes (NEC 725.136).
- Implement Zero-Cross Matching for Heavy Loads: Identify all high-inrush loads (LED banks, capacitive power supplies, pump motors). Assign these exclusively to zero-cross-capable relays (e.g., Shelly Pro 1PM/2PM/4PM). If using Sonoff units for heavy motor loads, install an intermediate industrial contactor (e.g., ABB or Schneider DIN contactor) driven by the relay to take the mechanical and electrical abuse off the micro-relay.
- Configure Fixed Static IPs and Local MQTT Control: Log into the local web interface of each relay via its IP address. Assign a static IP or DHCP reservation. Enable local MQTT or WebSockets and point telemetry directly to your local Home Assistant instance. Disable all cloud connectivity services (eWeLink Cloud or Shelly Cloud) to eliminate external security vectors and external dependencies.
- Establish Hardware Safety Limits on Device: Configure maximum power ($W$), maximum voltage ($V$), and maximum current ($A$) cutoffs directly within the relay’s local hardware firmware settings. Do not rely exclusively on Home Assistant automations for over-current protection; local firmware limits execute instantly on the micro-controller regardless of network state.
- Test Dry Contact Voltage Isolation with a Multimeter: Before connecting low-voltage control lines (HVAC 24V, dry contact inputs) to terminals on isolated units (Shelly Pro 1/Pro 2), verify complete electrical isolation (infinite resistance / open circuit) between power input supply terminals ($L/N$) and dry contact switching terminals ($I/O$) using a calibrated DMM.
Frequently Asked Questions
Can I mount smart DIN relays inside a main breaker panel, or do I need an auxiliary subpanel?
While smart relays can physically be installed on DIN rails inside main service panels if local code permits adequate gutter space and separation, the best engineering practice is to install an adjacent high-voltage junction box or dedicated subpanel. This prevents code violations regarding panel fill capacity, provides easy routing for RJ45 Ethernet, and makes thermal dissipation far easier to manage.
How does zero-cross switching prevent relay contact welding?
Zero-cross switching uses micro-controller timing to energize the mechanical relay contacts at the precise moment the AC voltage sine wave crosses 0 Volts. Because there is zero voltage potential across the contacts at that exact millisecond, electrical arcing is eliminated. This prevents high inrush loads—such as LED driver banks or pump motors—from melting and welding the relay contacts closed.
Why are dry contacts required for HVAC and garage door controls?
Dry contacts are volt-free switches completely isolated from the device’s internal 120V/230V power supply. Low-voltage devices like HVAC controllers (24VAC) or garage door triggers (12V/24V DC) will burn out instantly if standard line voltage is passed to their inputs. Dry contacts close a physical connection without outputting any voltage of their own, making them essential for safe cross-voltage automation.
Do Shelly Pro modules require cloud service to run local automations?
No. The Shelly Pro series runs completely cloud-free out of the box. All control logic, webhooks, power metering, and internal mJS scripts execute locally on the device hardware. Home Assistant communicates with Shelly devices over local LAN via native integration, WebSockets, or MQTT, maintaining full functionality even if your internet connection goes down completely.
Once automated presence is detected, control high-load lighting circuits reliably using our review of ESPHome Bluetooth Proxy on ESP32: Room Presence Setup.

