Update alarm_control_panel.mqtt.markdown (#22996)

This commit is contained in:
Clément TOCHE 2022-06-07 12:40:22 +02:00 committed by GitHub
parent 5da40e7121
commit 47bcfac7de
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -306,7 +306,8 @@ mqtt:
value_template: "{{ value_json.state }}" value_template: "{{ value_json.state }}"
command_topic: "alarmdecoder/panel/set" command_topic: "alarmdecoder/panel/set"
code: REMOTE_CODE_TEXT code: REMOTE_CODE_TEXT
command_template: "{ action: '{{ action }}', code: '{{ code }}'}" command_template: >
{ "action": "{{ action }}", "code": "{{ code }}" }
``` ```
```yaml ```yaml
@ -318,7 +319,8 @@ mqtt:
value_template: "{{ value_json.state }}" value_template: "{{ value_json.state }}"
command_topic: "alarmdecoder/panel/set" command_topic: "alarmdecoder/panel/set"
code: REMOTE_CODE code: REMOTE_CODE
command_template: "{ action: '{{ action }}', code: '{{ code }}'}" command_template: >
{ "action": "{{ action }}", "code": "{{ code }}" }
``` ```
{% endraw %} {% endraw %}