From 11dcf2465c2fc76e2bece26b70190a724587e6f4 Mon Sep 17 00:00:00 2001 From: Michael Bisbjerg Date: Sun, 12 Jul 2020 14:27:18 +0200 Subject: [PATCH] Add missing `unique_id` part to Switch MQTT docs (#13907) * Add missing `unique_id` part to Switch MQTT docs `unique_id` is referenced within the doc, but isn't documented. I've copied the text from `Climate`. * Remove references to HVAC --- source/_integrations/switch.mqtt.markdown | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/_integrations/switch.mqtt.markdown b/source/_integrations/switch.mqtt.markdown index 7b3ca3be0b9..910dc4d7b80 100644 --- a/source/_integrations/switch.mqtt.markdown +++ b/source/_integrations/switch.mqtt.markdown @@ -135,6 +135,10 @@ state_topic: description: The MQTT topic subscribed to receive state updates. required: false type: string +unique_id: + description: An ID that uniquely identifies this switch device. If two switches have the same unique ID, Home Assistant will raise an exception. + required: false + type: string value_template: description: "Defines a [template](/docs/configuration/templating/#processing-incoming-data) to extract device's state from the `state_topic`. To determine the switches's state result of this template will be compared to `state_on` and `state_off`." required: false