mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-23 09:17:06 +00:00
MQTT alarm_control_panel config to integration key (#22812)
This commit is contained in:
parent
6f72a91d0b
commit
9abd798311
@ -31,12 +31,32 @@ To enable this platform, add the following lines to your `configuration.yaml`:
|
|||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
# Example configuration.yaml entry
|
# Example configuration.yaml entry
|
||||||
|
mqtt:
|
||||||
|
alarm_control_panel:
|
||||||
|
- state_topic: "home/alarm"
|
||||||
|
command_topic: "home/alarm/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 `alarm_control_panel` 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
|
||||||
alarm_control_panel:
|
alarm_control_panel:
|
||||||
- platform: mqtt
|
- platform: mqtt
|
||||||
state_topic: "home/alarm"
|
state_topic: "home/alarm"
|
||||||
command_topic: "home/alarm/set"
|
command_topic: "home/alarm/set"
|
||||||
```
|
```
|
||||||
|
|
||||||
|
{% enddetails %}
|
||||||
|
|
||||||
{% configuration %}
|
{% configuration %}
|
||||||
availability:
|
availability:
|
||||||
description: A list of MQTT topics subscribed to receive availability (online/offline) updates. Must not be used together with `availability_topic`.
|
description: A list of MQTT topics subscribed to receive availability (online/offline) updates. Must not be used together with `availability_topic`.
|
||||||
@ -260,9 +280,9 @@ The example below shows a full configuration with local code validation.
|
|||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
# Example using text based code with local validation configuration.yaml
|
# Example using text based code with local validation configuration.yaml
|
||||||
|
mqtt:
|
||||||
alarm_control_panel:
|
alarm_control_panel:
|
||||||
- platform: mqtt
|
- name: "Alarm Panel With Numeric Keypad"
|
||||||
name: "Alarm Panel With Numeric Keypad"
|
|
||||||
state_topic: "alarmdecoder/panel"
|
state_topic: "alarmdecoder/panel"
|
||||||
value_template: "{{value_json.state}}"
|
value_template: "{{value_json.state}}"
|
||||||
command_topic: "alarmdecoder/panel/set"
|
command_topic: "alarmdecoder/panel/set"
|
||||||
@ -279,9 +299,9 @@ The example below shows a full configuration with remote code validation and `co
|
|||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
# Example using text code with remote validation configuration.yaml
|
# Example using text code with remote validation configuration.yaml
|
||||||
|
mqtt:
|
||||||
alarm_control_panel:
|
alarm_control_panel:
|
||||||
- platform: mqtt
|
- name: "Alarm Panel With Text Code Dialog"
|
||||||
name: "Alarm Panel With Text Code Dialog"
|
|
||||||
state_topic: "alarmdecoder/panel"
|
state_topic: "alarmdecoder/panel"
|
||||||
value_template: "{{ value_json.state }}"
|
value_template: "{{ value_json.state }}"
|
||||||
command_topic: "alarmdecoder/panel/set"
|
command_topic: "alarmdecoder/panel/set"
|
||||||
@ -291,9 +311,9 @@ alarm_control_panel:
|
|||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
# Example using numeric code with remote validation configuration.yaml
|
# Example using numeric code with remote validation configuration.yaml
|
||||||
|
mqtt:
|
||||||
alarm_control_panel:
|
alarm_control_panel:
|
||||||
- platform: mqtt
|
- name: "Alarm Panel With Numeric Keypad"
|
||||||
name: "Alarm Panel With Numeric Keypad"
|
|
||||||
state_topic: "alarmdecoder/panel"
|
state_topic: "alarmdecoder/panel"
|
||||||
value_template: "{{ value_json.state }}"
|
value_template: "{{ value_json.state }}"
|
||||||
command_topic: "alarmdecoder/panel/set"
|
command_topic: "alarmdecoder/panel/set"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user