-
-
Notifications
You must be signed in to change notification settings - Fork 20
/
config.schema.json
170 lines (170 loc) · 4.5 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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
{
"pluginAlias": "ZP",
"pluginType": "platform",
"singular": true,
"headerDisplay": "Homebridge plugin for Sonos ZonePlayer",
"footerDisplay": "",
"schema": {
"type": "object",
"properties": {
"name": {
"description": "Plugin name as displayed in the Homebridge log.",
"type": "string",
"required": true,
"default": "Sonos"
},
"alarms": {
"description": "Create an additional Switch service for each alarm.",
"type": "boolean"
},
"brightness": {
"description": "Expose volume as Brightness.",
"type": "boolean"
},
"excludeAirPlay": {
"title": "Exclude AirPlay 2",
"description": "Exclude AirPlay 2 zone players that are already exposed to Apple's Home app.",
"type": "boolean"
},
"forceS2": {
"description": "Force S2 compatibility.",
"type": "boolean",
"default": false
},
"heartrate": {
"description": "Interval (in seconds) to poll zone player. Default: disabled.",
"type": "integer"
},
"leds": {
"title": "LEDs",
"description": "Create an additional Lightbulb service for the LED. Also create an accessory for each slave zone player.",
"type": "boolean"
},
"maxFavourites": {
"description": "Maximum number of favourites supported, between 16 and 96. Default: 96.",
"type": "integer"
},
"port": {
"description": "Port to use for webserver receiving zone player notifications. Default: random.",
"type": "integer",
"maximum": 65535
},
"resetTimeout": {
"description": "Timeout (in milliseconds) to reset input. Default: 500.",
"type": "integer"
},
"service": {
"description": "HomeKit service type for Sonos and Switch services.",
"type": "string",
"required": true,
"default": "switch",
"oneOf": [
{
"title": "Switch",
"enum": [
"switch"
]
},
{
"title": "Lightbulb",
"enum": [
"light"
]
},
{
"title": "Speaker",
"enum": [
"speaker"
]
},
{
"title": "Fan",
"enum": [
"fan"
]
}
]
},
"speakers": {
"description": "Create an additional Speaker service for each zone.",
"type": "boolean"
},
"subscriptionTimeout": {
"description": "Duration (in minutes) of subscriptions to ZonePlayer notifications. Default: 30.",
"type": "integer"
},
"timeout": {
"description": "Timeout (in seconds) to wait for a response from a Sonos ZonePlayer. Default: 15.",
"type": "integer"
},
"tv": {
"title": "TV",
"description": "Create an additional, non-bridged TV accessory for each zone.",
"type": "boolean"
},
"tvIdPrefix": {
"title": "TV ID Prefix",
"description": "Prefix for serial number of TV accessories. Default: 'TV'",
"type": "string"
}
}
},
"form": [
"name",
{
"type": "fieldset",
"expandable": true,
"title": "What",
"description": "Select what to expose to HomeKit for each zone.",
"items": [
"forceS2",
"speakers",
"alarms",
"leds",
{
"key": "heartrate",
"condition": {
"functionBody": "return model.leds"
}
},
"excludeAirPlay"
]
},
{
"type": "fieldset",
"expandable": true,
"title": "How",
"description": "Select how to expose a zone to HomeKit.",
"items": [
"service",
{
"key": "brightness",
"condition": {
"functionBody": "return model.service === 'switch' || model.service === 'speaker'"
}
},
"tv",
{
"key": "maxFavourites",
"condition": {
"functionBody": "return model.tv"
}
}
]
},
{
"type": "fieldset",
"expandable": true,
"title": "Advanced Settings",
"description": "Don't change these, unless you understand what you're doing.",
"items": [
"resetTimeout",
"subscriptionTimeout",
"timeout",
"address",
"port",
"tvIdPrefix"
]
}
]
}