MQTT siren config to integration key (#22836)

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

View File

@ -22,11 +22,29 @@ To enable this siren in your installation, add the following to your `configurat
```yaml
# Example configuration.yaml entry
mqtt:
siren:
- command_topic: "home/bedroom/siren/set"
```
<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 `siren` 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
siren:
- platform: mqtt
command_topic: "home/bedroom/siren/set"
```
{% enddetails %}
{% configuration %}
availability:
description: A list of MQTT topics subscribed to receive availability (online/offline) updates. Must not be used together with `availability_topic`.
@ -244,9 +262,9 @@ The example below shows a full configuration for a siren.
```yaml
# Example configuration.yaml entry
mqtt:
siren:
- platform: mqtt
unique_id: custom_siren
- unique_id: custom_siren
name: "Intrusion siren"
state_topic: "home/alarm/siren1"
command_topic: "home/alarm/siren1/set"