mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-23 17:27:19 +00:00
MQTT siren config to integration key (#22836)
This commit is contained in:
parent
5a600d7ec0
commit
7879d2e3ad
@ -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
|
||||
siren:
|
||||
- platform: mqtt
|
||||
unique_id: custom_siren
|
||||
mqtt:
|
||||
siren:
|
||||
- unique_id: custom_siren
|
||||
name: "Intrusion siren"
|
||||
state_topic: "home/alarm/siren1"
|
||||
command_topic: "home/alarm/siren1/set"
|
||||
|
Loading…
x
Reference in New Issue
Block a user