Skip to content

Commit

Permalink
feat: add option to allow disabling controller watchdog
Browse files Browse the repository at this point in the history
Ref #3936
  • Loading branch information
robertsLando committed Oct 17, 2024
1 parent f929686 commit 5b7cf9e
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
2 changes: 2 additions & 0 deletions api/lib/ZwaveClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -594,6 +594,7 @@ export type ZwaveConfig = {
}>
serverEnabled?: boolean
enableSoftReset?: boolean
disableWatchdog?: boolean
deviceConfigPriorityDir?: string
serverPort?: number
serverHost?: string
Expand Down Expand Up @@ -2186,6 +2187,7 @@ class ZwaveClient extends TypedEventEmitter<ZwaveClientEventCallbacks> {
.disableControllerRecovery
? false
: true,
watchdog: this.cfg.disableWatchdog ? false : true,
},
userAgent: {
[utils.pkgJson.name]: utils.pkgJson.version,
Expand Down
1 change: 1 addition & 0 deletions src/stores/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ const useBaseStore = defineStore('base', {
maxNodeEventsQueueSize: 100,
higherReportsTimeout: false,
disableControllerRecovery: false,
disableWatchdog: false,
},
backup: {
storeBackup: false,
Expand Down
15 changes: 12 additions & 3 deletions src/views/Settings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -854,6 +854,7 @@
v-model="newZwave.enableSoftReset"
></v-switch>
</v-col>

<input
type="hidden"
:value="newZwave.disclaimerVersion"
Expand Down Expand Up @@ -1022,14 +1023,22 @@
></v-checkbox>
</v-col>
<v-col cols="12" sm="6">
<v-checkbox
<inverted-checkbox
hint="When disabled, commands will simply fail when the controller is unresponsive and nodes may get randomly marked as dead until the controller recovers on its own."
persistent-hint
label="Disable controller recovery"
label="Controller recovery"
v-model="
newZwave.disableControllerRecovery
"
></v-checkbox>
></inverted-checkbox>
</v-col>
<v-col cols="12" sm="6">
<inverted-checkbox
persistent-hint
label="Watchdog"
hint="Controllers of the 700 series and newer have a hardware watchdog that can be enabled to automatically reset the chip in case it becomes unresponsive. This option controls whether the watchdog should be enabled"
v-model="newZwave.disableWatchdog"
></inverted-checkbox>
</v-col>
<input
type="hidden"
Expand Down

0 comments on commit 5b7cf9e

Please sign in to comment.