protect_get_sensor
Retrieve complete sensor details by ID, including status, battery, motion, and environmental readings.
Instructions
Get full details for a specific sensor by ID. Returns: id, modelKey, name, mac, state, type, guid, mountType, featureFlags (temperature, humidity, light, motion, waterLeak, open, tamper, smoke — each {channelCount}), batteryStatus (percentage, isLow), stats (light, humidity, temperature), lightSettings, humiditySettings, temperatureSettings, isOpened, openStatusChangedAt, isMotionDetected, motionDetectedAt, motionSettings, glassBreakSettings, scheduleMode, armProfileIds, hasCustomSensitivityWhenArmed, alarmTriggeredAt, alarmSettings, leakDetectedAt, externalLeakDetectedAt, leakSettings, tamperingDetectedAt, wirelessConnectionState (7.3.47 docs).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Sensor ID |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Device ID | |
| mac | No | MAC address | |
| guid | No | Hardware MODEL GUID, shared by every unit of the same model. NOT a per-device identifier — use `id` to identify a device. | |
| name | No | Device name | |
| type | No | Hardware model name, e.g. "UVC G6 Turret", "UP Chime PoE", "UNVR-PRO" | |
| state | No | CONNECTED | DISCONNECTED | ... | |
| stats | No | Environmental stats (object: light, humidity, temperature) | |
| isOpened | No | Open/close contact state (boolean) | |
| modelKey | No | Resource kind | |
| mountType | No | Mount type, e.g. "door", "leak", "garage" | |
| featureFlags | No | Sensor capability flags, added in 7.3.x (object: temperature, humidity, light, motion, waterLeak, open, tamper, smoke — each { channelCount }) | |
| leakSettings | No | Leak detection settings (object) | |
| scheduleMode | No | Schedule mode: "always" | "when_armed" | |
| alarmSettings | No | Alarm settings (object: isEnabled) | |
| armProfileIds | No | Arm profile IDs this sensor belongs to (array of strings) | |
| batteryStatus | No | Battery status (object: percentage, isLow) | |
| lightSettings | No | Light threshold settings (object) | |
| leakDetectedAt | No | Last leak timestamp in epoch ms (number) | |
| motionSettings | No | Motion detection settings (object) | |
| alarmTriggeredAt | No | Last alarm timestamp in epoch ms (number) | |
| humiditySettings | No | Humidity threshold settings (object) | |
| isMotionDetected | No | Motion currently detected (boolean) | |
| motionDetectedAt | No | Last motion timestamp in epoch ms (number) | |
| glassBreakSettings | No | Glass-break detection settings (object) | |
| openStatusChangedAt | No | Open-status change timestamp in epoch ms (number) | |
| tamperingDetectedAt | No | Last tampering timestamp in epoch ms (number) | |
| temperatureSettings | No | Temperature threshold settings (object) | |
| externalLeakDetectedAt | No | Last external-leak timestamp in epoch ms (number) | |
| wirelessConnectionState | No | Wireless link state (object: signalState, batteryStatus, bridge) | |
| hasCustomSensitivityWhenArmed | No | Custom armed sensitivity enabled (boolean) |