Add command template for MQTT button (#21135)

This commit is contained in:
Jan Bouwhuis 2022-01-23 15:30:11 +01:00 committed by GitHub
parent b6b7cc005f
commit 9761fcd89d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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