generated from homebridge/homebridge-plugin-template
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathconfig.schema.json
68 lines (68 loc) · 2.15 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
{
"pluginAlias": "GpioDoorbell",
"pluginType": "accessory",
"singular": false,
"schema": {
"type": "object",
"properties": {
"name": {
"title": "Name",
"type": "string",
"required": true,
"placeholder": "Doorbell",
"default": "Doorbell"
},
"gpioPin": {
"title": "GPIO pin",
"description": "The GPIO pin that should be used as input.",
"type": "integer",
"required": true,
"placeholder": "e.g. 7 for GPIO 4"
},
"throttleTime": {
"title": "Throttle time",
"description": "How many milliseconds should another ring be ignored after the doorbell rang last?",
"type": "number",
"default": 500
},
"negateInput": {
"title": "Negate input",
"description": "If your circuit is NORMALLY CLOSED, set this to true.",
"type": "boolean",
"default": false
},
"enableOutput": {
"title": "Enable output",
"description": "This way you can easily keep your existing doorbell working or attach a buzzer or other component to your PI.",
"type": "boolean",
"default": false
},
"outputGpioPin": {
"title": "Output GPIO pin",
"description": "The GPIO pin that should be used for output, when the doorbell is ringing.",
"type": "integer",
"required": true,
"placeholder": "e.g. 7 for GPIO 4",
"condition": {
"functionBody": "return model.enableOutput === true;"
}
},
"enableHttpTrigger": {
"title": "Enable HTTP webhook",
"description": "Perform HTTP GET request instead of triggering the doorbell in homekit directly.",
"type": "boolean",
"default": false
},
"httpTriggerUrl": {
"title": "Camera plugin URL (webhook)",
"description": "The URL the HTTP GET request should be performed to.",
"type": "string",
"placeholder": "http://localhost:8080/doorbell?MyCam",
"format": "uri",
"condition": {
"functionBody": "return model.enableHttpTrigger === true;"
}
}
}
}
}