# 传感器 - SNZB 传感器

你可能已经看到我们如何连接了 **开关、插头和灯具** 就像 **SONOFF TX**, **S40**，以及 **B05-BL** 通过 **CUBE OS Matter 网关** ——都在苹果生态内本地顺畅运行。

<div align="left"><figure><img src="https://2213833752-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCnF8kmk9yw3yiy2mRerq%2Fuploads%2F0LRZX65aOCqqQGq6N7eC%2Fimage.png?alt=media&#x26;token=f787747a-124b-4bfb-b9bc-f0575fa0ba82" alt="" width="563"><figcaption></figcaption></figure></div>

现在，轮到我们探讨 **传感器类 Zigbee 设备** 通过 CUBE OS 桥接到 Apple Home 时的表现。\
在这篇文章中，我们将通过以下 SONOFF Zigbee 传感器进行一个实测：

| 设备                                                                                                           | 类型      | 功能             |
| ------------------------------------------------------------------------------------------------------------ | ------- | -------------- |
| [**SNZB-02P**](https://sonoff.tech/en-us/products/sonoff-zigbee-temperature-and-humidity-sensor-snzb-02p/58) | 温湿度传感器  | 测量环境温度和湿度      |
| [**SNZB-03P**](https://sonoff.tech/en-us/products/sonoff-zigbee-motion-sensor-snzb-03p/58)                   | 运动传感器   | 检测移动           |
| [**SNZB-04P**](https://sonoff.tech/en-us/products/sonoff-zigbee-door-window-sensor-snzb-04p/58)              | 门/窗传感器  | 检测开/关（开门/关门）状态 |
| [**SNZB-05P**](https://sonoff.tech/en-us/products/sonoff-zigbee-water-leak-sensor-snzb-05p/58)               | 漏水传感器   | 检测水分存在         |
| [**SNZB-06P**](https://sonoff.tech/en-us/products/sonoff-zigbee-human-presence-sensor-snzb-06p/58)           | 人体存在传感器 | 检测占用情况         |

**查看你手头 Zigbee 子设备的兼容性：**

[cube-web.ewelink.cc](https://cube-web.ewelink.cc)

## **设置步骤** <a href="#etbag" id="etbag"></a>

只需按照入门指南中的相同步骤：\
为传感器上电 → 将它们配对到 **CUBE OS** 通过一个 **Zigbee 加密狗** → 启用 **Matter 桥接器** → 扫描二维码将所有设备添加到 **Apple 家庭**.

<figure><img src="https://2213833752-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCnF8kmk9yw3yiy2mRerq%2Fuploads%2Fb577mvMPDgCEquSWcW1s%2Fimage.png?alt=media&#x26;token=2bee7936-818c-42b1-acb7-9a1181148816" alt=""><figcaption></figcaption></figure>

所有配对的传感器会自动出现在各自的类别下。

## **Apple Home 使用体验** <a href="#odbal" id="odbal"></a>

以下是每种传感器通过 CUBE OS Matter 网关在 Apple Home 中的表现：

| 传感器                 | 在 Apple Home 中的显示 | 自动化支持 | 备注             |
| ------------------- | ----------------- | ----- | -------------- |
| **SNZB-02P（温湿度）**   | 温度实时显示            | ✅ 支持  | 湿度显示可能有所差异     |
| **SNZB-03P（运动传感器）** | 检测运动事件            | ✅ 支持  | 目前可能显示为基础的占用状态 |
| **SNZB-04P（门/窗）**   | 显示开/关状态           | ✅ 支持  | 触发性能优秀         |
| **SNZB-05P（漏水）**    | 显示“湿/干”状态         | ✅ 支持  | 检测到漏水时即时报警     |
| **SNZB-06P（存在传感器）** | 检测占用状态            | ✅ 支持  | 目前可能显示为基础的占用状态 |

## **自动化示例** <a href="#lc6qd" id="lc6qd"></a>

让我们创建一个简单的自动化来观察其表现：

当 **SNZB-04P 门传感器** 检测到门打开 → 立即打开 **B05-BL 智能灯泡** 。

<div align="left"><figure><img src="https://2213833752-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCnF8kmk9yw3yiy2mRerq%2Fuploads%2FCMXoBmMr6yEQwiq1U5Pl%2Fimage.png?alt=media&#x26;token=b21713b4-c316-4f2c-966c-30fd81ced14e" alt="" width="375"><figcaption></figcaption></figure></div>

Apple Home 中的自动化设置很直观，响应几乎是即时的。\
感觉就像使用原生 HomeKit 配件——全部 **本地、快速且可靠**.

<div align="left"><figure><img src="https://2213833752-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCnF8kmk9yw3yiy2mRerq%2Fuploads%2Fob8ZqpbaVkPQC6HKwJuM%2F00cde49870f5263e9c741bab6a217d62%20(1).gif?alt=media&#x26;token=6f5bc638-3821-4777-b04b-325dd60e50f1" alt="" width="300"><figcaption></figcaption></figure></div>

***

## **总结：在 Apple Home 中的传感器体验** <a href="#fm74n" id="fm74n"></a>

| **测试设备**      | **结果**                |
| ------------- | --------------------- |
| iPhone / iPad | ✅ 显示且响应               |
| Apple Watch   | ✅ 显示且可触发              |
| HomePod mini  | ✅ 可通过 Siri 自动化识别传感器触发 |

总体而言，这些 SONOFF Zigbee 传感器在 **表现出乎意料的良好** 通过 CUBE OS Matter 网关接入 Apple Home——连接稳定、延迟极小，并且与苹果的自动化系统无缝集成。

💡 **如果你已经在运行 CUBE OS**，试着添加你的 Zigbee 传感器，看看它们如何在 Apple Home 中为你的智能家居自动化带来生机——无需云端、无需 YAML，只需简单的本地控制。


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://cube.ewelink.cc/english-zh/bo-ke/jiang-nin-de-she-bei-tian-jia-dao-apple-jia-ting/chuan-gan-qi-snzb-chuan-gan-qi.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
