forked from node-alarm-dot-com/homebridge-node-alarm-dot-com
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.schema.json
104 lines (104 loc) · 3.43 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
{
"pluginAlias": "Alarmdotcom",
"pluginType": "platform",
"singular": true,
"headerDisplay": "<h4><b>Alarm.com security system plugin using Node.js API</b></h4>",
"schema": {
"definitions": {
"arming_obj": {
"type": "object",
"properties": {
"noEntryDelay": {"type": "boolean", "default": false},
"silentArming": {"type": "boolean", "default": false},
"nightArming": {"type": "boolean", "default": false}
}
}
},
"type": "object",
"properties": {
"name": {
"title": "<b>Name</b>",
"type": "string",
"default": "Security System",
"description": "The name that will appear in your homebridge log.",
"required": true
},
"username": {
"title": "<b>Username</b>",
"type": "string",
"description": "Alarm.com login username, same as app.",
"required": true
},
"password": {
"title": "<b>Password</b>",
"type": "string",
"description": "Alarm.com login password, same as app.",
"required": true
},
"useMFA": {
"title": "Use Two Factor",
"type": "boolean"
},
"mfaCookie": {
"title": "2FA Cookie",
"type": "string",
"description": "If your account uses 2-factor, you'll need to input a twoFactorAuthenticationId from a logged in browser",
"required": false,
"condition": {
"functionBody": "return model.useMFA === true"
}
},
"logLevel": {
"title": "<b>Log Level</b>",
"type": "integer",
"default": 3,
"required": true,
"oneOf": [
{"title": "0 - No log entries", "enum": [0]},
{"title": "1 - Only errors", "enum": [1]},
{"title": "2 - Only warnings and errors", "enum": [2]},
{"title": "3 - Notices, warnings, and errors (Default)", "enum": [3]},
{"title": "4 - Verbose", "enum": [4]}
]
},
"authTimeoutMinutes": {
"title": "<b>Timeout to Re-Authenticate Session</b>",
"type": "integer",
"placeholder": 10,
"description": "(<u>WARNING:</u> choosing a time less than 10 minutes could possibly ban/disable your account from Alarm.com.)"
},
"pollTimeoutSeconds": {
"title": "<b>Device Polling Interval<b>",
"type": "integer",
"placeholder": 60,
"description": "(<u>WARNING:</u> choosing a time less than 60 seconds could possibly ban/disable your account from Alarm.com.)"
},
"armingModes": {
"title": "<b>Alarm.com arming modes</b>.<p>Not all panels are compatible with silent arming. Enabling this without proper support will break thatt arming type.",
"type": "object",
"properties": {
"away": {
"$ref": "#/definitions/arming_obj", "extendRefs": true
},
"night": {
"$ref": "#/definitions/arming_obj", "extendRefs": true
},
"stay": {
"$ref": "#/definitions/arming_obj", "extendRefs": true
}
}
},
"ignoredDevices": {
"title": "Ignored Devices",
"description": "IDs for Alarm.com accessories you wish to hide in Homekit.",
"type": "array",
"maxItems": 0,
"items": {
"title": "Ignored Device",
"type": "string",
"placeholder": "96922426-1 (Example)"
}
}
}
}
}