-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathconfig.schema-wip.json
196 lines (196 loc) · 5.46 KB
/
config.schema-wip.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
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
{
"pluginAlias": "yamaha-home",
"pluginType": "platform",
"singular": true,
"headerDisplay": "<p align='center'><img width='250px' src='https://raw.githubusercontent.com/NorthernMan54/homebridge-yamaha-home/refs/heads/beta-0.2.0/docs/yamaha_purple.svg'></p>\n\nThe **Homebridge Yamaha Home** plugin allows you to control your Yamaha Receiver HomeKit.",
"schema": {
"type": "object",
"properties": {
"play_volume": {
"type": "number",
"title": "Play Volume",
"description": "Sets the volume when turning on. Default: -48",
"default": -48
},
"min_volume": {
"type": "number",
"title": "Minimum Volume",
"description": "Sets the minimum volume level."
},
"max_volume": {
"type": "number",
"title": "Maximum Volume",
"description": "Sets the maximum volume level."
},
"setMainInputTo": {
"type": "string",
"title": "Main Input",
"description": "Sets the input when turning on."
},
"manual_addresses": {
"title": "Manual Addresses",
"type": "array",
"required": false,
"default": "",
"items": {
"type": "string"
}
},
"expected_devices": {
"type": "number",
"title": "Expected Devices",
"description": "Maximum number of accessories created. Default: 5.",
"default": 5
},
"discovery_timeout": {
"type": "number",
"title": "Discovery Timeout",
"description": "Time to stay in discovery mode. Default: 10 seconds.",
"default": 10
},
"radio_presets": {
"type": "boolean",
"title": "Radio Presets",
"description": "Create a switch for each radio preset. Default: false.",
"default": false
},
"preset_num": {
"type": "boolean",
"title": "Preset Numbers",
"description": "Names the switch the preset number or frequency. Default: false.",
"default": false
},
"flush": {
"type": "boolean",
"title": "Flush receiver cache",
"description": "Removes all cached devices from homebridge.",
"default": false
},
"zone": {
"type": "string",
"title": "Zone",
"description": "The zone name to control."
},
"zone_controllers_only_for": {
"type": "array",
"title": "Zone Controllers Only For",
"description": "List of zone names for which accessories will be created.",
"items": {
"type": "string"
}
},
"zone_name_map": {
"type": "object",
"title": "Zone Name Map",
"description": "Map of old zone names to new zone names.",
"additionalProperties": {
"type": "string"
}
},
"party_switch": {
"type": "boolean",
"title": "Party Switch",
"description": "Enable Party Mode Switch."
},
"inputs_as_accessories": {
"type": "object",
"title": "Inputs as Accessories",
"description": "Creates Input or Scene switches.",
"properties": {
"YamahaReceiver": {
"type": "object",
"additionalProperties": {
"type": "object",
"properties": {
"name": {
"type": "string",
"title": "Accessory Name"
},
"setInputTo": {
"type": "string",
"title": "Set Input To"
},
"set_default_volume": {
"type": "number",
"title": "Set Default Volume"
},
"set_scene": {
"type": "string",
"title": "Set Scene"
}
}
}
}
}
},
"spotify": {
"type": "boolean",
"title": "Spotify Buttons",
"description": "Enable Spotify control buttons. Default: false.",
"default": false
},
"nozones": {
"type": "boolean",
"title": "No Zones",
"description": "Do not create an accessory per zone. Default: false.",
"default": false
}
}
},
"form": [
{
"type": "fieldset",
"expandable": true,
"title": "Create Switches for Various Functions",
"items": [
"radio_presets",
"preset_num",
"spotify",
"party_switch"
]
},
{
"type": "fieldset",
"expandable": true,
"title": "Volume Settings",
"items": [
"play_volume",
"min_volume",
"max_volume"
]
},
{
"type": "fieldset",
"expandable": true,
"title": "Optional Settings",
"items": [
"setMainInputTo",
"zone",
"zone_controllers_only_for",
"zone_name_map",
"inputs_as_accessories",
"nozones"
]
},
{
"type": "fieldset",
"expandable": true,
"title": "Advanced Settings",
"items": [
"flush",
"discovery_timeout",
{
"key": "manual_addresses",
"type": "array",
"required": false,
"items": {
"title": "IP Address or hostname",
"description": "Addresses for your Yamaha receivers. Only required if Bonjour/Autodetection doesn't work.",
"type": "string"
}
},
"expected_devices"
]
}
]
}