From 2694c69d2a2b480d7eddfcf49ecc0b2de098846e Mon Sep 17 00:00:00 2001 From: Brian Cribbs Date: Wed, 31 May 2017 11:17:03 -0400 Subject: [PATCH 1/2] updating docs to show how to use position attribute in template Conflicts: source/_components/cover.mqtt.markdown --- source/_components/cover.mqtt.markdown | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/_components/cover.mqtt.markdown b/source/_components/cover.mqtt.markdown index 36149f5bd421..13bdf06c9a56 100755 --- a/source/_components/cover.mqtt.markdown +++ b/source/_components/cover.mqtt.markdown @@ -46,6 +46,8 @@ Configuration variables: - **qos** (*Optional*): The maximum QoS level of the state topic. Default is `0`. Will also be used when publishing messages. - **retain** (*Optional*): If the published message should have the retain flag on or not. Default is `false`. - **value_template** (*Optional*): Defines a [template](/docs/configuration/templating/#processing-incoming-data) to extract a value from the payload. +- **set_position_topic** (*Optional*): The MQTT topic to publish position commands to. Default is `None` +- **set_position_template** (*Optional*): Defines a [template](/topics/templating/) to define the position to be sent to the `set_position_topic` topic. Incoming position value is available for use in the template `{{position}}`. Default is `None` and it will just pass the numeric position (0-100) through. - **tilt_command_topic** (*Optional*): The MQTT topic to publish commands to control the cover tilt. - **tilt_status_topic** (*Optional*): The MQTT topic subscribed to receive tilt status update values. - **tilt_min** (*Optional*): The minimum tilt value. Default is `0` From 9e5ac85f07611cace448387946f6002c22d158b6 Mon Sep 17 00:00:00 2001 From: Brian Cribbs Date: Wed, 31 May 2017 16:44:02 -0400 Subject: [PATCH 2/2] updating docs Conflicts: source/_components/cover.mqtt.markdown --- source/_components/cover.mqtt.markdown | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/_components/cover.mqtt.markdown b/source/_components/cover.mqtt.markdown index 13bdf06c9a56..ff326bfd70dc 100755 --- a/source/_components/cover.mqtt.markdown +++ b/source/_components/cover.mqtt.markdown @@ -46,8 +46,8 @@ Configuration variables: - **qos** (*Optional*): The maximum QoS level of the state topic. Default is `0`. Will also be used when publishing messages. - **retain** (*Optional*): If the published message should have the retain flag on or not. Default is `false`. - **value_template** (*Optional*): Defines a [template](/docs/configuration/templating/#processing-incoming-data) to extract a value from the payload. -- **set_position_topic** (*Optional*): The MQTT topic to publish position commands to. Default is `None` -- **set_position_template** (*Optional*): Defines a [template](/topics/templating/) to define the position to be sent to the `set_position_topic` topic. Incoming position value is available for use in the template `{{position}}`. Default is `None` and it will just pass the numeric position (0-100) through. +- **set_position_topic** (*Optional*): The MQTT topic to publish position commands to. +- **set_position_template** (*Optional*): Defines a [template](/topics/templating/) to define the position to be sent to the `set_position_topic` topic. Incoming position value is available for use in the template `{{position}}`. If no template is defined, the numeric position (0-100) will be written directly to the topic. - **tilt_command_topic** (*Optional*): The MQTT topic to publish commands to control the cover tilt. - **tilt_status_topic** (*Optional*): The MQTT topic subscribed to receive tilt status update values. - **tilt_min** (*Optional*): The minimum tilt value. Default is `0`