homebridge-eggtimer-plugin 1.0.32 → 1.0.33

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.
@@ -10,10 +10,10 @@ updates:
10
10
  - package-ecosystem: "github-actions"
11
11
  directory: "/"
12
12
  schedule:
13
- interval: "weekly"
13
+ interval: "monthly"
14
14
 
15
15
  # Maintain dependencies for npm
16
16
  - package-ecosystem: "pnpm"
17
17
  directory: "/"
18
18
  schedule:
19
- interval: "weekly"
19
+ interval: "monthly"
@@ -22,7 +22,7 @@ jobs:
22
22
  path: node_modules
23
23
  key: ${{ runner.os }}-node-${{ hashFiles('**/pnpm-lock.yaml') }}
24
24
  - name: Use Node.js 20.x
25
- uses: actions/setup-node@v4.0.2
25
+ uses: actions/setup-node@v4.0.3
26
26
  with:
27
27
  node-version: 20.x
28
28
  - uses: pnpm/action-setup@v4
@@ -1,4 +1,4 @@
1
- name: Auto-merge Dependabot
1
+ name: Auto-merge
2
2
  on: pull_request
3
3
 
4
4
  permissions:
@@ -14,7 +14,7 @@ jobs:
14
14
 
15
15
  strategy:
16
16
  matrix:
17
- node-version: [16.x, 18.x, 20.x]
17
+ node-version: [16.x, 18.x, 20.x, 22.x]
18
18
 
19
19
  steps:
20
20
  - uses: actions/checkout@v4
@@ -24,7 +24,7 @@ jobs:
24
24
  path: node_modules
25
25
  key: ${{ runner.os }}-node-${{ hashFiles('**/pnpm-lock.yaml') }}
26
26
  - name: Use Node.js ${{ matrix.node-version }}
27
- uses: actions/setup-node@v4.0.2
27
+ uses: actions/setup-node@v4.0.3
28
28
  with:
29
29
  node-version: ${{ matrix.node-version }}
30
30
  - uses: pnpm/action-setup@v4
@@ -25,10 +25,9 @@ jobs:
25
25
  with:
26
26
  path: node_modules
27
27
  key: ${{ runner.os }}-node-${{ hashFiles('**/pnpm-lock.json') }}
28
- - name: Use Node.js 20.x
29
- uses: actions/setup-node@v4.0.2
28
+ - uses: actions/setup-node@v4.0.3
30
29
  with:
31
- node-version: 20.x
30
+ node-version: 16.x
32
31
  - uses: pnpm/action-setup@v4
33
32
  - run: corepack up
34
33
  - name: Create Pull Request
@@ -12,7 +12,7 @@ jobs:
12
12
  runs-on: ubuntu-latest
13
13
  steps:
14
14
  - uses: actions/checkout@v4
15
- - uses: actions/setup-node@v4.0.2
15
+ - uses: actions/setup-node@v4.0.3
16
16
  with:
17
17
  node-version: 18
18
18
  registry-url: https://registry.npmjs.org/
@@ -34,7 +34,7 @@ jobs:
34
34
  with:
35
35
  ref: main
36
36
  fetch-tags: true
37
- - uses: actions/setup-node@v4.0.2
37
+ - uses: actions/setup-node@v4.0.3
38
38
  with:
39
39
  node-version: 18
40
40
  registry-url: https://registry.npmjs.org/
package/README.md CHANGED
@@ -42,3 +42,47 @@ Other example usages found since:
42
42
  | `interval`| How often to decrement the brightness. | `60000` (1 minute) |
43
43
  | `stateful`| Persist the timer state between restarts. | `false` |
44
44
  | `occupancySensor`| Add an occupancy sensor that reflects the timer's current state. | `false` |
45
+
46
+ ## Development
47
+
48
+ The below `config.json` can be placed in `~/.homebridge/config.json`, or extend local ones.
49
+ Then use `pnpm link; pnpm debug` to validate.
50
+
51
+ ```json
52
+ {
53
+ "bridge": {
54
+ "pin": "123-45-679",
55
+ "port": 51761,
56
+ "name": "Homebridge Test",
57
+ "username": "0E:BD:3C:CC:A7:E1"
58
+ },
59
+ "accessories": [
60
+ {
61
+ "name": "Simple",
62
+ "interval": 5000,
63
+ "occupancySensor": false,
64
+ "accessory": "EggTimerBulb"
65
+ },
66
+ {
67
+ "name": "Occupancy",
68
+ "interval": 1000,
69
+ "occupancySensor": true,
70
+ "accessory": "EggTimerBulb"
71
+ },
72
+ {
73
+ "name": "Stateful",
74
+ "interval": 10000,
75
+ "accessory": "EggTimerBulb",
76
+ "stateful": true
77
+ },
78
+ {
79
+ "name": "StatefulOccupancy",
80
+ "interval": 1000,
81
+ "occupancySensor": true,
82
+ "accessory": "EggTimerBulb",
83
+ "stateful": true
84
+ }
85
+ ]
86
+ }
87
+
88
+ ```
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "homebridge-eggtimer-plugin",
3
3
  "displayName": "Homebridge Eggtimer Plugin",
4
- "version": "1.0.32",
4
+ "version": "1.0.33",
5
5
  "description": "Egg Timers for Homebridge: https://github.com/nfarina/homebridge",
6
6
  "license": "MIT",
7
7
  "keywords": [
@@ -29,16 +29,16 @@
29
29
  "main": "dist/accessory.js",
30
30
  "engines": {
31
31
  "node": ">=16.0.0",
32
- "homebridge": ">=1.3.5"
32
+ "homebridge": ">=1.3.5 || ^2.0.0-beta.0"
33
33
  },
34
34
  "devDependencies": {
35
35
  "@stylistic/eslint-plugin": "^2.1.0",
36
36
  "@types/async-lock": "^1.4.2",
37
- "@types/node": "^20.14.2",
37
+ "@types/node": "^22.0.0",
38
38
  "@types/node-persist": "^3.1.8",
39
39
  "eslint": "^8.57.0",
40
40
  "homebridge": "^1.8.2",
41
- "rimraf": "^5.0.7",
41
+ "rimraf": "^6.0.1",
42
42
  "ts-node": "^10.9.2",
43
43
  "typescript": "^5.4.5",
44
44
  "typescript-eslint": "^7.13.0"
@@ -47,7 +47,7 @@
47
47
  "async-lock": "^1.4.1",
48
48
  "node-persist": "^4.0.1"
49
49
  },
50
- "packageManager": "pnpm@8.15.8+sha512.d1a029e1a447ad90bc96cd58b0fad486d2993d531856396f7babf2d83eb1823bb83c5a3d0fc18f675b2d10321d49eb161fece36fe8134aa5823ecd215feed392",
50
+ "packageManager": "pnpm@8.15.9+sha512.499434c9d8fdd1a2794ebf4552b3b25c0a633abcee5bb15e7b5de90f32f47b513aca98cd5cfd001c31f0db454bc3804edccd578501e4ca293a6816166bbd9f81",
51
51
  "scripts": {
52
52
  "lint": "eslint src",
53
53
  "lintAndFix": "eslint --fix src",