@brandonarrindell/homebridge-envisalink 1.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (84) hide show
  1. package/.eslintrc.json +38 -0
  2. package/.github/FUNDING.yml +2 -0
  3. package/.github/ISSUE_TEMPLATE/bug-report.md +44 -0
  4. package/.github/ISSUE_TEMPLATE/config.yml +5 -0
  5. package/.github/ISSUE_TEMPLATE/feature-request.md +23 -0
  6. package/.github/ISSUE_TEMPLATE/support-request.md +38 -0
  7. package/.github/dependabot.yml +9 -0
  8. package/.github/workflows/build.yml +31 -0
  9. package/LICENSE +21 -0
  10. package/README.md +207 -0
  11. package/config.schema.json +240 -0
  12. package/dist/configTypes.d.ts +39 -0
  13. package/dist/configTypes.d.ts.map +1 -0
  14. package/dist/configTypes.js +3 -0
  15. package/dist/configTypes.js.map +1 -0
  16. package/dist/constants.d.ts +4 -0
  17. package/dist/constants.d.ts.map +1 -0
  18. package/dist/constants.js +7 -0
  19. package/dist/constants.js.map +1 -0
  20. package/dist/customCommandAccessory.d.ts +17 -0
  21. package/dist/customCommandAccessory.d.ts.map +1 -0
  22. package/dist/customCommandAccessory.js +51 -0
  23. package/dist/customCommandAccessory.js.map +1 -0
  24. package/dist/index.d.ts +7 -0
  25. package/dist/index.d.ts.map +1 -0
  26. package/dist/index.js +7 -0
  27. package/dist/index.js.map +1 -0
  28. package/dist/networkScanner.d.ts +42 -0
  29. package/dist/networkScanner.d.ts.map +1 -0
  30. package/dist/networkScanner.js +191 -0
  31. package/dist/networkScanner.js.map +1 -0
  32. package/dist/nodeAlarmProxyTypes.d.ts +17 -0
  33. package/dist/nodeAlarmProxyTypes.d.ts.map +1 -0
  34. package/dist/nodeAlarmProxyTypes.js +3 -0
  35. package/dist/nodeAlarmProxyTypes.js.map +1 -0
  36. package/dist/panicAccessory.d.ts +23 -0
  37. package/dist/panicAccessory.d.ts.map +1 -0
  38. package/dist/panicAccessory.js +69 -0
  39. package/dist/panicAccessory.js.map +1 -0
  40. package/dist/partitionAccessory.d.ts +21 -0
  41. package/dist/partitionAccessory.d.ts.map +1 -0
  42. package/dist/partitionAccessory.js +202 -0
  43. package/dist/partitionAccessory.js.map +1 -0
  44. package/dist/platform.d.ts +58 -0
  45. package/dist/platform.d.ts.map +1 -0
  46. package/dist/platform.js +529 -0
  47. package/dist/platform.js.map +1 -0
  48. package/dist/settings.d.ts +9 -0
  49. package/dist/settings.d.ts.map +1 -0
  50. package/dist/settings.js +12 -0
  51. package/dist/settings.js.map +1 -0
  52. package/dist/types.d.ts +55 -0
  53. package/dist/types.d.ts.map +1 -0
  54. package/dist/types.js +52 -0
  55. package/dist/types.js.map +1 -0
  56. package/dist/util.d.ts +8 -0
  57. package/dist/util.d.ts.map +1 -0
  58. package/dist/util.js +75 -0
  59. package/dist/util.js.map +1 -0
  60. package/dist/zoneAccessory.d.ts +19 -0
  61. package/dist/zoneAccessory.d.ts.map +1 -0
  62. package/dist/zoneAccessory.js +74 -0
  63. package/dist/zoneAccessory.js.map +1 -0
  64. package/docs/EnvisaLinkTPI-1-08.pdf +0 -0
  65. package/jest.config.ts +30 -0
  66. package/nodemon.json +12 -0
  67. package/package.json +69 -0
  68. package/src/configTypes.ts +43 -0
  69. package/src/constants.ts +3 -0
  70. package/src/customCommandAccessory.ts +52 -0
  71. package/src/index.ts +11 -0
  72. package/src/networkScanner.ts +211 -0
  73. package/src/nodeAlarmProxyTypes.ts +20 -0
  74. package/src/panicAccessory.ts +72 -0
  75. package/src/partitionAccessory.ts +219 -0
  76. package/src/platform.ts +544 -0
  77. package/src/settings.ts +9 -0
  78. package/src/types.ts +85 -0
  79. package/src/util.ts +75 -0
  80. package/src/zoneAccessory.ts +95 -0
  81. package/test/integration.spec.ts +121 -0
  82. package/test/networkScanner.spec.ts +283 -0
  83. package/test/util.spec.ts +106 -0
  84. package/tsconfig.json +27 -0
