From 3553ba7a82339632ea9e8dde000fc2923de678c5 Mon Sep 17 00:00:00 2001 From: Sami Salonen Date: Tue, 10 May 2022 22:38:58 +0300 Subject: [PATCH] add ignore commands checkbox to expire metadata config (#1388) Signed-off-by: Sami Salonen --- .../src/components/item/metadata/item-metadata-expire.vue | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/bundles/org.openhab.ui/web/src/components/item/metadata/item-metadata-expire.vue b/bundles/org.openhab.ui/web/src/components/item/metadata/item-metadata-expire.vue index 4e4cec598..2155f59ff 100644 --- a/bundles/org.openhab.ui/web/src/components/item/metadata/item-metadata-expire.vue +++ b/bundles/org.openhab.ui/web/src/components/item/metadata/item-metadata-expire.vue @@ -15,9 +15,10 @@ :value="parsedAction.value" @blur="(evt) => updateActionValue(evt.target.value)" /> + - After a different command or state update is received, perform the chosen action when the duration specified below has passed. The timer is reset if another state update or command is received before it expires. If the ignore state updates checkbox is set, only state changes will reset the timer. + After a different command or state update is received, perform the chosen action when the duration specified below has passed. The timer is reset if another state update or command is received before it expires. If the ignore state updates checkbox is set, only state changes will reset the timer. If the ignore commands checkbox is set, only state updates and state changes will reset the timer. After @@ -79,6 +80,11 @@ export default { let configValue = this.metadata.config['ignoreStateUpdates'] if (!configValue) return false return typeof (configValue) === 'string' ? configValue === 'true' : configValue + }, + ignoreCommands () { + let configValue = this.metadata.config['ignoreCommands'] + if (!configValue) return false + return typeof (configValue) === 'string' ? configValue === 'true' : configValue } }, mounted () {