mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-06-09 03:36:49 +00:00
Add command_template and value_template for MQTT alarm (#8729)
* Update alarm_control_panel.mqtt.markdown * included command_template and code_disarm_required * mqtt alarm add value_template * ✏️ Tweaks * ✏️ Tweak
This commit is contained in:
parent
f90d4991f8
commit
bfa5842a97
@ -56,6 +56,15 @@ command_topic:
|
|||||||
description: The MQTT topic to publish commands to change the alarm state.
|
description: The MQTT topic to publish commands to change the alarm state.
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
|
command_template:
|
||||||
|
description: "The [template](/docs/configuration/templating/#processing-incoming-data) used for the command payload. Available variables: `action` and `code`."
|
||||||
|
required: false
|
||||||
|
type: string
|
||||||
|
default: action
|
||||||
|
value_template:
|
||||||
|
description: "Defines a [template](/docs/configuration/templating/#processing-incoming-data) to extract the value."
|
||||||
|
required: false
|
||||||
|
type: template
|
||||||
qos:
|
qos:
|
||||||
description: The maximum QoS level of the state topic.
|
description: The maximum QoS level of the state topic.
|
||||||
required: false
|
required: false
|
||||||
@ -86,7 +95,12 @@ code:
|
|||||||
required: false
|
required: false
|
||||||
type: string
|
type: string
|
||||||
code_arm_required:
|
code_arm_required:
|
||||||
description: If true the code is required to arm the alarm.
|
description: If true the code is required to arm the alarm. If false the code is not validated.
|
||||||
|
required: false
|
||||||
|
type: boolean
|
||||||
|
default: true
|
||||||
|
code_disarm_required:
|
||||||
|
description: If true the code is required to disarm the alarm. If false the code is not validated.
|
||||||
required: false
|
required: false
|
||||||
type: boolean
|
type: boolean
|
||||||
default: true
|
default: true
|
||||||
|
Loading…
x
Reference in New Issue
Block a user