|
1 | | - { |
2 | | - "pluginAlias": "SwitchBot", |
3 | | - "pluginType": "platform", |
4 | | - "singular": true, |
5 | | - "customUi": true, |
6 | | - "customUiPath": "./dist/homebridge-ui", |
7 | | - "headerDisplay": "<p align='center'><img width='100px' src='https://user-images.githubusercontent.com/9875439/102681754-ac2eb800-4189-11eb-8e17-7c47c804484b.png'></p>\n\nThe **SwitchBot** plugin allows you to control SwitchBot Devices. Use the hybrid client (BLE + OpenAPI) or only OpenAPI by supplying an Open Token.", |
8 | | - "footerDisplay": "Please raise any issues on our [project page](https://github.com/OpenWonderLabs/homebridge-switchbot/issues).", |
9 | | - "schema": { |
10 | | - "type": "object", |
11 | | - "required": [], |
12 | | - "properties": { |
13 | | - "name": { |
14 | | - "type": "string", |
15 | | - "title": "Name", |
16 | | - "default": "SwitchBot" |
17 | | - }, |
18 | | - "openApiToken": { |
19 | | - "type": "string", |
20 | | - "title": "OpenAPI Token", |
21 | | - "description": "SwitchBot OpenAPI token used as a fallback when BLE isn't available. Keep this secret.", |
22 | | - "format": "password" |
23 | | - }, |
24 | | - "openApiSecret": { |
25 | | - "type": "string", |
26 | | - "title": "OpenAPI Secret (optional)", |
27 | | - "description": "Optional OpenAPI secret for certain account setups.", |
28 | | - "format": "password" |
29 | | - }, |
30 | | - "enableMatter": { |
31 | | - "type": "boolean", |
32 | | - "title": "Enable Matter Support", |
33 | | - "default": true, |
34 | | - "description": "Allow the plugin to register Matter accessories when Homebridge Matter is available." |
35 | | - }, |
36 | | - "preferMatter": { |
37 | | - "type": "boolean", |
38 | | - "title": "Prefer Matter when available", |
39 | | - "default": true, |
40 | | - "description": "If enabled and Matter is available, device will be presented as Matter accessories where supported." |
41 | | - }, |
42 | | - "devices": { |
43 | | - "type": "array", |
44 | | - "title": "Devices", |
45 | | - "description": "List of SwitchBot devices to manage. Use the UI to add devices and copy device IDs.", |
46 | | - "items": { |
47 | | - "type": "object", |
48 | | - "required": ["deviceId", "configDeviceType"], |
49 | | - "properties": { |
50 | | - "configDeviceName": { |
51 | | - "type": "string", |
52 | | - "title": "Name", |
53 | | - "description": "Friendly name for this device as shown in HomeKit/Matter." |
54 | | - }, |
55 | | - "deviceId": { |
56 | | - "type": "string", |
57 | | - "title": "Device ID", |
58 | | - "description": "The SwitchBot device identifier (MAC or SwitchBot Cloud deviceId). Use the plugin UI to copy this." |
59 | | - }, |
60 | | - "configDeviceType": { |
61 | | - "type": "string", |
62 | | - "title": "Device Type", |
63 | | - "description": "Select the device type so the plugin can expose the correct HomeKit/Matter services and characteristics.", |
64 | | - "enum": [ |
65 | | - "bot", |
66 | | - "curtain", |
67 | | - "fan", |
68 | | - "light", |
69 | | - "lightstrip", |
70 | | - "motion", |
71 | | - "contact", |
72 | | - "vacuum", |
73 | | - "lock", |
74 | | - "humidifier", |
75 | | - "temperature", |
76 | | - "relay", |
77 | | - "plug", |
78 | | - "wosweeper", |
79 | | - "blindtilt", |
80 | | - "curtain3", |
81 | | - "rollershade", |
82 | | - "meter", |
83 | | - "waterdetector", |
84 | | - "walletfinder", |
85 | | - "unknown" |
86 | | - ], |
87 | | - "default": "unknown" |
88 | | - }, |
89 | | - "connectionPreference": { |
90 | | - "type": "string", |
91 | | - "title": "Connection Preference", |
92 | | - "description": "Select whether this device should prefer BLE, OpenAPI, or auto-detect (hybrid).", |
93 | | - "enum": ["auto", "ble", "openapi"], |
94 | | - "default": "auto" |
95 | | - }, |
96 | | - "room": { |
97 | | - "type": "string", |
98 | | - "title": "Room", |
99 | | - "description": "Optional room/location metadata for the device." |
100 | | - } |
| 1 | +{ |
| 2 | + "pluginAlias": "SwitchBot", |
| 3 | + "pluginType": "platform", |
| 4 | + "singular": true, |
| 5 | + "customUi": true, |
| 6 | + "customUiPath": "./dist/homebridge-ui", |
| 7 | + "headerDisplay": "<p align='center'><img width='100px' src='https://user-images.githubusercontent.com/9875439/102681754-ac2eb800-4189-11eb-8e17-7c47c804484b.png'></p>\n\nThe **SwitchBot** plugin allows you to control SwitchBot Devices. Use the hybrid client (BLE + OpenAPI) or only OpenAPI by supplying an Open Token.", |
| 8 | + "footerDisplay": "Please raise any issues on our [project page](https://github.com/OpenWonderLabs/homebridge-switchbot/issues).", |
| 9 | + "schema": { |
| 10 | + "type": "object", |
| 11 | + "required": [], |
| 12 | + "properties": { |
| 13 | + "name": { |
| 14 | + "type": "string", |
| 15 | + "title": "Name", |
| 16 | + "default": "SwitchBot" |
| 17 | + }, |
| 18 | + "openApiToken": { |
| 19 | + "type": "string", |
| 20 | + "title": "OpenAPI Token", |
| 21 | + "description": "SwitchBot OpenAPI token used as a fallback when BLE isn't available. Keep this secret.", |
| 22 | + "format": "password" |
| 23 | + }, |
| 24 | + "openApiSecret": { |
| 25 | + "type": "string", |
| 26 | + "title": "OpenAPI Secret (optional)", |
| 27 | + "description": "Optional OpenAPI secret for certain account setups.", |
| 28 | + "format": "password" |
| 29 | + }, |
| 30 | + "enableMatter": { |
| 31 | + "type": "boolean", |
| 32 | + "title": "Enable Matter Support", |
| 33 | + "default": true, |
| 34 | + "description": "Allow the plugin to register Matter accessories when Homebridge Matter is available." |
| 35 | + }, |
| 36 | + "preferMatter": { |
| 37 | + "type": "boolean", |
| 38 | + "title": "Prefer Matter when available", |
| 39 | + "default": true, |
| 40 | + "description": "If enabled and Matter is available, device will be presented as Matter accessories where supported." |
| 41 | + }, |
| 42 | + "devices": { |
| 43 | + "type": "array", |
| 44 | + "title": "Devices", |
| 45 | + "description": "List of SwitchBot devices to manage. Use the UI to add devices and copy device IDs.", |
| 46 | + "items": { |
| 47 | + "type": "object", |
| 48 | + "required": ["deviceId", "configDeviceType"], |
| 49 | + "properties": { |
| 50 | + "configDeviceName": { |
| 51 | + "type": "string", |
| 52 | + "title": "Name", |
| 53 | + "description": "Friendly name for this device as shown in HomeKit/Matter." |
| 54 | + }, |
| 55 | + "deviceId": { |
| 56 | + "type": "string", |
| 57 | + "title": "Device ID", |
| 58 | + "description": "The SwitchBot device identifier (MAC or SwitchBot Cloud deviceId). Use the plugin UI to copy this." |
| 59 | + }, |
| 60 | + "configDeviceType": { |
| 61 | + "type": "string", |
| 62 | + "title": "Device Type", |
| 63 | + "description": "Select the device type so the plugin can expose the correct HomeKit/Matter services and characteristics.", |
| 64 | + "enum": [ |
| 65 | + "bot", |
| 66 | + "curtain", |
| 67 | + "fan", |
| 68 | + "light", |
| 69 | + "lightstrip", |
| 70 | + "motion", |
| 71 | + "contact", |
| 72 | + "vacuum", |
| 73 | + "lock", |
| 74 | + "humidifier", |
| 75 | + "temperature", |
| 76 | + "relay", |
| 77 | + "plug", |
| 78 | + "wosweeper", |
| 79 | + "blindtilt", |
| 80 | + "curtain3", |
| 81 | + "rollershade", |
| 82 | + "meter", |
| 83 | + "waterdetector", |
| 84 | + "walletfinder", |
| 85 | + "unknown" |
| 86 | + ], |
| 87 | + "default": "unknown" |
| 88 | + }, |
| 89 | + "connectionPreference": { |
| 90 | + "type": "string", |
| 91 | + "title": "Connection Preference", |
| 92 | + "description": "Select whether this device should prefer BLE, OpenAPI, or auto-detect (hybrid).", |
| 93 | + "enum": ["auto", "ble", "openapi"], |
| 94 | + "default": "auto" |
| 95 | + }, |
| 96 | + "room": { |
| 97 | + "type": "string", |
| 98 | + "title": "Room", |
| 99 | + "description": "Optional room/location metadata for the device." |
101 | 100 | } |
102 | 101 | } |
103 | 102 | } |
104 | 103 | } |
105 | 104 | } |
106 | 105 | } |
| 106 | +} |
0 commit comments