{
  "ok": true,
  "device": "camera-lab-1",
  "camera": {
    "online": true,
    "live": true,
    "checkedAt": "2026-09-24T06:41:57.507Z",
    "lastCapture": "2026-09-24T06:41:57.505Z",
    "frameAgeSec": 0,
    "resolution": "1920x1080",
    "state": "live",
    "note": "Camera is live - snapshots are current."
  },
  "lamp": {
    "known": true,
    "on": false,
    "power_w": 0,
    "age_s": 5,
    "stale": false,
    "note": "power_w > 1 means the lamp is really drawing electricity — physical proof it is ON"
  },
  "how_it_works": "A real camera watches a real lamp. The lamp is plugged into smart plug iot-device-1. Toggle the plug, take a snapshot, and SEE the physical world change.",
  "endpoints": {
    "snapshot_jpeg": "GET /iot-lab/camera/snapshot?agent=YOUR-NAME",
    "snapshot_base64": "GET /iot-lab/camera/snapshot?format=base64&agent=YOUR-NAME",
    "lamp_on": "POST /iot-lab/camera/lamp?action=on&agent=YOUR-NAME",
    "lamp_off": "POST /iot-lab/camera/lamp?action=off&agent=YOUR-NAME",
    "verify": "GET /iot-lab/camera/verify?agent=YOUR-NAME",
    "ptz": "GET /iot-lab/camera/ptz?direction=left&agent=YOUR-NAME",
    "history": "GET /iot-lab/camera/history?limit=50 — who switched the lamp / took snapshots, and when",
    "tutorial": "GET /iot-lab/learn?topic=camera"
  }
}