From 256f19558f8ed5747c15c85f7e401835787504eb Mon Sep 17 00:00:00 2001 From: Zhineng Li Date: Sun, 29 Mar 2026 06:53:53 +0800 Subject: first commit --- config.schema.json | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 config.schema.json (limited to 'config.schema.json') 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" + ] + } + ] +} -- cgit v1.2.3