package/.eslintrc.json ADDED
@@ -0,0 +1,38 @@
1
+ {
2
+ "parser": "@typescript-eslint/parser",
3
+ "extends": [
4
+ "eslint:recommended",
5
+ "plugin:@typescript-eslint/eslint-recommended",
6
+ "plugin:@typescript-eslint/recommended" // uses the recommended rules from the @typescript-eslint/eslint-plugin
7
+ ],
8
+ "parserOptions": {
9
+ "ecmaVersion": 2018,
10
+ "sourceType": "module"
11
+ },
12
+ "ignorePatterns": [
13
+ "dist"
14
+ ],
15
+ "rules": {
16
+ "quotes": ["warn", "single"],
17
+ "indent": ["warn", 4, { "SwitchCase": 1 }],
18
+ "semi": ["off"],
19
+ "comma-dangle": ["warn", "always-multiline"],
20
+ "dot-notation": "off",
21
+ "eqeqeq": "warn",
22
+ "curly": ["warn", "all"],
23
+ "brace-style": ["warn"],
24
+ "prefer-arrow-callback": ["warn"],
25
+ "max-len": ["warn", 160],
26
+ "no-console": ["warn"], // use the provided Homebridge log method instead
27
+ "no-non-null-assertion": ["off"],
28
+ "comma-spacing": ["error"],
29
+ "no-multi-spaces": ["warn", { "ignoreEOLComments": true }],
30
+ "no-trailing-spaces": ["warn"],
31
+ "lines-between-class-members": ["warn", "always", {"exceptAfterSingleLine": true}],
32
+ "@typescript-eslint/explicit-function-return-type": "off",
33
+ "@typescript-eslint/no-non-null-assertion": "off",
34
+ "@typescript-eslint/explicit-module-boundary-types": "off",
35
+ "@typescript-eslint/semi": ["warn"],
36
+ "@typescript-eslint/member-delimiter-style": ["warn"]
37
+ }
38
+ }
@@ -0,0 +1,2 @@
1
+ custom: https://paypal.me/dustinclark04
2
+ github: dustindclark
@@ -0,0 +1,44 @@
1
+ ---
2
+ name: Bug Report
3
+ about: Create a report to help us improve
4
+ title: ''
5
+ labels: bug
6
+ assignees: ''
7
+
8
+ ---
9
+
10
+ <!-- You must use the issue template below when submitting a bug -->
11
+
12
+ **Describe The Bug:**
13
+ <!-- A clear and concise description of what the bug is. -->
14
+
15
+ **To Reproduce:**
16
+ <!-- Steps to reproduce the behavior. -->
17
+
18
+ **Expected behavior:**
19
+ <!-- A clear and concise description of what you expected to happen. -->
20
+
21
+ **Logs:**
22
+
23
+ ```
24
+ Show the Homebridge logs here, remove any sensitive information.
25
+ ```
26
+
27
+ **Plugin Config:**
28
+
29
+ ```json
30
+ Show your Homebridge config.json here, remove any sensitive information.
31
+ ```
32
+
33
+ **Screenshots:**
34
+ <!-- If applicable, add screenshots to help explain your problem. -->
35
+
36
+ **Environment:**
37
+
38
+ * **Plugin Version**:
39
+ * **Homebridge Version**: <!-- homebridge -V -->
40
+ * **Node.js Version**: <!-- node -v -->
41
+ * **NPM Version**: <!-- npm -v -->
42
+ * **Operating System**: <!-- Raspbian / Ubuntu / Debian / Windows / macOS / Docker / hb-service -->
43
+
44
+ <!-- Click the "Preview" tab before you submit to ensure the formatting is correct. -->
@@ -0,0 +1,5 @@
1
+ # blank_issues_enabled: false
2
+ # contact_links:
3
+ # - name: Homebridge Discord Community
4
+ # url: https://discord.gg/kqNCe2D
5
+ # about: Ask your questions in the #YOUR_CHANNEL_HERE channel
@@ -0,0 +1,23 @@
1
+ ---
2
+ name: Feature Request
3
+ about: Suggest an idea for this project
4
+ title: ''
5
+ labels: enhancement
6
+ assignees: ''
7
+
8
+ ---
9
+
10
+ **Is your feature request related to a problem? Please describe:**
11
+ <!-- A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] -->
12
+
13
+ **Describe the solution you'd like:**
14
+ <!-- A clear and concise description of what you want to happen. -->
15
+
16
+ **Describe alternatives you've considered:**
17
+ <!-- A clear and concise description of any alternative solutions or features you've considered. -->
18
+
19
+ **Additional context:**
20
+ <!-- Add any other context or screenshots about the feature request here. -->
21
+
22
+
23
+ <!-- Click the "Preview" tab before you submit to ensure the formatting is correct. -->
@@ -0,0 +1,38 @@
1
+ ---
2
+ name: Support Request
3
+ about: Need help?
4
+ title: ''
5
+ labels: question
6
+ assignees: ''
7
+
8
+ ---
9
+
10
+ <!-- You must use the issue template below when submitting a support request -->
11
+
12
+ **Describe Your Problem:**
13
+ <!-- A clear and concise description of what problem you are trying to solve. -->
14
+
15
+ **Logs:**
16
+
17
+ ```
18
+ Show the Homebridge logs here, remove any sensitive information.
19
+ ```
20
+
21
+ **Plugin Config:**
22
+
23
+ ```json
24
+ Show your Homebridge config.json here, remove any sensitive information.
25
+ ```
26
+
27
+ **Screenshots:**
28
+ <!-- If applicable, add screenshots to help explain your problem. -->
29
+
30
+ **Environment:**
31
+
32
+ * **Plugin Version**:
33
+ * **Homebridge Version**: <!-- homebridge -V -->
34
+ * **Node.js Version**: <!-- node -v -->
35
+ * **NPM Version**: <!-- npm -v -->
36
+ * **Operating System**: <!-- Raspbian / Ubuntu / Debian / Windows / macOS / Docker / hb-service -->
37
+
38
+ <!-- Click the "Preview" tab before you submit to ensure the formatting is correct. -->
@@ -0,0 +1,9 @@
1
+ version: 2
2
+ updates:
3
+ - package-ecosystem: "npm"
4
+ directory: "/"
5
+ schedule:
6
+ interval: "daily"
7
+ # Always increase the version requirement
8
+ # to match the new version.
9
+ versioning-strategy: increase
@@ -0,0 +1,31 @@
1
+ name: Build and Lint
2
+
3
+ on: [push, pull_request]
4
+
5
+ jobs:
6
+ build:
7
+ runs-on: ubuntu-latest
8
+
9
+ strategy:
10
+ matrix:
11
+ # the Node.js versions to build on
12
+ node-version: [12.x, 13.x, 14.x, 15.x, 16.x]
13
+
14
+ steps:
15
+ - uses: actions/checkout@v2
16
+
17
+ - name: Use Node.js ${{ matrix.node-version }}
18
+ uses: actions/setup-node@v2
19
+ with:
20
+ node-version: ${{ matrix.node-version }}
21
+
22
+ - name: Install dependencies
23
+ run: npm install
24
+
25
+ - name: Lint the project
26
+ run: npm run lint
27
+
28
+ - name: Build the project
29
+ run: npm run build
30
+ env:
31
+ CI: true
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2016 Dustin Clark
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,207 @@
1
+ # @brandonarrindell/homebridge-envisalink
2
+
3
+ [![npm version](https://img.shields.io/npm/v/@brandonarrindell/homebridge-envisalink.svg)](https://www.npmjs.com/package/@brandonarrindell/homebridge-envisalink)
4
+ [![npm downloads](https://img.shields.io/npm/dm/@brandonarrindell/homebridge-envisalink.svg)](https://www.npmjs.com/package/@brandonarrindell/homebridge-envisalink)
5
+
6
+ > A maintained fork of [homebridge-envisalink](https://github.com/dustindclark/homebridge-envisalink) (v1.2.10) with enhanced features and Homebridge 2.0 support.
7
+
8
+ This Homebridge plugin integrates your Envisalink security system with HomeKit, allowing you to:
9
+ - Control your alarm panel (arm/disarm) using Siri or any HomeKit app
10
+ - Monitor sensors for automations (e.g., turn on lights when doors open)
11
+ - Trigger panic buttons (police, fire, ambulance) from HomeKit
12
+ - Auto-discover Envisalink devices on your network
13
+
14
+ ## Version History
15
+
16
+ This fork continues from version 1.2.10 of the original plugin:
17
+
18
+ - v1.3.0 - First release of the fork
19
+ - Added Homebridge 2.0 support
20
+ - Added auto-discovery feature
21
+ - Improved stability and error handling
22
+ - TypeScript rewrite
23
+
24
+ For earlier version history, see the [original repository](https://github.com/dustindclark/homebridge-envisalink).
25
+
26
+ ## Features
27
+
28
+ ✨ **What's New in This Fork**
29
+ - Full Homebridge 2.0 compatibility
30
+ - Automatic discovery of Envisalink devices
31
+ - Improved stability and error handling
32
+ - Regular updates and maintenance
33
+ - TypeScript rewrite for better reliability
34
+
35
+ 🔒 **Core Features**
36
+ - Support for both Envisalink 3 and 4
37
+ - DSC and Honeywell panel support
38
+ - Zone monitoring (doors, windows, motion, smoke, leak sensors)
39
+ - Multiple partition support
40
+ - Custom command support
41
+ - Chime control
42
+ - Panic buttons
43
+
44
+ ## Installation
45
+
46
+ ```bash
47
+ npm install -g @brandonarrindell/homebridge-envisalink
48
+ ```
49
+
50
+ ## Configuration
51
+
52
+ Add to your Homebridge config.json:
53
+
54
+ ```json
55
+ {
56
+ "platforms": [
57
+ {
58
+ "platform": "Envisalink",
59
+ "enableAutoDiscovery": true,
60
+ "host": "192.168.0.XXX", // Optional if enableAutoDiscovery is true
61
+ "deviceType": "DSC",
62
+ "password": "YOUR_PASSWORD", // Default is "user"
63
+ "pin": "YOUR_PANEL_PIN",
64
+ "suppressZoneAccessories": false,
65
+ "suppressClockReset": false,
66
+ "ambulancePanic": {
67
+ "enabled": true,
68
+ "name": "Ambulance Panic"
69
+ },
70
+ "firePanic": {
71
+ "enabled": true,
72
+ "name": "Fire Panic"
73
+ },
74
+ "policePanic": {
75
+ "enabled": true,
76
+ "name": "Police Panic"
77
+ },
78
+ "partitions": [
79
+ {
80
+ "name": "Main Alarm",
81
+ "enableChimeSwitch": true,
82
+ "pin": "1243"
83
+ }
84
+ ],
85
+ "zones": [
86
+ {
87
+ "name": "Front Door",
88
+ "type": "door",
89
+ "partition": 1
90
+ },
91
+ {
92
+ "name": "Master Bedroom Door",
93
+ "type": "door",
94
+ "partition": 1
95
+ }
96
+ ]
97
+ }
98
+ ]
99
+ }
100
+ ```
101
+
102
+ ### Configuration Options
103
+
104
+ | Option | Type | Default | Description |
105
+ |--------|------|---------|-------------|
106
+ | enableAutoDiscovery | boolean | true | Automatically discover Envisalink devices |
107
+ | host | string | - | IP address of Envisalink (optional with auto-discovery) |
108
+ | deviceType | string | "DSC" | Panel type ("DSC" or "Honeywell") |
109
+ | password | string | "user" | Envisalink web interface password |
110
+ | pin | string | - | Alarm panel PIN for disarming |
111
+ | suppressZoneAccessories | boolean | false | Hide zone accessories in HomeKit |
112
+ | suppressClockReset | boolean | false | Disable hourly panel clock sync |
113
+
114
+ See [config.schema.json](./config.schema.json) for full configuration options.
115
+
116
+ ## Auto-Discovery
117
+
118
+ The auto-discovery feature scans your network for Envisalink devices:
119
+
120
+ 1. Enable with `enableAutoDiscovery: true`
121
+ 2. Omit `host` to use auto-discovery exclusively
122
+ 3. First discovered device will be used
123
+ 4. Manual `host` configuration takes precedence
124
+
125
+ ## Advanced Features
126
+
127
+ ### Home vs. Night Arm Modes
128
+
129
+ - **Home**: Arms in stay mode with entry delay
130
+ - **Night**: Arms in stay mode with no entry delay (instant alarm)
131
+
132
+ ### Non-Sequential Zones
133
+
134
+ For systems with gaps in zone numbering:
135
+
136
+ ```json
137
+ {
138
+ "zones": [
139
+ {
140
+ "name": "Front Door",
141
+ "type": "door",
142
+ "partition": 1,
143
+ "zoneNumber": 1
144
+ },
145
+ {
146
+ "name": "Garage Door",
147
+ "type": "door",
148
+ "partition": 1,
149
+ "zoneNumber": 5
150
+ }
151
+ ]
152
+ }
153
+ ```
154
+
155
+ ### Custom Commands
156
+
157
+ Add custom panel commands:
158
+
159
+ ```json
160
+ {
161
+ "customCommands": [
162
+ {
163
+ "name": "System Test",
164
+ "command": "071*600004"
165
+ }
166
+ ]
167
+ }
168
+ ```
169
+
170
+ ## Troubleshooting
171
+
172
+ ### Common Issues
173
+
174
+ 1. **Connection Problems**
175
+ - Only one socket connection allowed at a time
176
+ - Use wired connections when possible
177
+ - Set static IP for Envisalink
178
+ - Verify password is correct
179
+
180
+ 2. **Debug Mode**
181
+ ```json
182
+ {
183
+ "platforms": [
184
+ {
185
+ "platform": "Envisalink",
186
+ "enableVerboseLogging": true
187
+ }
188
+ ]
189
+ }
190
+ ```
191
+
192
+ ## Contributing
193
+
194
+ 1. Fork the repository
195
+ 2. Create a feature branch
196
+ 3. Commit your changes
197
+ 4. Push to the branch
198
+ 5. Create a Pull Request
199
+
200
+ ## Credits
201
+
202
+ - Original plugin by [Dustin D. Clark](https://github.com/dustindclark)
203
+ - Built on [Node Alarm Proxy](https://www.npmjs.com/package/nodealarmproxy)
204
+
205
+ ## License
206
+
207
+ This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
@@ -0,0 +1,240 @@
1
+ {
2
+ "pluginAlias": "Envisalink",
3
+ "pluginType": "platform",
4
+ "schema": {
5
+ "type": "object",
6
+ "properties": {
7
+ "host": {
8
+ "title": "Host/IP Address",
9
+ "type": "string",
10
+ "required": false,
11
+ "description": "IP Address of Envisalink device. Should be static or DHCP-reserved. If not provided, auto-discovery will be used."
12
+ },
13
+ "enableAutoDiscovery": {
14
+ "title": "Enable Auto-Discovery",
15
+ "type": "boolean",
16
+ "required": false,
17
+ "description": "Automatically discover Envisalink devices on the network. If enabled and no devices are found, you'll need to specify the host manually.",
18
+ "default": true
19
+ },
20
+ "password": {
21
+ "title": "Envisalink Password",
22
+ "type": "string",
23
+ "required": true,
24
+ "description": "This is the password you use to login to the Envislink locally. Access the IP address of your Envisalink in a browser. The password that you use to login is the password that should be used here. Default is 'user' but should be changed in Envisalink settings for security",
25
+ "default": "user"
26
+ },
27
+ "pin": {
28
+ "title": "Alarm PIN",
29
+ "type": "string",
30
+ "required": true,
31
+ "description": "Should be a user PIN (not Installer or Master code)",
32
+ "default": "1234"
33
+ },
34
+ "port": {
35
+ "title": "Envisalink Port",
36
+ "type": "number",
37
+ "required": true,
38
+ "description": "Port that Envisalink is listening on.",
39
+ "default": 4025
40
+ },
41
+ "proxyPort": {
42
+ "title": "Proxy Port",
43
+ "type": "number",
44
+ "required": false,
45
+ "description": "Envisalink only supports 1 connection. If configured, a proxy server will listen on this port in support of multiple connections.",
46
+ "default": 4026
47
+ },
48
+ "enableVerboseLogging": {
49
+ "title": "Enable Verbose Logging",
50
+ "type": "boolean",
51
+ "required": false,
52
+ "description": "Enable verbose debug logging, including Envisalink connection info.",
53
+ "default": false
54
+ },
55
+ "suppressZoneAccessories": {
56
+ "title": "Suppress Accessories",
57
+ "type": "boolean",
58
+ "description": "If selected, panel sensors (contact, motion, etc) will not be added as accessories.",
59
+ "default": false
60
+ },
61
+ "suppressClockReset": {
62
+ "title": "Suppress Clock Reset",
63
+ "type": "boolean",
64
+ "description": "Plugin will update the date/time of your alarm system hourly unless selected",
65
+ "default": true
66
+ },
67
+ "policePanic" :{
68
+ "type": "object",
69
+ "properties": {
70
+ "enabled": {
71
+ "title": "Enable Police Panic",
72
+ "type": "boolean",
73
+ "description": "Creates a switch for police panic button",
74
+ "default": false
75
+ },
76
+ "name": {
77
+ "title": "Police Panic Switch Name",
78
+ "type": "string",
79
+ "description": "Name for police panic button.",
80
+ "default": "Police Panic"
81
+ }
82
+ }
83
+ },
84
+ "ambulancePanic" :{
85
+ "type": "object",
86
+ "properties": {
87
+ "enabled": {
88
+ "title": "Enable Ambulance Panic",
89
+ "type": "boolean",
90
+ "description": "Creates a switch for ambulance panic button",
91
+ "default": false
92
+ },
93
+ "name": {
94
+ "title": "Ambulance Panic Switch Name",
95
+ "type": "string",
96
+ "description": "Name for ambulance panic button.",
97
+ "default": "Ambulance Panic"
98
+ }
99
+ }
100
+ },
101
+ "firePanic" :{
102
+ "type": "object",
103
+ "properties": {
104
+ "enabled": {
105
+ "title": "Enable Fire Panic",
106
+ "type": "boolean",
107
+ "description": "Creates a switch for fire panic button",
108
+ "default": false
109
+ },
110
+ "name": {
111
+ "title": "Fire Panic Switch Name",
112
+ "type": "string",
113
+ "description": "Name for fire panic button.",
114
+ "default": "Fire Panic"
115
+ }
116
+ }
117
+ },
118
+ "partitions": {
119
+ "title": "Partitions",
120
+ "type": "array",
121
+ "items": {
122
+ "title": "Partition",
123
+ "type": "object",
124
+ "properties": {
125
+ "name": {
126
+ "title": "Name",
127
+ "type": "string",
128
+ "description": "Distinguish between partitions if you have multiple (i.e. Upstairs/Downstairs). Otherwise, name your alarm.",
129
+ "required": true
130
+ },
131
+ "enableChimeSwitch": {
132
+ "title": "Enable Chime Switch",
133
+ "type": "boolean",
134
+ "description": "Adds a switch to the partition for enabling/disabling door chime.",
135
+ "required": false,
136
+ "default": false
137
+ },
138
+ "pin": {
139
+ "title": "Partition PIN",
140
+ "type": "string",
141
+ "required": false,
142
+ "description": "Should be a user PIN (not Installer or Master code)"
143
+ }
144
+ }
145
+ }
146
+ },
147
+ "zones": {
148
+ "title": "Zones",
149
+ "type": "array",
150
+ "items": {
151
+ "title": "Zone",
152
+ "type": "object",
153
+ "properties": {
154
+ "name": {
155
+ "title": "Zone Name",
156
+ "type": "string",
157
+ "required": true,
158
+ "description": "Front Door, Guest Windows, etc."
159
+ },
160
+ "partition": {
161
+ "title": "Partition",
162
+ "type": "integer",
163
+ "required": true,
164
+ "default": 1,
165
+ "minimum": 1,
166
+ "description": "Partition number that the zone belongs to."
167
+ },
168
+ "zoneNumber": {
169
+ "title": "Zone Number",
170
+ "type": "integer",
171
+ "required": false,
172
+ "minimum": 1,
173
+ "description": "Assign a zone number (required for nonconsecutive zones), or just list them in the correct order."
174
+ },
175
+ "type": {
176
+ "title": "Sensor Type",
177
+ "type": "string",
178
+ "required": true,
179
+ "description": "Select the type of sensor",
180
+ "oneOf": [
181
+ {
182
+ "title": "Door",
183
+ "enum": [
184
+ "door"
185
+ ]
186
+ },
187
+ {
188
+ "title": "Window",
189
+ "enum": [
190
+ "window"
191
+ ]
192
+ },
193
+ {
194
+ "title": "Leak",
195
+ "enum": [
196
+ "leak"
197
+ ]
198
+ },
199
+ {
200
+ "title": "Smoke",
201
+ "enum": [
202
+ "smoke"
203
+ ]
204
+ },
205
+ {
206
+ "title": "Motion",
207
+ "enum": [
208
+ "motion"
209
+ ]
210
+ }
211
+ ]
212
+ }
213
+ }
214
+ }
215
+ },
216
+ "customCommands": {
217
+ "title": "Custom Commands",
218
+ "type": "array",
219
+ "items": {
220
+ "title": "Custom Command",
221
+ "type": "object",
222
+ "properties": {
223
+ "name": {
224
+ "title": "Name",
225
+ "type": "string",
226
+ "description": "Name of Custom Command",
227
+ "required": true
228
+ },
229
+ "command": {
230
+ "title": "Command",
231
+ "type": "string",
232
+ "description": "Custom Command Sequence",
233
+ "required": true
234
+ }
235
+ }
236
+ }
237
+ }
238
+ }
239
+ }
240
+ }