Skip to content

Commit bd26868

Browse files
authored
Update light.mqtt docs to include 'retain'
The light.mqtt component supports the 'retain' config parameter, which is important for many MQTT based lights. It is referenced in the explanation paragraph, but was not in the config parameter listing.
1 parent f8e2b88 commit bd26868

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

source/_components/light.mqtt.markdown

+1
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ Configuration variables:
4545
- **payload_off** (*Optional*): The payload that represents disabled state. Default is "OFF".
4646
- **payload_on** (*Optional*): The payload that represents enabled state. Default is "ON".
4747
- **qos** (*Optional*): The maximum QoS level of the state topic. Default is 0 and will also be used to publishing messages.
48+
- **retain** (*Optional*): If the published message should have the retain flag on or not.
4849
- **rgb_command_topic** (*Optional*): The MQTT topic to publish commands to change the light's RGB state.
4950
- **rgb_state_topic** (*Optional*): The MQTT topic subscribed to receive RGB state updates.
5051
- **rgb_value_template** (*Optional*): Defines a [template](/topics/templating/) to extract the RGB value.

0 commit comments

Comments
 (0)