homebridge-securitysystem 6.5.2 → 6.6.0-beta.1

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.
@@ -1,9 +1,19 @@
1
+ # To get started with Dependabot version updates, you'll need to specify which
2
+ # package ecosystems to update and where the package manifests are located.
3
+ # Please see the documentation for all configuration options:
4
+ # https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
5
+
1
6
  version: 2
2
7
  updates:
3
- - package-ecosystem: npm
4
- directory: "/"
5
- schedule:
6
- interval: daily
7
- time: '18:00'
8
- timezone: Europe/Madrid
9
- open-pull-requests-limit: 10
8
+ - package-ecosystem: "github-actions"
9
+ directory: "/"
10
+ schedule:
11
+ interval: "daily"
12
+
13
+ - package-ecosystem: npm
14
+ directory: "/"
15
+ schedule:
16
+ interval: daily
17
+ time: "18:00"
18
+ timezone: Europe/Madrid
19
+ open-pull-requests-limit: 10
@@ -7,19 +7,23 @@ changelog:
7
7
  - title: ☢️ Security
8
8
  labels:
9
9
  - security
10
+ - vulnerability
10
11
 
11
12
  - title: 💥 Breaking Changes
12
13
  labels:
13
- - breaking-change
14
14
  - breaking
15
+ - breaking-change
15
16
 
16
17
  - title: 🎉 New Features
17
18
  labels:
18
- - enhancement
19
19
  - feature
20
20
 
21
+ - title: 💅 Enhancements
22
+ - enhancement
23
+
21
24
  - title: 🐛 Bug Fixes
22
25
  labels:
26
+ - bug
23
27
  - bugfix
24
28
 
25
29
  - title: 📦 Dependencies
@@ -17,7 +17,7 @@ jobs:
17
17
  pull-requests: write
18
18
 
19
19
  steps:
20
- - uses: actions/stale@v5
20
+ - uses: actions/stale@v6
21
21
  with:
22
22
  repo-token: ${{ secrets.GITHUB_TOKEN }}
23
23
  stale-issue-message: 'This issue has been automatically marked as stale because it has not had recent activity. It will be closed in a few days if no further activity occurs. Thank you for your contributions.'
@@ -13,6 +13,12 @@
13
13
  "default": "Security System",
14
14
  "required": true
15
15
  },
16
+ "serial_number": {
17
+ "title": "Serial Number",
18
+ "type": "string",
19
+ "default": "S3CUR1TYSYST3M",
20
+ "required": true
21
+ },
16
22
  "default_mode": {
17
23
  "title": "Default Mode",
18
24
  "type": "string",
@@ -527,6 +533,7 @@
527
533
  },
528
534
  "layout": [
529
535
  "name",
536
+ "serial_number",
530
537
  "default_mode",
531
538
  {
532
539
  "type": "div",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "homebridge-securitysystem",
3
3
  "displayName": "Homebridge Security System",
4
- "version": "6.5.2",
4
+ "version": "6.6.0-beta.1",
5
5
  "description": "Homebridge plugin that creates a security system accessory that can be triggered by HomeKit sensors.",
6
6
  "main": "src/index.js",
7
7
  "scripts": {
package/src/index.js CHANGED
@@ -344,7 +344,7 @@ function SecuritySystem(log, config) {
344
344
  );
345
345
  this.accessoryInformationService.setCharacteristic(
346
346
  Characteristic.SerialNumber,
347
- "S3CUR1TYSYST3M"
347
+ options.serialNumber
348
348
  );
349
349
  this.accessoryInformationService.setCharacteristic(
350
350
  Characteristic.FirmwareRevision,
@@ -3,6 +3,7 @@ const options = {
3
3
  options.checkDeprecated(log, config);
4
4
 
5
5
  options.name = config.name;
6
+ options.serialNumber = config.serial_number;
6
7
  options.defaultMode = config.default_mode;
7
8
  options.armSeconds = config.arm_seconds;
8
9
  options.triggerSeconds = config.trigger_seconds;
@@ -132,6 +133,10 @@ const options = {
132
133
  options.name = "Security System";
133
134
  }
134
135
 
136
+ if (options.isValueSet(options.serialNumber) === false) {
137
+ options.name = "S3CUR1TYSYST3M";
138
+ }
139
+
135
140
  if (options.isValueSet(options.defaultMode) === false) {
136
141
  options.defaultMode = "off";
137
142
  }