homebridge-securitysystem 6.3.1 → 6.3.3-beta.2

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.
@@ -14,3 +14,4 @@ jobs:
14
14
 
15
15
  with:
16
16
  node-version: 16
17
+ languages: "javascript"
@@ -0,0 +1,25 @@
1
+ name: Install package
2
+
3
+ on:
4
+ push:
5
+ branches-ignore:
6
+ - stable
7
+
8
+ jobs:
9
+ install-package:
10
+ name: Install package
11
+ runs-on: ubuntu-latest
12
+
13
+ steps:
14
+ - name: Checkout repository
15
+ uses: actions/checkout@v3
16
+
17
+ - name: Setup node
18
+ uses: actions/setup-node@v3
19
+
20
+ with:
21
+ cache: "npm"
22
+ registry-url: https://registry.npmjs.org/
23
+
24
+ - name: Install package
25
+ run: npm ci
@@ -5,12 +5,47 @@ on:
5
5
  types: [published]
6
6
 
7
7
  jobs:
8
+ install-package:
9
+ name: Install package
10
+ runs-on: ubuntu-latest
11
+
12
+ steps:
13
+ - name: Checkout repository
14
+ uses: actions/checkout@v3
15
+
16
+ - name: Setup node
17
+ uses: actions/setup-node@v3
18
+
19
+ with:
20
+ cache: "npm"
21
+ registry-url: https://registry.npmjs.org/
22
+
23
+ - name: Install package
24
+ run: npm ci
25
+
8
26
  publish-package:
9
27
  name: Publish package
10
- uses: MiguelRipoll23/global/.github/workflows/publish-package.yml@main
28
+ runs-on: ubuntu-latest
29
+ needs: [install-package]
30
+
31
+ steps:
32
+ - name: Checkout repository
33
+ uses: actions/checkout@v3
34
+
35
+ - name: Setup node
36
+ uses: actions/setup-node@v3
37
+
38
+ with:
39
+ registry-url: https://registry.npmjs.org/
40
+
41
+ - name: Get version
42
+ run: |
43
+ echo "NPM_VERSION=${GITHUB_REF##*/v}" >> $GITHUB_ENV
44
+
45
+ - name: Publish package
11
46
 
12
- with:
13
- node-version: 16
47
+ env:
48
+ NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
14
49
 
15
- secrets:
16
- NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
50
+ run: |
51
+ npm publish --access public --tag "$(if [[ $NPM_VERSION == *-* ]]; then echo beta; else echo latest; fi)"
package/README.md CHANGED
@@ -1,5 +1,6 @@
1
1
  # homebridge-securitysystem
2
- [![npm version](https://badgen.net/npm/v/homebridge-securitysystem)](https://www.npmjs.com/package/homebridge-securitysystem)
2
+
3
+ [![npm version](https://badgen.net/npm/v/homebridge-securitysystem)](https://www.npmjs.com/package/homebridge-securitysystem)
3
4
  [![npm downloads](https://badgen.net/npm/dt/homebridge-securitysystem)](https://www.npmjs.com/package/homebridge-securitysystem)
4
5
  [![verified-by-homebridge](https://badgen.net/badge/homebridge/verified/purple)](https://github.com/homebridge/homebridge/wiki/Verified-Plugins)
5
6
 
@@ -8,11 +9,13 @@ Homebridge plugin that creates a security system accessory that can be triggered
8
9
  [❤️ One-time donation](https://paypal.me/miguelripoll23)
9
10
 
10
11
  ## Installation
12
+
11
13
  If you already have [Homebridge](https://github.com/homebridge/homebridge) installed, execute the following command:
12
14
 
13
15
  `npm i -g --unsafe-perm homebridge-securitysystem`
14
16
 
15
17
  ## Demo
18
+
16
19
  <div align="left">
17
20
  <img align="right" width="206" height="445" src="https://media4.giphy.com/media/wDhRHFfrLRDeC1sXG5/giphy.gif">
18
21
  <p>Want to know how it looks like? It's pretty customizable, you can configure it to show as many switches as you like.</p>
@@ -23,22 +26,25 @@ If you already have [Homebridge](https://github.com/homebridge/homebridge) insta
23
26
  </div>
24
27
 
25
28
  ## Automations
26
- Using the `Home` app is recommended for regular users, for more advanced users the `Eve` or a similar app will let you make use of the custom options that the security system itself exposes.
29
+
30
+ Using the `Home` app is recommended for regular users, for more advanced users the `Eve` or a similar app will let you make use of the custom options that the security system itself exposes.
27
31
 
28
32
  Here are some examples of automations that can be created:
29
33
 
30
- | Trigger | Actions |
31
- |-------------------------------|-----------------------------------|
32
- | Motion is Detected | Turn on `Siren Night` |
33
- | Door is Opened | Turn on `Siren Away` |
34
- | NFC Tag is Detected (1) | Set Security system to `Home` |
35
- | Security System Triggers | Play Audio (2) |
34
+ | Trigger | Actions |
35
+ | ------------------------ | ----------------------------- |
36
+ | Motion is Detected | Turn on `Siren Night` |
37
+ | Door is Opened | Turn on `Siren Away` |
38
+ | NFC Tag is Detected (1) | Set Security system to `Home` |
39
+ | Security System Triggers | Play Audio (2) |
36
40
 
37
41
  (1) Shortcuts app is required to create this automation.
38
42
 
39
43
  (2) AirPlay 2 speaker and Apple Music subscription are required.
40
44
 
41
- **IMPORTANT:** Use an NFC tag to arm/disarm the security system easily and securely without using the `Home` app.
45
+ > **Warning**
46
+ > Use an NFC tag to arm/disarm the security system easily and securely without using the `Home` app.
42
47
 
43
48
  ## Contributions
49
+
44
50
  Pull requests are welcome.
package/package.json CHANGED
@@ -1,12 +1,11 @@
1
1
  {
2
2
  "name": "homebridge-securitysystem",
3
3
  "displayName": "Homebridge Security System",
4
- "version": "6.3.1",
4
+ "version": "6.3.3-beta.2",
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": {
8
- "test": "npm install -g && homebridge -I -D",
9
- "build": "exit 0"
8
+ "test": "npm install -g && homebridge -I -D"
10
9
  },
11
10
  "keywords": [
12
11
  "homebridge-plugin",
@@ -1,14 +0,0 @@
1
- name: Build package
2
-
3
- on:
4
- push:
5
- branches-ignore:
6
- - stable
7
-
8
- jobs:
9
- build-package:
10
- name: Build package
11
- uses: MiguelRipoll23/global/.github/workflows/build-package.yml@main
12
-
13
- with:
14
- node-version: 16