From 9db8df831d52b5216b3b7f08bad76bbc60ca6f0a Mon Sep 17 00:00:00 2001 From: Konstantin Belyalov Date: Sat, 9 Sep 2017 00:37:21 -0700 Subject: [PATCH] Add config variable rgb_command_template (#3312) * Add config variable rgb_command_template * Add available template variable * Minor change --- source/_components/light.mqtt.markdown | 1 + 1 file changed, 1 insertion(+) diff --git a/source/_components/light.mqtt.markdown b/source/_components/light.mqtt.markdown index 308e9282a64..b90de5ae569 100644 --- a/source/_components/light.mqtt.markdown +++ b/source/_components/light.mqtt.markdown @@ -47,6 +47,7 @@ Configuration variables: - **payload_on** (*Optional*): The payload that represents enabled state. Default is "ON". - **qos** (*Optional*): The maximum QoS level of the state topic. Default is 0 and will also be used to publishing messages. - **retain** (*Optional*): If the published message should have the retain flag on or not. +- **rgb_command_template** (*Optional*): Defines a [template](/docs/configuration/templating/#processing-incoming-data) to compose message which will be sent to `rgb_command_topic`. Available variables: `red`, `green` and `blue`. - **rgb_command_topic** (*Optional*): The MQTT topic to publish commands to change the light's RGB state. - **rgb_state_topic** (*Optional*): The MQTT topic subscribed to receive RGB state updates. - **rgb_value_template** (*Optional*): Defines a [template](/docs/configuration/templating/#processing-incoming-data) to extract the RGB value.