mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-23 17:27:19 +00:00
Clarify how the state_value_template variable works (#4054)
This commit is contained in:
parent
28154fc4ee
commit
e64d60c990
@ -53,7 +53,7 @@ Configuration variables:
|
|||||||
- **rgb_state_topic** (*Optional*): The MQTT topic subscribed to receive RGB state updates.
|
- **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.
|
- **rgb_value_template** (*Optional*): Defines a [template](/docs/configuration/templating/#processing-incoming-data) to extract the RGB value.
|
||||||
- **state_topic** (*Optional*): The MQTT topic subscribed to receive state updates.
|
- **state_topic** (*Optional*): The MQTT topic subscribed to receive state updates.
|
||||||
- **state_value_template** (*Optional*): Defines a [template](/docs/configuration/templating/#processing-incoming-data) to extract the state value.
|
- **state_value_template** (*Optional*): Defines a [template](/docs/configuration/templating/#processing-incoming-data) to extract the state value. The template should match the payload "on" and "off" values, so if your light uses "power on" to turn on, your `state_value_template` string should return "power on" when the switch is on. For example if the message is just "on", your `state_value_template` should be `power {{ value }}`.
|
||||||
- **white_value_command_topic** (*Optional*): The MQTT topic to publish commands to change the light's white value.
|
- **white_value_command_topic** (*Optional*): The MQTT topic to publish commands to change the light's white value.
|
||||||
- **white_value_state_topic** (*Optional*): The MQTT topic subscribed to receive white value updates.
|
- **white_value_state_topic** (*Optional*): The MQTT topic subscribed to receive white value updates.
|
||||||
- **white_value_value_template** (*Optional*): Defines a [template](/docs/configuration/templating/#processing-incoming-data) to extract the white value.
|
- **white_value_value_template** (*Optional*): Defines a [template](/docs/configuration/templating/#processing-incoming-data) to extract the white value.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user