门窗传感器(magnet-sensor)
本页由
olink/mapping/system/schemas自动生成,请勿手改。源文件:schemas/devices/magnet-sensor.toml。
元信息
| 字段 | 值 |
|---|---|
| schema_id | magnet-sensor |
| category | sensor |
服务一览
| 服务 ID | 名称 | 必选/可选 |
|---|---|---|
magnet-sensor | 门窗传感器 | 必选 |
服务:门窗传感器(magnet-sensor)
必选属性
| 属性 ID | 名称 | format | access | 范围/单位 | 枚举 |
|---|---|---|---|---|---|
contact-sensor-state | 门窗状态 | uint8 | read, notify |
可选属性
| 属性 ID | 名称 | format | access | 范围/单位 | 枚举 |
|---|---|---|---|---|---|
battery-level | 电池电量 | uint8 | read, notify | 0–100 percentage | |
status-low-battery | 低电量状态 | uint8 | read, notify |