forked from lukasroegner/homebridge-apple-tv-remote
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.schema.json
93 lines (93 loc) · 3.57 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
{
"pluginAlias": "AppleTvPlatform",
"pluginType": "platform",
"headerDisplay": "The **Homebridge Apple TV Remote** plugin allows you to controlling Apple TVs in homebridge. For instructions on how to create credentials, visit the [GitHub repository](https://github.com/lukasroegner/homebridge-apple-tv-remote).",
"footerDisplay": "For help please visit the [GitHub repository](https://github.com/lukasroegner/homebridge-apple-tv-remote).",
"singular": true,
"schema": {
"type": "object",
"properties": {
"name": {
"type": "string",
"title": "Name",
"default": "Apple TV Platform"
},
"devices": {
"type": "array",
"title": "Devices",
"description": " Array of all your Apple TV devices that the plugin should expose.",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"title": "Device Name",
"required": true,
"placeholder": "Must be a Unique Name..."
},
"credentials": {
"type": "string",
"title": "Device Credentials",
"required": true,
"placeholder": "77346115-ED48-46A8-A288-<snip>"
},
"isOnOffSwitchEnabled": {
"type": "boolean",
"title": "Enable ON/OFF Switch"
},
"onOffSwitchName": {
"type": "string",
"title": "Name of ON/OFF Switch",
"placeholder": "Unique Name..."
},
"isPlayPauseSwitchEnabled": {
"type": "boolean",
"title": "Enable Play/Pause Switch"
},
"playPauseSwitchName": {
"type": "string",
"title": "Name of Play/Pause Switch",
"placeholder": "Unique Name..."
},
"commandSwitches": {
"type": "array",
"title": "Command Switches",
"description": "You can provide a list of switches that should be additionally exposed to HomeKit. Those switches are stateless and execute the configured commands.",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"title": "Name",
"description": "The name of the command switch. Make sure to use a unique name for the switch (it can be renamed in the Home app afterwards)."
},
"commands": {
"type": "array",
"title": "The Commands Schema",
"description": "The commands that should be executed when the switch is enabled. See API for the commands syntax."
}
}
}
}
}
}
},
"isApiEnabled": {
"type": "boolean",
"title": "Enable API",
"description": "Enables an HTTP API for controlling devices. Defaults to false. See API for more information."
},
"apiPort": {
"type": "integer",
"title": "API Port",
"placeholder": "40304",
"description": "The port that the API (if enabled) runs on. Defaults to 40304, please change this setting of the port is already in use."
},
"apiToken": {
"type": "string",
"title": "API Token",
"description": "The token that has to be included in each request of the API. Is required if the API is enabled and has no default value."
}
}
}
}