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
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).
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).
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.
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.
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.