-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
config.schema.json
81 lines (81 loc) · 3.35 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
{
"pluginAlias": "rfSwitch",
"pluginType": "platform",
"singular": true,
"headerDisplay": "[rpi-rf](https://pypi.org/project/rpi-rf/) Plugin for [Homebridge](https://github.com/nfarina/homebridge).",
"footerDisplay": "Raise [Issues](https://github.com/Sunoo/homebridge-rpi-rf-switch/issues) or submit [Pull Requests](https://github.com/Sunoo/homebridge-rpi-rf-switch/pulls) on [Project Page](https://github.com/Sunoo/homebridge-rpi-rf-switch).",
"schema": {
"type": "object",
"properties": {
"name": {
"title": "Name",
"type": "string",
"required": true,
"default": "RF Switch",
"description": "A unique name for the accessory. It will be used as the accessory name in HomeKit."
},
"gpio": {
"title": "GPIO Pin",
"type": "integer",
"placeholder": 17,
"description": "The BCM number of the pin your RF transmitter is connected to."
},
"repeat": {
"title": "Repeat Cycles",
"type": "integer",
"placeholder": 10,
"description": "RF code repeat cycles."
},
"devices": {
"title": "Devices",
"type": "array",
"required": true,
"minLength": 1,
"items": {
"type": "object",
"properties": {
"name": {
"title": "Name",
"type": "string",
"required": true,
"placeholder": "Outlet 1",
"description": "Name of your device."
},
"on_code": {
"title": "On Code",
"type": "integer",
"required": true,
"placeholder": 999988851,
"description": "RF code to turn on your device."
},
"off_code": {
"title": "Off Code",
"type": "integer",
"required": true,
"placeholder": 999989622,
"description": "RF code to turn off your device."
},
"pulselength": {
"title": "Pulse Length",
"type": "integer",
"placeholder": 350,
"description": "RF code pulse length."
},
"protocol": {
"title": "Protocol",
"type": "integer",
"placeholder": 1,
"description": "RF code protocol."
},
"codelength": {
"title": "Code Length",
"type": "integer",
"placeholder": 24,
"description": "RF code length."
}
}
}
}
}
}
}