Add command_template to MQTT select platform (#20117)

This commit is contained in:
Jan Bouwhuis 2021-11-02 17:43:57 +01:00 committed by GitHub
parent 2883fc602e
commit 11c1f7fcad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -54,6 +54,10 @@ availability_mode:
required: false
type: string
default: latest
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 change the selected option.
required: true