summaryrefslogtreecommitdiff
path: root/config.schema.json
diff options
context:
space:
mode:
authorZhineng Li <[email protected]>2026-03-29 06:53:53 +0800
committerZhineng Li <[email protected]>2026-03-29 06:53:53 +0800
commit256f19558f8ed5747c15c85f7e401835787504eb (patch)
tree1d879482c4945bd2b5d6fd94e60d831f6023d33c /config.schema.json
downloadhomebridge-xiaomi-aircondition-ma2-256f19558f8ed5747c15c85f7e401835787504eb.tar.gz
homebridge-xiaomi-aircondition-ma2-256f19558f8ed5747c15c85f7e401835787504eb.zip
first commit
Diffstat (limited to 'config.schema.json')
-rw-r--r--config.schema.json45
1 files changed, 45 insertions, 0 deletions
diff --git a/config.schema.json b/config.schema.json
new file mode 100644
index 0000000..7cd254e
--- /dev/null
+++ b/config.schema.json
@@ -0,0 +1,45 @@
+{
+ "pluginAlias": "XiaomiAirConditionMa2",
+ "pluginType": "platform",
+ "singular": true,
+ "schema": {
+ "devices": {
+ "type": "array",
+ "items": {
+ "title": "Device",
+ "type": "object",
+ "properties": {
+ "name": {
+ "title": "Name",
+ "type": "string",
+ "required": true,
+ "default": "Mijia Air Conditioner C1"
+ },
+ "address": {
+ "title": "IP Address",
+ "type": "string",
+ "required": true
+ },
+ "token": {
+ "title": "Token",
+ "type": "string",
+ "required": true
+ }
+ }
+ }
+ }
+ },
+ "layout": [
+ {
+ "key": "devices",
+ "type": "array",
+ "orderable": false,
+ "buttonText": "Add Device",
+ "items": [
+ "devices[].name",
+ "devices[].address",
+ "devices[].token"
+ ]
+ }
+ ]
+}