From 4cb080a9b225ee36a469f9e635ba1d091bb1b1e4 Mon Sep 17 00:00:00 2001 From: Jan Bouwhuis Date: Wed, 12 Apr 2023 21:38:13 +0200 Subject: [PATCH] Allow an unknown state, position or tilt for template cover (#26939) --- source/_integrations/cover.template.markdown | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/_integrations/cover.template.markdown b/source/_integrations/cover.template.markdown index ae69a4a980d..5291ecccaad 100644 --- a/source/_integrations/cover.template.markdown +++ b/source/_integrations/cover.template.markdown @@ -54,11 +54,11 @@ cover: required: false type: string value_template: - description: Defines a template to get the state of the cover. Valid output values from the template are `open`, `opening`, `closing` and `closed` which are directly mapped to the corresponding states. In addition, `true` is valid as a synonym to `open` and `false` as a synonym to `closed`. If [both a `value_template` and a `position_template`](#combining_value_template_and_position_template) are specified, only `opening` and `closing` are set from the `value_template`. + description: Defines a template to get the state of the cover. Valid output values from the template are `open`, `opening`, `closing` and `closed` which are directly mapped to the corresponding states. In addition, `true` is valid as a synonym to `open` and `false` as a synonym to `closed`. If [both a `value_template` and a `position_template`](#combining_value_template_and_position_template) are specified, only `opening` and `closing` are set from the `value_template`. If the template produces a `None` value the state will be set to `unknown`. required: false type: template position_template: - description: Defines a template to get the position of the cover. Legal values are numbers between `0` (closed) and `100` (open). + description: Defines a template to get the position of the cover. Legal values are numbers between `0` (closed) and `100` (open). If the template produces a `None` value the current position will be set to `unknown`. required: false type: template icon_template: @@ -109,7 +109,7 @@ cover: type: boolean default: false tilt_template: - description: Defines a template to get the tilt state of the cover. Legal values are numbers between `0` (closed) and `100` (open). + description: Defines a template to get the tilt state of the cover. Legal values are numbers between `0` (closed) and `100` (open). If the template produces a `None` value the current tilt state will be set to `unknown`. required: false type: template {% endconfiguration %}