MQTT select config to integration key (#22833)

This commit is contained in:
Jan Bouwhuis 2022-05-23 14:33:25 +02:00 committed by GitHub
parent 7879d2e3ad
commit bad42341cf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -16,15 +16,38 @@ To enable MQTT Select in your installation, add the following to your `configura
```yaml
# Example configuration.yaml entry
mqtt:
select:
- command_topic: topic
name: "Test Select"
options:
- "Option 1"
- "Option 2"
```
<a id='new_format'></a>
{% details "Previous configuration format" %}
The configuration format of manual configured MQTT items has changed.
The old format that places configurations under the `select` platform key
should no longer be used and is deprecated.
The above example shows the new and modern way,
this is the previous/old example:
```yaml
select:
- platform: mqtt
command_topic: topic
name: "Test Select"
options:
- "Option 1"
- "Option 2"
- "Option 1"
- "Option 2"
```
{% enddetails %}
{% configuration %}
availability:
description: A list of MQTT topics subscribed to receive availability (online/offline) updates. Must not be used together with `availability_topic`.