From 37c953024d50f1dc40cd62e301c8e9469f8636b7 Mon Sep 17 00:00:00 2001 From: Adam Allport Date: Sun, 7 May 2017 19:37:48 +0100 Subject: [PATCH] Add retain flag in doc (#2590) Add the retain option in the documentation, copied from light.mqtt --- source/_components/light.mqtt_json.markdown | 1 + 1 file changed, 1 insertion(+) diff --git a/source/_components/light.mqtt_json.markdown b/source/_components/light.mqtt_json.markdown index 36ce8f23ca2..7e8d6c85dbf 100644 --- a/source/_components/light.mqtt_json.markdown +++ b/source/_components/light.mqtt_json.markdown @@ -60,6 +60,7 @@ Configuration variables: - **name** (*Optional*): The name of the light. Default is "MQTT JSON Light." - **optimistic** (*Optional*): Flag that defines if the light works in optimistic mode. Default is true if no state topic defined, else false. - **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** (*Optional*): Flag that defines if the light supports RGB colors. Default is false. - **state_topic** (*Optional*): The MQTT topic subscribed to receive state updates. - **white_value** (*Optional*): Flag that defines if the light supports white values. Default is false.