-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfig.schema.json
52 lines (50 loc) · 1.51 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
{
"pluginAlias": "Volumio Speakers",
"pluginType": "platform",
"singular": true,
"schema": {
"type": "object",
"properties": {
"serverURL": {
"title": "Server URL",
"description": "Only one Volumio server URL is required. Other instances/zones will be auto discovered from this one",
"type": "string",
"default": "http://volumio.local",
"pattern": "^https?:\/\/(.*)[^/]$",
"required": true
},
"serverPort": {
"title": "Websocket Port",
"description": "Default port for Volumio websocket is 3000. You should only need to change this if you're doing some advanced networking",
"type": "number",
"placeholder": 3000,
"minimum": 0,
"maximum": 65353
},
"makeDummySensor": {
"title": "Dummy Sensors",
"description": "Creates another sensor type accessory for each discovered Volumio Zone. The status of the sensor is true while media is playing. This is used for building automations triggered by Volumio playing music",
"type": "boolean",
"default": false
}
}
},
"layout": [
{
"key": "serverURL",
"validationMessage": {
"202": "Must include protocol and no trailing slash (e.g. http://volumio.local, https://192.168.1.100, etc)"
}
},
{
"type": "section",
"title": "Advanced",
"expandable": true,
"expanded": false,
"items": [
"makeDummySensor",
"serverPort"
]
}
]
}