homebridge-dummy 1.3.0-beta.5 → 1.3.1-beta.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.
- package/CHANGELOG.md +6 -1
- package/dist/homebridge-ui/public/index.html +1 -1
- package/dist/i18n/template.d.ts +2 -2
- package/dist/i18n/template.js +2 -2
- package/dist/i18n/template.js.map +1 -1
- package/dist/timeout/timer.d.ts +2 -3
- package/dist/timeout/timer.js +4 -7
- package/dist/timeout/timer.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,11 +2,16 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to homebridge-dummy will be documented in this file.
|
|
4
4
|
|
|
5
|
-
## 1.3.
|
|
5
|
+
## 1.3.1-beta.0 (2025-10-14)
|
|
6
6
|
|
|
7
7
|
### ‼️ WARNING — Read this if upgrading from v0.9.2 or earlier…
|
|
8
8
|
Automations and scenes using Homebridge Dummy accessories will need to be reconfigured. After upgrading, you must **RESTART HOMEBRIDGE SERVICE & UI** (not just *RESTART HOMEBRIDGE*). After restarting, open the Homebridge Dummy plugin settings to run the accessory migration helper. Full details [here](https://github.com/mpatfield/homebridge-dummy?tab=readme-ov-file#v1.0-migration).
|
|
9
9
|
|
|
10
|
+
### Fixed
|
|
11
|
+
- Auto-Reset timer not resetting delay when re-invoked ([#197](https://github.com/mpatfield/homebridge-dummy/issues/197))
|
|
12
|
+
|
|
13
|
+
## 1.3.0 (2025-10-13)
|
|
14
|
+
|
|
10
15
|
### Added
|
|
11
16
|
- Time Limits ([documentation](https://github.com/mpatfield/homebridge-dummy?tab=readme-ov-file#limiter))
|
|
12
17
|
|
package/dist/i18n/template.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare const
|
|
1
|
+
declare const REPLACE_THIS_WITH_ISO_CODE: {
|
|
2
2
|
accessory: {
|
|
3
3
|
badValueType: string;
|
|
4
4
|
invalidCron: string;
|
|
@@ -232,4 +232,4 @@ declare const TODO_REPLACE_THIS_WITH_ISO_CODE: {
|
|
|
232
232
|
unregisteredId: string;
|
|
233
233
|
};
|
|
234
234
|
};
|
|
235
|
-
export default
|
|
235
|
+
export default REPLACE_THIS_WITH_ISO_CODE;
|
package/dist/i18n/template.js
CHANGED
|
@@ -3,6 +3,6 @@ import en from './en.js';
|
|
|
3
3
|
const overrides = {
|
|
4
4
|
// Copy strings from en.js to here and translate
|
|
5
5
|
};
|
|
6
|
-
const
|
|
7
|
-
export default
|
|
6
|
+
const REPLACE_THIS_WITH_ISO_CODE = merge({}, en, overrides);
|
|
7
|
+
export default REPLACE_THIS_WITH_ISO_CODE;
|
|
8
8
|
//# sourceMappingURL=template.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"template.js","sourceRoot":"","sources":["../../src/i18n/template.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,cAAc,CAAC;AAEjC,OAAO,EAAE,MAAM,SAAS,CAAC;AAEzB,MAAM,SAAS,GAAG;AAEhB,gDAAgD;CAEjD,CAAC;AAEF,MAAM
|
|
1
|
+
{"version":3,"file":"template.js","sourceRoot":"","sources":["../../src/i18n/template.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,cAAc,CAAC;AAEjC,OAAO,EAAE,MAAM,SAAS,CAAC;AAEzB,MAAM,SAAS,GAAG;AAEhB,gDAAgD;CAEjD,CAAC;AAEF,MAAM,0BAA0B,GAAG,KAAK,CAAC,EAAE,EAAE,EAAE,EAAE,SAAS,CAAC,CAAC;AAE5D,eAAe,0BAA0B,CAAC"}
|
package/dist/timeout/timer.d.ts
CHANGED
|
@@ -5,11 +5,10 @@ export declare class Timer extends Timeout {
|
|
|
5
5
|
private readonly config;
|
|
6
6
|
private readonly callerId;
|
|
7
7
|
static new(config: TimerConfig, callerId: string, callerName: string, log: Log, disableLogging: boolean): Timer | undefined;
|
|
8
|
-
private
|
|
8
|
+
private expiresTimestamp?;
|
|
9
9
|
private constructor();
|
|
10
10
|
private get timerStorageKey();
|
|
11
|
-
private
|
|
12
|
-
private set expiresTimestamp(value);
|
|
11
|
+
private storeExpiresTimestamp;
|
|
13
12
|
start(callback: () => Promise<void>): void;
|
|
14
13
|
reset(): void;
|
|
15
14
|
cancel(): void;
|
package/dist/timeout/timer.js
CHANGED
|
@@ -16,7 +16,7 @@ export class Timer extends Timeout {
|
|
|
16
16
|
}
|
|
17
17
|
return new Timer(config, callerId, callerName, log, disableLogging);
|
|
18
18
|
}
|
|
19
|
-
|
|
19
|
+
expiresTimestamp;
|
|
20
20
|
constructor(config, callerId, callerName, log, disableLogging) {
|
|
21
21
|
super(callerName, log, disableLogging);
|
|
22
22
|
this.config = config;
|
|
@@ -26,11 +26,7 @@ export class Timer extends Timeout {
|
|
|
26
26
|
get timerStorageKey() {
|
|
27
27
|
return `${this.callerId}:Timer`;
|
|
28
28
|
}
|
|
29
|
-
|
|
30
|
-
return this._expiresTimestamp;
|
|
31
|
-
}
|
|
32
|
-
set expiresTimestamp(value) {
|
|
33
|
-
this._expiresTimestamp = value;
|
|
29
|
+
storeExpiresTimestamp(value) {
|
|
34
30
|
Storage.set(this.timerStorageKey, value);
|
|
35
31
|
}
|
|
36
32
|
start(callback) {
|
|
@@ -50,7 +46,7 @@ export class Timer extends Timeout {
|
|
|
50
46
|
}
|
|
51
47
|
else {
|
|
52
48
|
delay = this.getDelay(this.config.delay, this.config.units, this.config.random, logStrings);
|
|
53
|
-
this.
|
|
49
|
+
this.storeExpiresTimestamp(Date.now() + delay);
|
|
54
50
|
}
|
|
55
51
|
this.timeout = setTimeout(async () => {
|
|
56
52
|
this.reset();
|
|
@@ -59,6 +55,7 @@ export class Timer extends Timeout {
|
|
|
59
55
|
}
|
|
60
56
|
reset() {
|
|
61
57
|
this.expiresTimestamp = undefined;
|
|
58
|
+
this.storeExpiresTimestamp(undefined);
|
|
62
59
|
super.reset();
|
|
63
60
|
}
|
|
64
61
|
cancel() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"timer.js","sourceRoot":"","sources":["../../src/timeout/timer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAEhE,OAAO,EAAE,gBAAgB,EAAE,eAAe,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAGjF,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAG1C,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAC9C,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAEhD,MAAM,OAAO,KAAM,SAAQ,OAAO;IAmBb;IACA;IAlBnB,MAAM,CAAC,GAAG,CAAC,MAAmB,EAAE,QAAgB,EAAE,UAAkB,EAAE,GAAQ,EAAE,cAAuB;QAErG,IAAI,CAAC,MAAM,CAAC,GAAG,EAAE,UAAU,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,CAAC,EAAE,CAAC;YACvD,OAAO;QACT,CAAC;QAED,IAAI,CAAC,gBAAgB,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,CAAC;YACpC,GAAG,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,QAAQ,EAAE,UAAU,EAAE,IAAI,MAAM,CAAC,KAAK,GAAG,EAAE,eAAe,CAAC,SAAS,CAAC,CAAC,CAAC;YAC/F,OAAO;QACT,CAAC;QAED,OAAO,IAAI,KAAK,CAAC,MAAM,EAAE,QAAQ,EAAE,UAAU,EAAE,GAAG,EAAE,cAAc,CAAC,CAAC;IACtE,CAAC;IAEO,
|
|
1
|
+
{"version":3,"file":"timer.js","sourceRoot":"","sources":["../../src/timeout/timer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAEhE,OAAO,EAAE,gBAAgB,EAAE,eAAe,EAAE,SAAS,EAAE,MAAM,mB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CAAC;IAEQ,KAAK;QACZ,IAAI,CAAC,gBAAgB,GAAG,SAAS,CAAC;QAClC,IAAI,CAAC,qBAAqB,CAAC,SAAS,CAAC,CAAC;QACtC,KAAK,CAAC,KAAK,EAAE,CAAC;IAChB,CAAC;IAEQ,MAAM;QAEb,IAAI,IAAI,CAAC,OAAO,EAAE,CAAC;YACjB,IAAI,CAAC,YAAY,CAAC,OAAO,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;QAC1C,CAAC;QAED,KAAK,CAAC,MAAM,EAAE,CAAC;IACjB,CAAC;IAEQ,QAAQ;QACf,KAAK,CAAC,KAAK,EAAE,CAAC;IAChB,CAAC;CACF"}
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"displayName": "Homebridge Dummy",
|
|
5
5
|
"description": "Create Homebridge accessories to help with automation and control — scheduling, delays, sensors, commands, webhooks, and more",
|
|
6
6
|
"type": "module",
|
|
7
|
-
"version": "1.3.
|
|
7
|
+
"version": "1.3.1-beta.0",
|
|
8
8
|
"homepage": "https://github.com/mpatfield/homebridge-dummy#readme",
|
|
9
9
|
"repository": {
|
|
10
10
|
"type": "git",
|