{
  "pluginAlias": "SleepTrackerPlatform",
  "pluginType": "platform",
  "singular": true,
  "schema": {
    "type": "object",
    "properties": {
      "name": {
        "title": "Name",
        "type": "string",
        "required": true,
        "default": "SleepTracker"
      },
      "username": {
        "title": "Username",
        "type": "string",
        "required": true,
        "description": "Your SleepTracker account username",
        "format": "email"
      },
      "password": {
        "title": "Password",
        "type": "string",
        "required": true,
        "description": "Your SleepTracker account password",
        "format": "password",
        "minLength": 8
      },
      "deviceId": {
        "title": "Device ID",
        "type": "string",
        "required": true,
        "description": "The unique identifier of your SleepTracker device",
        "minLength": 1
      },
      "refreshInterval": {
        "title": "Refresh Interval",
        "type": "integer",
        "minimum": 5,
        "maximum": 3600,
        "default": 30,
        "description": "How often to refresh the device status (in seconds)"
      },
      "enableEnvironmentSensors": {
        "title": "Enable Environment Sensors",
        "type": "boolean",
        "default": true,
        "description": "Enable temperature and humidity sensors"
      }
    }
  }
} 