homebridge-texecom-full 4.2.3 → 4.2.5
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.
- package/.github/ISSUE_TEMPLATE/bug_report.md +38 -0
- package/.github/ISSUE_TEMPLATE/custom.md +10 -0
- package/.github/ISSUE_TEMPLATE/feature_request.md +20 -0
- package/CHANGELOG.md +14 -1
- package/README.md +8 -4
- package/config.schema.json +2 -0
- package/index.js +0 -12
- package/package.json +7 -7
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: Bug report
|
|
3
|
+
about: Create a report to help us improve
|
|
4
|
+
title: ''
|
|
5
|
+
labels: ''
|
|
6
|
+
assignees: ''
|
|
7
|
+
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
**Describe the bug**
|
|
11
|
+
A clear and concise description of what the bug is.
|
|
12
|
+
|
|
13
|
+
**To Reproduce**
|
|
14
|
+
Steps to reproduce the behavior:
|
|
15
|
+
1. Go to '...'
|
|
16
|
+
2. Click on '....'
|
|
17
|
+
3. Scroll down to '....'
|
|
18
|
+
4. See error
|
|
19
|
+
|
|
20
|
+
**Expected behavior**
|
|
21
|
+
A clear and concise description of what you expected to happen.
|
|
22
|
+
|
|
23
|
+
**Screenshots**
|
|
24
|
+
If applicable, add screenshots to help explain your problem.
|
|
25
|
+
|
|
26
|
+
**Desktop (please complete the following information):**
|
|
27
|
+
- OS: [e.g. iOS]
|
|
28
|
+
- Browser [e.g. chrome, safari]
|
|
29
|
+
- Version [e.g. 22]
|
|
30
|
+
|
|
31
|
+
**Smartphone (please complete the following information):**
|
|
32
|
+
- Device: [e.g. iPhone6]
|
|
33
|
+
- OS: [e.g. iOS8.1]
|
|
34
|
+
- Browser [e.g. stock browser, safari]
|
|
35
|
+
- Version [e.g. 22]
|
|
36
|
+
|
|
37
|
+
**Additional context**
|
|
38
|
+
Add any other context about the problem here.
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: Feature request
|
|
3
|
+
about: Suggest an idea for this project
|
|
4
|
+
title: ''
|
|
5
|
+
labels: ''
|
|
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.
|
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,19 @@
|
|
|
2
2
|
|
|
3
3
|
This change log documents all release versions of homebridge-texecom
|
|
4
4
|
|
|
5
|
+
|
|
6
|
+
### 4.2.5 (2025-01-03)
|
|
7
|
+
|
|
8
|
+
- **TWEAK** - Added the version for serial port to work on new node.js
|
|
9
|
+
|
|
10
|
+
### 4.2.5-beta.1 (2024-12-17)
|
|
11
|
+
|
|
12
|
+
- **TWEAK** - Added the version for serial port to work on new node.js
|
|
13
|
+
|
|
14
|
+
### 4.2.3 (2024-10-09)
|
|
15
|
+
|
|
16
|
+
- **TWEAK** - Trying to get verified by homebridge
|
|
17
|
+
|
|
5
18
|
### 4.2.2-beta2 (2024-10-09)
|
|
6
19
|
|
|
7
20
|
- **TWEAK** - Can not install in certain cases. Added post script to check if python is installed.
|
|
@@ -33,4 +46,4 @@ This change log documents all release versions of homebridge-texecom
|
|
|
33
46
|
|
|
34
47
|
### 1.0.0 (2017-01-21)
|
|
35
48
|
|
|
36
|
-
- **FEATURE** - Initial release.
|
|
49
|
+
- **FEATURE** - Initial release.
|
package/README.md
CHANGED
|
@@ -1,16 +1,18 @@
|
|
|
1
|
-
[](https://www.npmjs.com/package/homebridge-texecom-full)
|
|
2
|
-
[](https://www.npmjs.com/package/homebridge-texecom-full)
|
|
2
|
+
[](https://www.npmjs.com/package/homebridge-texecom-full)
|
|
3
|
+
[](https://www.npmjs.com/package/homebridge-texecom-full)
|
|
4
|
+
[](https://github.com/K1LL3R234/homebridge-texecom)
|
|
3
5
|
# homebridge-texecom-full
|
|
4
6
|
|
|
5
7
|
A plugin for [Homebridge](https://github.com/nfarina/homebridge) that creates HomeKit motion, contact, smoke, or carbon monoxide sensors for alarm zones from a Texecom Premier intruder alarm via a serial connection or COM-IP module.
|
|
6
8
|
|
|
7
9
|
You can receive notifications, which can be set to work only when you're away from home:
|
|
8
10
|
|
|
9
|
-

|
|
10
12
|
|
|
11
13
|
Another great use is to use the alarm's motion sensors to switch lights on automatically:
|
|
12
14
|
|
|
13
|
-

|
|
14
16
|
|
|
15
17
|
You can also set automations to happen when you arm the alarm and when the alarm goes off.
|
|
16
18
|
|
|
@@ -134,6 +136,8 @@ To configure your COM1 port for the Crestron protocol:
|
|
|
134
136
|
|
|
135
137
|
Press "Menu" repeatedly to exit the engineer menu.
|
|
136
138
|
|
|
139
|
+
**Make sure you program your UDL code in the panel too.**
|
|
140
|
+
|
|
137
141
|
If connecting to a COM-IP, set up the COM-IP as usual and ensure it is working. Then change the configuration for the port the COM-IP is connected to to Crestron as detailed above. This allows the panel to configure the IP address into the module, then changing to Crestron will allow the panel to input/output the correct commands.
|
|
138
142
|
|
|
139
143
|
## Future features
|
package/config.schema.json
CHANGED
|
@@ -48,6 +48,7 @@
|
|
|
48
48
|
},
|
|
49
49
|
"zones": {
|
|
50
50
|
"type": "array",
|
|
51
|
+
"title": "Zones",
|
|
51
52
|
"items": {
|
|
52
53
|
"type": "object",
|
|
53
54
|
"properties": {
|
|
@@ -83,6 +84,7 @@
|
|
|
83
84
|
},
|
|
84
85
|
"areas": {
|
|
85
86
|
"type": "array",
|
|
87
|
+
"title": "Areas",
|
|
86
88
|
"items": {
|
|
87
89
|
"type": "object",
|
|
88
90
|
"properties": {
|
package/index.js
CHANGED
|
@@ -17,11 +17,6 @@ const LogUtil = require('./util/logutil');
|
|
|
17
17
|
var areas_armed = []; // Creates an empty array, which can later grow dynamically
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
var serialPort;
|
|
21
|
-
var connection;
|
|
22
|
-
|
|
23
|
-
var service_area;
|
|
24
|
-
|
|
25
20
|
var setByAlarm = false;
|
|
26
21
|
|
|
27
22
|
|
|
@@ -528,14 +523,7 @@ function writeCommandAndWaitForOK(connection, command, retryCount = 1) {
|
|
|
528
523
|
}
|
|
529
524
|
|
|
530
525
|
function is_armed(area_number) {
|
|
531
|
-
//let isAreaArmed = false;
|
|
532
|
-
|
|
533
526
|
let isAreaArmed = areas_armed.some(value => value === area_number);
|
|
534
|
-
/*areas_armed.forEach(function (value) {
|
|
535
|
-
if (value === area_number) {
|
|
536
|
-
isAreaArmed = true;
|
|
537
|
-
}
|
|
538
|
-
});*/
|
|
539
527
|
|
|
540
528
|
return isAreaArmed;
|
|
541
529
|
}
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"displayName": "Homebridge Texecom",
|
|
3
3
|
"name": "homebridge-texecom-full",
|
|
4
|
-
"description": "A plugin for homebridge
|
|
5
|
-
"version": "4.2.
|
|
4
|
+
"description": "A plugin for homebridge to integrate Texecom Premier Elite alarm systems into HomeKit",
|
|
5
|
+
"version": "4.2.5",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Chris Posthumus",
|
|
8
8
|
"email": "chris.posthumus@gmail.com"
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
],
|
|
41
41
|
"engines": {
|
|
42
42
|
"homebridge": "^1.6.0 || ^2.0.0-beta.0",
|
|
43
|
-
"node": "
|
|
43
|
+
"node": ">=18.20.4",
|
|
44
44
|
"python": ">=3.6.0"
|
|
45
45
|
},
|
|
46
46
|
"homebridge": {
|
|
@@ -49,9 +49,9 @@
|
|
|
49
49
|
]
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|
|
52
|
-
"debug": "^2.
|
|
53
|
-
"serialport": "^
|
|
54
|
-
"string": "
|
|
52
|
+
"debug": "^4.2.0",
|
|
53
|
+
"serialport": "^12.0.0",
|
|
54
|
+
"string": ">=3.3.3",
|
|
55
55
|
"zpad": "^0.5.0"
|
|
56
56
|
}
|
|
57
|
-
}
|
|
57
|
+
}
|