UNPKG

@homebridge-plugins/homebridge-lutron-caseta-leap

Version:
228 lines (223 loc) 7.73 kB
{ "pluginAlias": "LutronCasetaLeap", "pluginType": "platform", "customUi": true, "singular": true, "customUiPath": "./dist/homebridge-ui", "schema": { "type": "object", "properties": { "name": { "type": "string", "title": "Name", "default": "Lutron", "required": true }, "options": { "type": "object", "properties": { "filterPico": { "type": "boolean", "title": "Exclude Pico remotes that are associated with devices directly or in the Lutron app" }, "clickSpeed": { "type": "string", "title": "Double- and long-press speed", "oneOf": [ { "title": "Fast", "enum": ["fast"] }, { "title": "Medium (default)", "enum": ["medium"] }, { "title": "Slow", "enum": ["slow"] } ] }, "excludedDeviceTypes": { "type": "array", "title": "Exclude specific device types (HAP + Matter)", "description": "Selected device types will not be registered by this plugin in either HAP or Matter mode.", "items": { "type": "string", "enum": [ "WallDimmer", "WallSwitch", "SerenaTiltOnlyWoodBlind", "RPSOccupancySensor", "Pico2Button", "Pico2ButtonRaiseLower", "Pico3Button", "Pico3ButtonRaiseLower", "Pico4Button", "Pico4Button2Group", "Pico4ButtonScene", "Pico4ButtonZone", "PaddleSwitchPico", "FourGroupRemote" ] }, "uniqueItems": true, "default": [] }, "logLevel": { "type": "string", "title": "Log Verbosity", "description": "Controls which plugin log levels are emitted. 'Normal' is the default and what most users want — info is reserved for one-time lifecycle events, per-event noise is at debug. 'Quiet' suppresses info; 'Errors only' suppresses info AND warn. Homebridge's global debug toggle is not affected by this setting.", "default": "normal", "oneOf": [ { "title": "Normal (default)", "enum": ["normal"] }, { "title": "Quiet (suppress info)", "enum": ["quiet"] }, { "title": "Errors only (suppress info + warn)", "enum": ["errors-only"] } ] }, "buttonPressLogging": { "type": "string", "title": "Button Press Logging", "description": "How verbose to be about button-press events specifically. 'Info' is the default so presses are visible in normal logs. Use 'Debug' to show presses only with global Homebridge debug enabled. Use 'Silent' to drop them entirely.", "default": "info", "oneOf": [ { "title": "Info — visible in normal logs (default)", "enum": ["info"] }, { "title": "Debug — visible only with global debug", "enum": ["debug"] }, { "title": "Silent — never logged", "enum": ["silent"] } ] } } }, "enableMatter": { "type": "boolean", "title": "Enable Matter (requires Homebridge v2.0+)", "description": "When enabled, the plugin will use the Homebridge Matter API to register accessories if it is available.", "default": true }, "secrets": { "type": "array", "items": { "type": "object", "properties": { "bridgeid": { "type": "string" }, "ca": { "type": "string" }, "key": { "type": "string" }, "cert": { "type": "string" } }, "required": ["ca", "cert", "key"] } } } }, "layout": [ { "key": "secrets", "type": "array", "listItems": 1, "items": [{ "type": "div", "displayFlex": true, "items": [ { "key": "secrets[].bridgeid", "flex": "1 1 50px", "notitle": false, "title": "Bridge ID Number (hex of serial number)", "placeholder": "Bridge ID", "type": "string" }, { "key": "secrets[].ca", "flex": "200px", "title": "CA certificate (caseta-bridge.crt)", "placeholder": "-----BEGIN CERTIFICATE-----...", "type": "textarea" }, { "key": "secrets[].key", "flex": "200px", "title": "Private key (caseta.key)", "placeholder": "-----BEGIN PRIVATE KEY-----...", "type": "textarea" }, { "key": "secrets[].cert", "flex": "200px", "title": "Signed certificate (caseta.crt)", "placeholder": "-----BEGIN CERTIFICATE-----...", "type": "textarea" } ] } ] }, { "type": "fieldset", "title": "Global Options", "items": [ { "key": "options", "type": "div", "displayFlex": true, "items": [ { "key": "options.filterPico", "notitle": false, "type": "boolean", "flex": "1 1 150px" }, { "key": "options.clickSpeed", "notitle": false, "type": "string", "flex": "1 1 150px" } ] }, { "type": "div", "displayFlex": true, "items": [ { "key": "enableMatter", "notitle": false, "type": "boolean", "flex": "1 1 300px" } ] }, { "key": "options.excludedDeviceTypes", "type": "checkboxes", "title": "Exclude specific device types (HAP + Matter)", "description": "Select one or more device types to exclude from registration.", "titleMap": [ { "name": "WallDimmer", "value": "WallDimmer" }, { "name": "WallSwitch", "value": "WallSwitch" }, { "name": "SerenaTiltOnlyWoodBlind", "value": "SerenaTiltOnlyWoodBlind" }, { "name": "RPSOccupancySensor", "value": "RPSOccupancySensor" }, { "name": "Pico2Button", "value": "Pico2Button" }, { "name": "Pico2ButtonRaiseLower", "value": "Pico2ButtonRaiseLower" }, { "name": "Pico3Button", "value": "Pico3Button" }, { "name": "Pico3ButtonRaiseLower", "value": "Pico3ButtonRaiseLower" }, { "name": "Pico4Button", "value": "Pico4Button" }, { "name": "Pico4Button2Group", "value": "Pico4Button2Group" }, { "name": "Pico4ButtonScene", "value": "Pico4ButtonScene" }, { "name": "Pico4ButtonZone", "value": "Pico4ButtonZone" }, { "name": "PaddleSwitchPico", "value": "PaddleSwitchPico" }, { "name": "FourGroupRemote", "value": "FourGroupRemote" } ] }, { "type": "div", "displayFlex": true, "items": [ { "key": "options.logLevel", "notitle": false, "type": "string", "flex": "1 1 200px" }, { "key": "options.buttonPressLogging", "notitle": false, "type": "string", "flex": "1 1 200px" } ] } ] } ] }