{
  "pluginAlias": "HomebridgeCreateCeilingFanEnhanced",
  "pluginType": "platform",
  "singular": true,
  "schema": {
    "type": "object",
    "properties": {
      "name": {
        "title": "Name",
        "type": "string",
        "required": true,
        "default": "Create Ceiling Fan Enhanced"
      },
      "devices": {
        "type": "array",
        "title": "Devices",
        "items": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string",
              "title": "ID",
              "description": "Tuya device ID",
              "required": true
            },
            "key": {
              "type": "string",
              "title": "Key",
              "description": "Tuya device key",
              "required": true
            },
            "ip": {
              "type": "string",
              "title": "IP",
              "description": "Tuya device IP",
              "required": false
            },
            "version": {
              "type": "string",
              "title": "Version",
              "description": "Tuya device version",
              "default": "3.3",
              "required": false
            },
            "name": {
              "type": "string",
              "title": "Device Name",
              "description": "Name of the device",
              "required": true
            },
            "hasLight": {
              "type": "boolean",
              "title": "Has Light Controls",
              "description": "Enable light on/off and color temperature controls",
              "required": false,
              "default": true
            },
            "withToggle": {
              "type": "boolean",
              "title": "Add toggle switch for light and fan",
              "description": "Check true if you have a toggle switch (switch with 1 click)",
              "required": false
            }
          }
        }
      }
    }
  }
}