← All guides

Guide

Auto-run a scene when someone walks in

Add a presence sensor (e.g. a Linptech ES5 mmWave). The moment someone walks in, your ZoneFoundry scene — music, lights, AC — turns on by itself. It runs on Apple Home automation plus the ZoneFoundry home bridge: with the bridge online and a home hub in the house, it works even when your iPhone is locked or the app is closed.

Last updated: 2026-09-25

Level · Medium ~5 min Apple Home · mmWave

Before you start

  • A presence / motion sensor already added to the Apple Home app (Linptech ES5, Aqara FP series, etc.)
  • A ZoneFoundry scene you've already created (see the previous guide)
  • The ZoneFoundry home bridge online: the bridge is what puts your scenes into Apple Home, as switch accessories. Without the bridge, the scenes are not in Apple Home.
  • The bridge runs on an always-on machine with Docker (Synology / fnOS / Unraid / TrueNAS / a soft router / a Linux box); Docker Desktop on Mac or Windows won’t work. Setup: home bridge guide.
  • A home hub in the house (HomePod or Apple TV), and ZoneFoundry allowed to access Apple Home data (HomeKit permission)

Why a mmWave sensor? A plain infrared (PIR) sensor only detects motion — sit still and it thinks the room is empty, so the music cuts out. A mmWave sensor (like the Linptech ES5) detects presence: it still sees you when you're sitting or lying still — ideal for this kind of automation.

Pick the right sensor, automate both ways

  • PIROnly detects motionSit still and it thinks the room is empty, so the music cuts out
  • mmWaveDetects presenceStill sees you sitting or lying still, ideal for this kind of automation
  • Walk inDetects presence → run sceneTurn on your scene switch, e.g. "Arrive home"; add lights and AC if you like
  • LeaveStops detecting → stopA second automation runs a "Stop" or "Pause everywhere" scene

Needs the ZoneFoundry home bridge online and a home hub; then it runs even with your iPhone locked or the app closed.

Steps

1

New automation, pick your sensor

Open Apple Home → Automation → Add Automation → choose "A Sensor Detects Something" → pick your presence sensor (e.g. the living-room Linptech ES5).

Apple 家庭 App 选择领普 ES5 存在传感器做自动化
Pick the sensor: Linptech ES5 occupancy
2

Set the trigger to "detects presence"

Choose "Detects presence". You can also add conditions like time of day or who's home (e.g. only in the evening).

Apple 家庭 App 设触发条件检测到有人
Trigger: detects presence
3

Pick the ZoneFoundry scene to run

In the scenes and accessories list, find the ZoneFoundry scenes group and pick your scene's switch (e.g. "Arrive home"), set to On. Want lights and AC too? Tick them as well — just like the previous guide.

Apple 家庭 App 选择运行 ZoneFoundry 场景
Run a ZoneFoundry scene
4

Finish, then test it

Tap "Done". You can hit "Test This Automation" to check it right away. From now on, walking into the room runs the scene by itself — even with your iPhone locked, as long as the bridge is online.

Apple 家庭 App 自动化完成,可测试
Done · test it instantly

Want it to stop when you leave? Add a second automation: same sensor, trigger set to "Stops Detecting Occupancy" → run a "Stop" or "Pause everywhere" scene. Now it follows you both ways, fully automatic.

No bridge? There is no bridge-free way to do this yet: the server only supports Follow-Me links, not sensor-triggered scenes. If what you want is music that follows you, see Follow-Me in the cloud, which needs no bridge.

A whole routine can collapse into one scene

Waking up, coming home, winding down — ZoneFoundry can bundle rooms, volume, music and announcements into one scene, triggered by a sentence or a button instead of rebuilt each time.