环境传感
环境传感
本域说明
detection.environment.temperature、humidity 走 property get/set,权限 Config。temperatureHigh/Low、humidityHigh/Low 为 event,收推送须 capabilityEvent(setMessageCallback),消息查询 Alarm。见 侦测与告警 与 事件总表 环境相关条目。设备级。
读者必读
新接入请先读 能力使用。调用前用 device.capability.list 确认设备是否支持本页能力;权限见 权限码;错误码见 能力错误码。
本域索引
| 操作 | ID |
|---|---|
| 获取当前温度属性 | detection.environment.temperature |
| 设置当前温度属性 | detection.environment.temperature |
| 获取当前湿度属性 | detection.environment.humidity |
| 设置当前湿度属性 | detection.environment.humidity |
| 高温报警 | detection.environment.temperatureHigh |
| 低温报警 | detection.environment.temperatureLow |
| 高湿度报警 | detection.environment.humidityHigh |
| 低湿度报警 | detection.environment.humidityLow |
