From 9761fcd89d5c91a18048109775ebea1646c4d9c7 Mon Sep 17 00:00:00 2001 From: Jan Bouwhuis Date: Sun, 23 Jan 2022 15:30:11 +0100 Subject: [PATCH] Add command template for MQTT button (#21135) --- source/_integrations/button.mqtt.markdown | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/_integrations/button.mqtt.markdown b/source/_integrations/button.mqtt.markdown index cbbd310639b..b9229a44911 100644 --- a/source/_integrations/button.mqtt.markdown +++ b/source/_integrations/button.mqtt.markdown @@ -56,6 +56,10 @@ availability_topic: description: The MQTT topic subscribed to receive availability (online/offline) updates. Must not be used together with `availability`. required: false type: string +command_template: + description: Defines a [template](/docs/configuration/templating/#processing-incoming-data) to generate the payload to send to `command_topic`. + required: false + type: template command_topic: description: The MQTT topic to publish commands to trigger the button. required: false