Skip to content

Commit 37c9530

Browse files
AAllportLandrash
authored andcommitted
Add retain flag in doc (home-assistant#2590)
Add the retain option in the documentation, copied from light.mqtt
1 parent f8fffd5 commit 37c9530

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

source/_components/light.mqtt_json.markdown

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ Configuration variables:
6060
- **name** (*Optional*): The name of the light. Default is "MQTT JSON Light."
6161
- **optimistic** (*Optional*): Flag that defines if the light works in optimistic mode. Default is true if no state topic defined, else false.
6262
- **qos** (*Optional*): The maximum QoS level of the state topic. Default is 0 and will also be used to publishing messages.
63+
- **retain** (*Optional*): If the published message should have the retain flag on or not.
6364
- **rgb** (*Optional*): Flag that defines if the light supports RGB colors. Default is false.
6465
- **state_topic** (*Optional*): The MQTT topic subscribed to receive state updates.
6566
- **white_value** (*Optional*): Flag that defines if the light supports white values. Default is false.

0 commit comments

Comments
 (0)