Skip to content

Commit 9db8df8

Browse files
belyalovballoob
authored andcommitted
Add config variable rgb_command_template (home-assistant#3312)
* Add config variable rgb_command_template * Add available template variable * Minor change
1 parent c356206 commit 9db8df8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

source/_components/light.mqtt.markdown

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ Configuration variables:
4747
- **payload_on** (*Optional*): The payload that represents enabled state. Default is "ON".
4848
- **qos** (*Optional*): The maximum QoS level of the state topic. Default is 0 and will also be used to publishing messages.
4949
- **retain** (*Optional*): If the published message should have the retain flag on or not.
50+
- **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`.
5051
- **rgb_command_topic** (*Optional*): The MQTT topic to publish commands to change the light's RGB state.
5152
- **rgb_state_topic** (*Optional*): The MQTT topic subscribed to receive RGB state updates.
5253
- **rgb_value_template** (*Optional*): Defines a [template](/docs/configuration/templating/#processing-incoming-data) to extract the RGB value.

0 commit comments

Comments
 (0)