-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.schema.json
67 lines (67 loc) · 2.17 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
{
"pluginAlias": "tp-link-access-control",
"pluginType": "platform",
"singular": true,
"headerDisplay": "<p align=\"center\"><img width=\"50%\" src=\"https://raw.githubusercontent.com/jgrimard/homebridge-tp-link-access-control/main/images/Homebridge%20TP-Link%20Logo.png\"></p><p align=\"center\">For help and support please visit the <a href=\"https://github.com/jgrimard/homebridge-tp-link-access-control\">GitHub Project Page</a>.</p>",
"schema": {
"definitions": {
"devices_obj": {
"type": "object",
"title": "Device",
"properties": {
"name": {
"type": "string",
"title": "Name",
"description": "Name of the device to control, this will show up in the Home app",
"placeholder": "Device Name",
"required": true
},
"mac": {
"type": "string",
"title": "MAC Address",
"pattern": "^([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})$",
"description": "MAC Address of the device to control",
"placeholder": "00:00:00:00:00:00",
"required": true
}
}
}
},
"type": "object",
"title": "TP Link Access Control",
"description": "TP Link Access Control",
"properties": {
"name": {
"type": "string",
"title": "Plugin Name",
"description": "Plugin name as displayed in the Homebridge log",
"default": "TP Link Access Control",
"minLength": 1,
"required": true
},
"ipAddress": {
"type": "string",
"title": "Router IP Address",
"description": "IP Address of the TP Link router",
"default": "192.168.1.1",
"required": true
},
"password": {
"type": "string",
"title": "Router Local Password",
"description": "Local Password of the TP Link router",
"default": "admin",
"required": true
},
"devices": {
"type": "array",
"title": "Devices",
"description": "List of devices to control",
"minItems": 1,
"items": {
"$ref": "#/definitions/devices_obj"
}
}
}
}
}