forked from ebaauw/homebridge-zp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.schema.json
168 lines (168 loc) · 4.81 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
{
"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"
},
"address": {
"description": "IPv4 address to use for webserver receiving zone player notifications. Default: automatically discovered.",
"type": "string",
"format": "ipv4"
},
"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": {
"title": "Expose only S2 players",
"description": "Set in a Split Sonos System to prevent accidentally exposing the S1 players.",
"type": "boolean"
},
"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"
},
"nameScheme": {
"description": "Accessory name (use '%' for Zone name). Default: '% Sonos'.",
"type": "string"
},
"maxFavourites": {
"description": "Maximum number of favourites supported, between 16 and 96. Default: 96.",
"type": "integer",
"minimum": 16,
"maximum": 96
},
"port": {
"description": "Port to use for webserver receiving ZonePlayer 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" }
},
"nameScheme"
]
},
{
"type": "fieldset",
"expandable": true,
"title": "Advanced Settings",
"description": "Don't change these, unless you understand what you're doing.",
"items": [
"resetTimeout",
"subscriptionTimeout",
"timeout",
"host",
"port",
"tvIdPrefix"
]
}
]
}