forked from jmaferreira/homebridge-garage-door-shelly1
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.schema.json
106 lines (106 loc) · 3.29 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
{
"pluginAlias": "ShellyDoorLock",
"pluginType": "accessory",
"singular": false,
"schema": {
"type": "object",
"properties": {
"name": {
"title": "Name",
"type": "string",
"required": true,
"description": "Name to appear in the Home app"
},
"http_method": {
"title": "HTTP Method",
"type": "string",
"oneOf": [
{
"title": "GET",
"enum": ["GET"]
},
{
"title": "POST",
"enum": ["POST"]
}
],
"required": true,
"default": "GET",
"description": "The HTTP method to be used to communicate with the device API."
},
"unlockURL": {
"title": "Unlock URL",
"type": "string",
"required": true,
"description": "URL to trigger the opening of your garage"
},
"lockURL": {
"title": "Lock URL",
"type": "string",
"required": true,
"description": "URL to trigger the closing of your garage"
},
"username": {
"title": "Username",
"type": "string",
"description": "Username if HTTP authentication is enabled"
},
"password": {
"title": "Password",
"type": "string",
"description": "Password if HTTP authentication is enabled"
},
"polling": {
"title": "Poll state",
"type": "boolean",
"default": false,
"description": "Whether the state should be polled at intervals (requires magnetic sensor)."
},
"pollInterval": {
"title": "Polling interval",
"type": "integer",
"default": 120,
"description": "Time (in seconds) between device polls (if `polling` is enabled) "
},
"statusURL": {
"title": "Status polling URL",
"type": "string",
"description": "URL to retrieve state on poll (if `statusField*` options are not set, expects HTTP response body to be `0` or `1`)"
},
"statusKey": {
"title": "Status Key",
"type": "string",
"default": "$.inputs[0].input",
"description": "JSONPath that identifies the property that contains the status of the door (e.g. `$.inputs[0].input` is the default for Shelly 1) | `$.inputs[0].input`"
},
"statusValueUnlocked": {
"title": "Unlocked status value",
"type": "string",
"default": "0",
"description": "Regex that will match the `unlocked` state of the relay status (e.g. `unlocked`)"
},
"statusValueLocked": {
"title": "Locked status value",
"type": "string",
"default": "1",
"description": "Regex that will match the `locked` state of the relay status (e.g. `locked`)"
},
"manufacturer": {
"title": "Manufactor",
"type": "string",
"description": "Appears under the Manufacturer field for the accessory"
},
"model": {
"title": "Model",
"type": "string",
"description": "Appears under the Model field for the accessory"
},
"debug": {
"title": "Debug mode",
"type": "boolean",
"default": false,
"description": "Turn on debug mode, i.e. additional information will show up on the homebridge log."
}
}
}
}