From b321ff7a70d0272983d8f63e7257d39737665ca2 Mon Sep 17 00:00:00 2001 From: Daniel Lando Date: Tue, 26 Sep 2023 10:26:06 +0200 Subject: [PATCH] feat: add `sendToSleep` timeout support Fixes #3301 --- lib/ZwaveClient.ts | 2 ++ src/stores/base.js | 1 + src/views/Settings.vue | 13 +++++++++++++ 3 files changed, 16 insertions(+) diff --git a/lib/ZwaveClient.ts b/lib/ZwaveClient.ts index de64fd7fc4..0ebca46a12 100644 --- a/lib/ZwaveClient.ts +++ b/lib/ZwaveClient.ts @@ -569,6 +569,7 @@ export type ZwaveConfig = { maxFiles?: number logLevel?: LogManager.LogLevel commandsTimeout?: number + sendToSleepTimeout?: number enableStatistics?: boolean disclaimerVersion?: number options?: ZWaveOptions @@ -2115,6 +2116,7 @@ class ZwaveClient extends TypedEventEmitter { }, timeouts: { report: this.cfg.higherReportsTimeout ? 10000 : undefined, + sendToSleep: this.cfg.sendToSleepTimeout, }, userAgent: { [pkgjson.name]: pkgjson.version, diff --git a/src/stores/base.js b/src/stores/base.js index 97b2f80818..5f9d46fe25 100644 --- a/src/stores/base.js +++ b/src/stores/base.js @@ -21,6 +21,7 @@ const useBaseStore = defineStore('base', { port: '/dev/zwave', allowBootloaderOnly: false, commandsTimeout: 30, + sendToSleepTimeout: 250, logLevel: 'debug', rf: { region: undefined, diff --git a/src/views/Settings.vue b/src/views/Settings.vue index 1683659f86..facbe01d51 100644 --- a/src/views/Settings.vue +++ b/src/views/Settings.vue @@ -789,6 +789,19 @@ type="number" > + + +