{
  "pluginAlias": "homebridge-google-nest-sdm",
  "pluginType": "platform",
  "headerDisplay": "For help getting these values, please see the readme at: https://github.com/potmat/homebridge-google-nest-sdm#where-do-the-config-values-come-from Read it carefully, you must follow the instructions regarding the authorization URL if you want events to work properly.",
  "singular": "true",
  "schema": {
    "type": "object",
    "properties": {
      "clientId": {
        "title": "Client ID (e.g. \"780816631155-gbvyo1o7r2pn95qc4ei9d61io4uh48hl.apps.googleusercontent.com\")",
        "type": "string",
        "required": true
      },
      "clientSecret": {
        "title": "Client Secret",
        "type": "string",
        "required": true
      },
      "projectId": {
        "title": "SDM Project ID",
        "type": "string",
        "required": true
      },
      "refreshToken": {
        "title": "Refresh Token",
        "type": "string",
        "required": true
      },
      "subscriptionId": {
        "title": "PubSub Subscription (e.g. \"projects/your-gcp-project-id/subscriptions/your-subscription-id\")",
        "type": "string",
        "required": true
      },
      "gcpProjectId": {
        "title": "GCP Project ID",
        "type": "string",
        "required": false
      },
      "vEncoder": {
        "title": "Video Encoder",
        "type": "string",
        "required": false
      },
      "showFan": {
        "title": "Show Fan Switch",
        "type": "boolean",
        "required": false
      },
      "fanDuration": {
        "title": "Fan duration (in seconds) when turning on the fan.",
        "type": "integer",
        "minimum": 1,
        "maximum": 43200,
        "default": 900,
        "required": false,
        "condition": {
          "functionBody": "return model.showFan"
        }
      },
      "analyzeDuration": {
        "title": "FFmpeg Analyze Duration (microseconds)",
        "type": "integer",
        "required": false,
        "default": 15000000,
        "description": "Maximum time (in microseconds) FFmpeg will probe the stream to detect its parameters before giving up. FFmpeg stops as soon as it has detected the stream, so this is an upper bound, not a fixed delay. Defaults to 15000000 (15 seconds), the plugin's long-standing value. WARNING: lowering this can break WebRTC cameras. Some cameras only send their H.264 parameter sets (SPS/PPS) every several seconds; if FFmpeg gives up before they arrive it fails to start the stream with 'dimensions not set' and you get no video. Raise this (or leave it at the default) if a camera fails to start; only lower it if you have confirmed your specific camera still streams reliably at the lower value."
      },
      "probeSize": {
        "title": "FFmpeg Probe Size (bytes)",
        "type": "integer",
        "required": false,
        "default": 100000000,
        "description": "Maximum number of bytes FFmpeg will read while probing the stream to detect its parameters. FFmpeg stops as soon as it has detected the stream, so this is an upper bound, not a fixed amount. Defaults to 100000000 (100 MB), the plugin's long-standing value. WARNING: same caveat as Analyze Duration — setting it too low can cause a camera to fail to start with 'dimensions not set' if its H.264 parameter sets haven't arrived yet. Raise it (or keep the default) if a camera fails to start."
      }
    }
  }
}
