Apple Home · Relay · DIY

Smart Relay

A relay that lives in the wall and answers to your phone. It sits in the mains line between the supply and the load — and the only way to switch it is the Home app.

What runs on the other end

A ceiling lamp, a fan, the pump at the dacha, the strip light over the workbench. Anything that switches on and off at the wall can sit behind the relay.

One relay, one load. If there is a second thing to switch, put a second relay next to it — they are small and they do not mind company.

Mains coming into the relay and two loads behind it — a lamp and a fan

No handle, no switch

There is nothing to flip on the case. The relay is switched from Apple Home and only from there — nothing gets turned off by accident, and nothing waits for a curious child to press it.

The button on the case is a service button for setup: it is used to put the device back into pairing mode. The small LED next to it shows what the controller is doing.

A plain relay case with a status LED and a phone showing the switch turned on

Works without the internet

The relay talks to your home hub over your own network. No account, no cloud service of ours, no subscription in the middle of a light switch.

Scenes, schedules and Siri keep working at home — there is no round trip to a server in another country to turn on a lamp.

The relay at home talking to the phone over the local network, with the cloud crossed out

What you get

  • Apple Home
  • Mains loads
  • Scenes and automations
  • No subscription
  • Open source

Open source, under GPL-3.0

The firmware and the schematic are published under GPL-3.0. The wiring diagram, and its editable Fritzing source, are in the repository — open it, change the pins, build your own.

Everything stays on your side of the router.

View on GitHub ↗

Build one

The repository has the parts list, the schematic and the settings for the Arduino IDE. This one works with mains voltage — read the safety notes there before you start.

Open the repository ↗