-
-
Notifications
You must be signed in to change notification settings - Fork 8
/
config.schema.json
executable file
·137 lines (136 loc) · 5.21 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
{
"pluginAlias": "SwitcherPlatform",
"pluginType": "platform",
"singular": true,
"headerDisplay": "Homebridge plugin for Switcher smart accessories - if you're having troubles installing the plugin, please Read the <a target=\"_blank\" href=\"https://github.com/nitaybz/homebridge-switcher-platform/blob/master/README.md\">README.md</a> file fully, and submit an issue if the problem persist",
"footerDisplay": "Created by @nitaybz",
"schema": {
"type": "object",
"properties": {
"name": {
"title": "Plugin Name (for logs)",
"type": "string",
"default": "Switcher Platform",
"required": false
},
"token": {
"title": "Token",
"description": "Some devices require a token to operate, the token can be acquired from this link: <a target=\"_blank\" href=\"https://switcher.co.il/GetKey/\">https://switcher.co.il/GetKey/</a>",
"type": "string",
"required": false
},
"debug": {
"title": "Enable Debug Logs",
"description": "When checked, the plugin will produce extra logs for debugging purposes",
"type": "boolean",
"default": false,
"required": false
},
"secondsToRemove": {
"title": "Seconds to remove disconnected device",
"description": "Time in seconds to remove a device if it has not being discovered (default is 10 minutes). set 0 to not remove accessories at all.",
"type": "integer",
"default": 0,
"required": false
},
"devices": {
"type": "array",
"required": false,
"items": {
"title": "Custom Devices Settings",
"type": "object",
"properties": {
"identifier": {
"title": "Identifier (Device ID, device IP or Device Name)",
"description": "Identifier is needed to set custom settings for a specific device. use one of the above as identifier so the plugin will know which device you wish to setup",
"type": "string",
"required": true
},
"accessoryType": {
"title": "Accessory Type",
"description": "Accessory Type and Icon for this specific device - affect functionality (read more in the <a target=\"_blank\" href=\"https://github.com/nitaybz/homebridge-switcher-platform/blob/master/README.md\">README.md</a> file)",
"type": "string",
"required": false,
"oneOf": [
{ "title": "Switch", "enum": ["switch"] },
{ "title": "Outlet", "enum": ["outlet"] },
{ "title": "Water Valve", "enum": ["valve"] }
]
},
"hide": {
"title": "Hide Device",
"description": "Enable to remove this device from HomeKit",
"type": "boolean",
"required": false
}
}
}
},
"customTimers": {
"type": "array",
"required": false,
"items": {
"title": "Custom Timers for Boiler",
"type": "object",
"properties": {
"identifier": {
"title": "Identifier (Device ID, device IP or Device Name)",
"description": "Identifier is needed to set custom timer for a specific device. use one of the above as identifier so the plugin will know which device you wish to control",
"type": "string",
"required": true
},
"shutdownMinutes": {
"title": "Shutdown in Minutes",
"description": "Define how many minutes to run the boiler ON before shutting it OFF automatically",
"type": "integer",
"minimum": 1,
"maximum": 300,
"required": true
}
}
}
}
}
},
"layout": [
{
"key": "name"
},
{
"key": "token"
},
{
"key": "debug"
},
{
"key": "secondsToRemove"
},
{
"key": "devices",
"type": "array",
"title": "Custom Devices Settings",
"orderable": false,
"buttonText": "Add Device",
"expandable": true,
"expanded": false,
"items": [
"devices[].identifier",
"devices[].accessoryType",
"devices[].hide"
]
},
{
"key": "customTimers",
"type": "array",
"title": "Custom Timer for Boiler",
"orderable": false,
"buttonText": "Add Custom Timer",
"expandable": true,
"expanded": false,
"items": [
"customTimers[].identifier",
"customTimers[].shutdownMinutes"
]
}
]
}