summaryrefslogtreecommitdiff
path: root/config.schema.json
diff options
context:
space:
mode:
authorLi Zhineng <[email protected]>2025-07-22 08:01:28 +0800
committerLi Zhineng <[email protected]>2025-07-22 08:01:28 +0800
commit391eeb229882870a1c2311c820cc910890b35d9d (patch)
tree407c6e346032444249effedaef305649fbb87493 /config.schema.json
downloadhomebridge-airmx-391eeb229882870a1c2311c820cc910890b35d9d.tar.gz
homebridge-airmx-391eeb229882870a1c2311c820cc910890b35d9d.zip
first commit
Diffstat (limited to 'config.schema.json')
-rw-r--r--config.schema.json38
1 files changed, 38 insertions, 0 deletions
diff --git a/config.schema.json b/config.schema.json
new file mode 100644
index 0000000..f53abf7
--- /dev/null
+++ b/config.schema.json
@@ -0,0 +1,38 @@
+{
+ "pluginAlias": "Airmx",
+ "pluginType": "platform",
+ "singular": true,
+ "schema": {
+ "type": "object",
+ "properties": {
+ "mqtt": {
+ "title": "MQTT Broker URL",
+ "type": "string",
+ "placeholder": "mqtt://192.168.10.10",
+ "required": true
+ },
+ "devices": {
+ "title": "Devices",
+ "type": "array",
+ "items": {
+ "title": "Device",
+ "type": "object",
+ "properties": {
+ "id": {
+ "title": "ID",
+ "type": "number",
+ "placeholder": "12345",
+ "required": true
+ },
+ "key": {
+ "title": "Key",
+ "type": "string",
+ "placeholder": "XOXOXOXOXOXOXOXOXOXOXOXOXOXOXOXO",
+ "required": true
+ }
+ }
+ }
+ }
+ }
+ }
+}