forked from amcdnl/homebridge-sonos-announcer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.schema.json
67 lines (67 loc) · 2.39 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
{
"pluginAlias": "SonosAnnouncer",
"pluginType": "platform",
"singular": true,
"schema": {
"type": "object",
"properties": {
"switches": {
"type": "array",
"items": {
"title": "Sonos Announcer Switch",
"type": "object",
"properties": {
"switchName": {
"title": "Switch Name",
"description": "The name of the Switch that will be created in Homebridge",
"type": "string",
"required": true
},
"deviceNames": {
"title": "Sonos Devices",
"description": "The devices to play the notification on",
"type": "array",
"items": {
"title": "Device Name",
"description": "Name of the Sonos device (must be exact!)",
"type": "string"
},
"required": true
},
"trackUri": {
"title": "URL to audio file (can be any uri sonos understands)",
"default": "https://translate.google.com/translate_tts?ie=UTF-8&client=tw-ob&tl=en&q=There%27s%20someone%20at%20the%20door",
"type": "string",
"required": true
},
"timeout": {
"title": "Timeout",
"description": "Number of seconds to return back to the original source of playback. Should be approx notification length plus 2 seconds for best results.",
"type": "integer",
"default": 10,
"required": true
},
"volume": {
"title": "Volume",
"description": "If included the volume will be changed before playing the notification and reverted back afterwards.",
"type": "integer",
"default": 65,
"minimum": 1,
"maximum": 100,
"required": false
},
"delayMs": {
"title": "Delay",
"description": "Sometimes sonos needs some extra time to play the notification. Set this to a value between 100 and 500 to wait that number of milliseconds to wait before sending the next command.",
"type": "integer",
"minimum": 100,
"maximum": 500,
"default": 100,
"required": true
}
}
}
}
}
}
}