开始前你需要開始前你需要Before you start
- 一个存在 / 动作传感器,已经加进 Apple「家庭」App(领普 ES5、Aqara FP 系列等)一個存在 / 動作傳感器,已經加入 Apple「家庭」App(領普 ES5、Aqara FP 系列等)A presence / motion sensor already added to the Apple Home app (Linptech ES5, Aqara FP series, etc.)
- 一个已经建好的 ZoneFoundry 场景(见上一篇教程)一個已經建好的 ZoneFoundry 場景(見上一篇教程)A ZoneFoundry scene you've already created (see the previous guide)
- ZoneFoundry 家庭桥接在线:场景是由桥接以开关配件的形式放进 Apple「家庭」的,没有桥接,「家庭」里就没有这些场景。ZoneFoundry 家庭橋接在線:場景是由橋接以開關配件的形式放進 Apple「家庭」的,沒有橋接,「家庭」裡就沒有這些場景。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.
- 桥接要装在一台一直开着、装了 Docker 的机器上(群晖 / 飞牛 / Unraid / TrueNAS / 软路由 / Linux 主机);Mac / Windows 的 Docker Desktop 不行。安装见家庭桥接安装教程。橋接要裝在一部一直開著、裝了 Docker 的機器上(群暉 / 飛牛 / Unraid / TrueNAS / 軟路由 / Linux 主機);Mac / Windows 的 Docker Desktop 不行。安裝見家庭橋接安裝教學。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.
- 家里有家居中枢(HomePod 或 Apple TV),并已在 ZoneFoundry 里允许访问 Apple「家庭」数据(HomeKit 权限)家中有家居中樞(HomePod 或 Apple TV),並已在 ZoneFoundry 裡允許存取 Apple「家庭」資料(HomeKit 權限)A home hub in the house (HomePod or Apple TV), and ZoneFoundry allowed to access Apple Home data (HomeKit permission)
为什么用毫米波(mmWave)传感器?普通红外(PIR)传感器只感「动作」—— 你坐定不动它就以为没人,音乐会断。毫米波传感器(如领普 ES5)能感「存在」,坐着、躺着不动都侦测得到,最适合做这种自动场景。為什麼用毫米波(mmWave)傳感器?普通紅外(PIR)傳感器只感「動作」—— 你坐定不動它就以為沒人,音樂會斷。毫米波傳感器(如領普 ES5)能感「存在」,坐著、躺著不動都偵測得到,最適合做這種自動場景。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.
选对传感器,人来人走都自动
- 红外 PIR只感「动作」你坐定不动它就以为没人,音乐会断
- 毫米波能感「存在」坐着、躺着不动都侦测得到,最适合做自动场景
- 人来检测到有人 → 运行场景打开「ZoneFoundry 场景」里的开关,例如「回家」;灯、空调可一起勾上
- 人走停止检测是否有人 → 停止再建一条自动化,运行「停止」或「全屋暂停」场景
需要 ZoneFoundry 家庭桥接在线、家里有家居中枢;满足后 iPhone 锁屏、关掉 App 都照样运行。
選對感應器,人來人走都自動
- 紅外 PIR只感「動作」你坐定不動它就以為沒人,音樂會斷
- 毫米波能感「存在」坐著、躺著不動都偵測得到,最適合做自動場景
- 人來檢測到有人 → 執行場景打開「ZoneFoundry 場景」裡的開關,例如「回家」;燈、空調可一起勾上
- 人走停止檢測是否有人 → 停止再建一條自動化,執行「停止」或「全屋暫停」場景
需要 ZoneFoundry 家庭橋接在線、家裡有家居中樞;滿足後 iPhone 鎖屏、關掉 App 都照樣執行。
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
打开 Apple「家庭」App →「自动化」→「添加自动化」→ 选「传感器检测到某项内容」→ 选你的存在传感器(例如客厅的领普 ES5)。打開 Apple「家庭」App →「自動化」→「加入自動化」→ 選「感應器偵測到某項內容」→ 選你的存在傳感器(例如客廳的領普 ES5)。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).
选要运行的 ZoneFoundry 场景選要運行的 ZoneFoundry 場景Pick the ZoneFoundry scene to run
在场景和配件列表里,找到「ZoneFoundry 场景」这一组,选你那个场景的开关(例如「回家」),设为打开。想把灯、空调一起带上,就一起勾上 —— 跟上一篇教程一样。在場景和配件列表裡,找到「ZoneFoundry 場景」這一組,選你那個場景的開關(例如「回家」),設為開啟。想把燈、空調一起帶上,就一起勾上 —— 跟上一篇教程一樣。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
点「完成」。可以点「测试此自动化」即时验证。之后人一走进房间,场景就自动开 —— 只要桥接在线,iPhone 锁屏也照跑。點「完成」。可以點「測試此自動化」即時驗證。之後人一走進房間,場景就自動開 —— 只要橋接在線,iPhone 鎖屏也照樣運行。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.
没有桥接怎么办?目前没有免桥的对应做法:服务器只支持 Follow-Me 的链接,不支持用传感器直接触发场景。如果你想要的只是「音乐跟着人走」,可以看 Follow-Me 云端执行,它不需要桥接。沒有橋接怎麼辦?目前沒有免橋的對應做法:伺服器只支援 Follow-Me 的連結,不支援用傳感器直接觸發場景。如果你想要的只是「音樂跟著人走」,可以看 Follow-Me 雲端執行,它不需要橋接。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
起床、回家、睡前——ZoneFoundry 可以把房间、音量、音乐、播报打包成一个场景,一句话或一个按钮触发,不用每次重排一遍。起床、回家、睡前——ZoneFoundry 可以把房間、音量、音樂、廣播打包成一個場景,一句話或一個按鈕觸發,不用每次重新排一遍。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.