{
  "title": "Matterbridge SwitchBot plugin",
  "description": "Matterbridge SwitchBot Plugin by https://github.com/derbirch",
  "type": "object",
  "properties": {
    "name": {
      "description": "Plugin name",
      "type": "string",
      "readOnly": true,
      "ui:widget": "hidden"
    },
    "type": {
      "description": "Plugin type",
      "type": "string",
      "readOnly": true,
      "ui:widget": "hidden"
    },
    "token": {
      "type": "string",
      "title": "SwitchBot API Token",
      "required": true,
      "form": true
    },
    "secret": {
      "type": "string",
      "title": "SwitchBot API Secret",
      "required": true,
      "form": true
    },
    "pollInterval": {
      "type": "number",
      "title": "Polling Interval (seconds)",
      "default": 30,
      "minimum": 5,
      "form": true
    },
    "baseUrl": {
      "type": "string",
      "title": "SwitchBot API Base URL",
      "default": "https://api.switch-bot.com",
      "form": true
    },
    "unregisterOnShutdown": {
      "description": "Unregister all devices on shutdown (development only)",
      "type": "boolean",
      "default": false,
      "ui:widget": "hidden"
    }
  }
}