generated from homebridge/homebridge-plugin-template
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfig.schema.json
95 lines (92 loc) · 2.9 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
{
"pluginAlias": "CiscoIPPhone",
"pluginType": "platform",
"singular": true,
"schema": {
"type": "object",
"properties": {
"phones": {
"title": "Cisco IP Phones",
"type": "array",
"required": true,
"items" : {
"title" : "Phone Config",
"type" : "object",
"required" : true,
"properties" : {
"IPAddress" : {
"title" : "IP Address",
"type" : "string",
"format" : "ipv4",
"required" : true,
"placeholder" : "XXX.XXX.XXX.XXX"
},
"DeviceType" : {
"title" : "Homekit Device Type",
"type" : "string",
"default" : "contact",
"required" : true,
"oneOf" : [
{ "title" : "Contact Sensor" , "enum" : ["contact"] },
{ "title" : "Light Bulb" , "enum" : ["light"] },
{ "title" : "Fan" , "enum" : ["fan"] }
]
},
"PollingInterval" : {
"title" : "Interval to poll device in Milliseconds (0 to disable)",
"type" : "integer",
"default" : 60000,
"required" : true,
"minimum" : 0,
"maximum" : 86400000
},
"Actions" : {
"title" : "Configure Action Switches",
"type" : "array",
"required" : false,
"items" : {
"title" : "Action Config",
"type" : "object",
"required" : false,
"properties" : {
"DeviceName" : {
"title" : "Switch Name",
"type" : "string",
"placeholder" : "Name",
"required" : true
},
"ExecItems" : {
"title" : "Exec Items",
"type" : "array",
"required" : true,
"items" : {
"title" : "Exec Item",
"type" : "object",
"required" : true,
"properties" : {
"URL" : {
"title" : "Action URL",
"type" : "string",
"placeholder" : "Play:Piano1.raw",
"required" : true
},
"Priority" : {
"title" : "Priority",
"type" : "string",
"default" : "0",
"required" : true,
"oneOf" : [
{ "title" : "Execute Immediately" , "enum" : ["0"] },
{ "title" : "Execute When Idle" , "enum" : ["1"] },
{ "title" : "Execute If Idle" , "enum" : ["2"] }
]
}
}
}}}}
}
}
}
}
}
}
}