-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathconfig.schema.json
More file actions
135 lines (135 loc) · 4.45 KB
/
config.schema.json
File metadata and controls
135 lines (135 loc) · 4.45 KB
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
{
"pluginAlias": "GoogleCastPlugin",
"pluginType": "platform",
"singular": true,
"schema": {
"type": "object",
"properties": {
"devices": {
"type": "array",
"items": {
"title": "Chromecasts",
"type": "object",
"properties": {
"name": {
"title": "Name or IP",
"type": "string",
"required": true,
"default": "Living Room",
"description": "The device name of your Chromecast (as seen in Google Home app) - or IP address if static"
},
"displayName": {
"title": "Display Name",
"type": "string",
"required": false,
"placeholder": "Living Room TV",
"description": "The display name for your Chromecast in Homebridge and the Home app (leave blank for same as above)"
},
"type": {
"title": "Device Type",
"type": "string",
"oneOf": [
{ "title": "Chromecast Audio / Cast Audio Device", "enum": ["audio"] },
{ "title": "Chromecast Streaming Stick (e.g. Google TV)", "enum": ["streamstick"] },
{ "title": "Android TV", "enum": ["tv"] }
],
"required": true,
"default": "audio"
},
"volumeService": {
"title": "Volume / Play-pause service",
"type": "boolean",
"required": true,
"default": true,
"description": "Expose a lightbulb for this device where the brightness corresponds to the device volume and on/off corresponds to play/pause"
},
"motionService": {
"title": "Streaming service",
"type": "boolean",
"required": true,
"default": false,
"description": "Expose a motion sensor for this device which is active when the device is streaming"
},
"tvApps": {
"type": "array",
"condition": {
"functionBody": "return model.devices[arrayIndices].type !== 'audio';"
},
"items": {
"title": "Apps",
"type": "object",
"properties": {
"link": {
"title": "App Link",
"type": "string",
"required": false,
"placeholder": "https://www.netflix.com/title.*",
"description": "The android manifest app link / deeplink for this app (required if you want to open the app from Homekit)"
},
"id": {
"title": "App ID",
"type": "string",
"required": true,
"default": "com.netflix.ninja",
"description": "The android app bundle identifier"
},
"name": {
"title": "Display Name",
"type": "string",
"required": true,
"default": "Netflix",
"description": "The display name to use for this app's input source in the Home app"
}
}
}
},
"tvCert": {
"title": "TV Certificate",
"type": "object",
"required": false,
"properties": {
"key": {
"title": "Private Key",
"type": "string"
},
"cert": {
"title": "Certificate",
"type": "string"
}
}
}
}
}
}
}
},
"layout": [
{
"key": "devices",
"type": "array",
"orderable": true,
"buttonText": "Add Chromecast",
"items": [
"devices[].name",
"devices[].displayName",
"devices[].type",
"devices[].volumeService",
"devices[].motionService",
{
"key": "devices[].tvApps",
"type": "array",
"title": "Apps",
"expandable": true,
"expanded": true,
"orderable": true,
"buttonText": "Add App",
"items": [
"devices[].tvApps[].link",
"devices[].tvApps[].id",
"devices[].tvApps[].name"
]
}
]
}
]
}