-
Notifications
You must be signed in to change notification settings - Fork 5
/
config.schema.json
84 lines (84 loc) · 2.7 KB
/
config.schema.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
{
"pluginAlias": "cmd4AdvantageAir",
"pluginType": "platform",
"singular": true,
"customUi": true,
"headerDisplay": "Homebridge plugin for AdvantageAir devices",
"schema": {
"debug": {
"title": "debug",
"type": "boolean",
"description": "Enables additional output in the log.",
"required": false,
"placeholder": false
},
"type": "object",
"properties": {
"name": {
"title": "Name",
"type": "string",
"default": "cmd4AdvantageAir",
"required": true
},
"devices": {
"type": "array",
"items": {
"title": "AdvantageAir device",
"type": "object",
"properties": {
"name": {
"title": "Name",
"description": "The name of the AdvantageAir device, default=Aircon",
"type": "string",
"required": true,
"default": "Aircon"
},
"ipAddress": {
"title": "IP Address",
"description": "The device's IP address. It is recommended to set a static IP for this device.",
"type": "string",
"format": "ipv4",
"required": true,
"placeholder": "192.168.0.1"
},
"port": {
"title": "PORT used",
"description": "The PORT number used for this device, default=2025.",
"type": "number",
"required": true,
"default": "2025"
},
"debug": {
"title": "Enable detailed debug log",
"description": "Enables a detailed debug log. Useful when trying to figure out issues with the plugin.",
"type": "boolean",
"required": false,
"default": false
}
}
}
}
}
},
"layout": [
{
"type": "fieldset",
"title": "AdvantageAir Device Settings",
"description": "Enter below the name and IP address of your AdvantageAir device.",
"items": [
]
},
{
"key": "devices",
"type": "tabarray",
"title": "{{ value.name || 'new device' }}",
"description": "Note: only a maximum of 3 AdvantageAir devices can be processed by Config Creator.",
"items": [
"devices[].name",
"devices[].ipAddress",
"devices[].port",
"devices[].debug"
]
}
]
}