ESP32 Custom Relay (ESPHome) In-Depth Review
IoTonom Hardware Review – Local-First Focus
Overview#
The ESP32 Custom ESPHome Relay is the premier choice for makers and engineers seeking total ownership over their home automation hardware. Pairing a commodity ESP32 development board with optocoupled relays yields unbeatable throughput, flexibility, and longevity.
From IoTonom's local-first perspective, its signature strength is The Native API Protocol. Operating over a fast, encrypted TCP socket, ESPHome communicates with Home Assistant at microsecond latency with absolute zero cloud telemetry.
Technical Specifications#
| Specification | Value |
|---|---|
| Protocol | Wi-Fi 802.11 b/g/n (2.4 GHz) |
| MCU | Espressif ESP32 Dual-Core (240 MHz, 4MB Flash) |
| Supply | DC 5V or AC 230V depending on power module |
| Max Load | 10A / 16A based on relay ratings |
| Latency | ~15-25 ms (instant local response) |
| Isolation | Optocoupler galvanic isolation |
| Expansion Ports | I2C, SPI, UART, free GPIO pins |
| Integration | ESPHome Native API (auto-discovery) |
Installation Notes#
- Assembly: Connect an ESP32 board to a relay breakout board via jumper wires or a custom PCB.
- Flashing: Compiled directly from Home Assistant's ESPHome dashboard with Over-The-Air (OTA) updates.
- Mains Safety: If controlling 230V AC mains, enclose in a certified flame-retardant DIN rail or ABS box with proper strain relief.
Home Assistant Integration#
Discovered seamlessly via mDNS upon booting on the local network:
- Switch: Instantaneous relay control
- Diagnostics: Wi-Fi signal strength (RSSI), IP address, system uptime
- Sensors: Expandable with temperature (DS18B20), humidity, or current transformers
IoTonom Scorecard#
- Local-First: 10 / 10 (Zero cloud, 100% open-source firmware)
- HA Integration: 10 / 10 (Native API offers unmatched real-time telemetry)
- Ease of Installation: 7.0 / 10 (Requires DIY wiring and basic enclosure fabrication)
- Customizability: 10 / 10 (Hardware logic executes on-chip independently)
Key Advantages#
- Immune to Cloud Outages: Operates continuously even if internet and WAN gateway go dark.
- On-Device Fallback Automations: Can execute localized safety rules even if Home Assistant restarts.
- High ROI: Multichannel switching at a fraction of commercial module costs.
- Limitless Expansion: Solder motion, illuminance, or display modules to free pins.
Limitations & Considerations#
- DIY Craftsmanship Required: Enclosures, wiring isolation, and mains safety are user-managed.
- Space Requirements: Larger footprint than miniaturized in-wall pucks.
Alternatives to Consider#
- Commercial no-neutral micro relay: Sonoff ZBMINIL2 (Zigbee, ready-made).
- Commercial certified Wi-Fi power meter: Shelly Plus 1PM (16A, CE safety certified).
Verdict & IoTonom Recommendation#
For hobbyists and power users unafraid of basic wiring, ESPHome on ESP32 is the ultimate local-first automation foundation.




