{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/eaton/json-schema/eaton-device-state-schema.json",
  "title": "DeviceState",
  "x-generated": "2026-11-09",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/eaton-devices-api-openapi.yml#/components/schemas/DeviceState",
  "type": "object",
  "properties": {
    "deviceId": {
      "type": "string",
      "format": "uuid"
    },
    "position": {
      "type": "string",
      "enum": [
        "open",
        "closed",
        "tripped"
      ]
    },
    "connectivity": {
      "type": "string",
      "enum": [
        "online",
        "offline"
      ]
    },
    "lastReportedAt": {
      "type": "string",
      "format": "date-time"
    }
  }
}