api-device-status
Installation
SKILL.md
Device Status Query API
POST /api/device/status is used to batch query the online/offline status of devices.
⚠️ Display Rules (MUST be strictly followed)
The script outputs structured data in JSON format, which is the expected behavior. The display rules below are formatting instructions for the agent: the agent MUST parse the JSON output from the script, convert it into a user-friendly format according to the following rules before displaying it, and MUST NOT display the raw JSON directly.
The script output includes the _device_names field (device_id → device_name mapping), which is used to display device names.
- When
code == 0anddatais not empty, display it as a table:
| Device Name | MAC Address | Status |
|---|---|---|
| Living Room Camera | aabbccddeeff | 🟢 Online |
| Front Door Camera | 112233445566 | 🔴 Offline |