You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This trigger is activated when a zone sensor marked with chime:true changes from closed to open. This is useful for implementing keypad chimes when a zone
215
+
opens.
216
+
217
+
.. code-block:: yaml
218
+
219
+
alarm_control_panel:
220
+
# ...
221
+
on_chime:
222
+
then:
223
+
- logger.log: "Alarm Chime!"
224
+
187
225
.. _alarm_control_panel_arm_away_action:
188
226
189
227
``arm_away`` Action
@@ -296,13 +334,15 @@ From :ref:`lambdas <config-lambda>`, you can call the following methods:
Copy file name to clipboardExpand all lines: components/alarm_control_panel/template.rst
+78-8Lines changed: 78 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -36,6 +36,8 @@ Configuration variables:
36
36
- **input** (**Required**, string): The id of the binary sensor component
37
37
- **bypass_armed_home** (*Optional*, boolean): This binary sensor will not trigger the alarm when in ``armed_home`` state.
38
38
- **bypass_armed_night** (*Optional*, boolean): This binary sensor will not trigger the alarm when in ``armed_night`` state.
39
+
- **trigger_mode** (*Optional*, string): Sets the trigger mode for this sensor. One of ``delayed``, ``instant``, or ``delayed_follower``. (``delayed`` is the default if not specified)
40
+
- **chime** (*Optional*, boolean): When set ``true``, the chime callback will be called whenever the sensor goes from closed to open. (``false`` is the default if not specified)
39
41
40
42
- **restore_mode** (*Optional*, enum):
41
43
@@ -46,9 +48,33 @@ Configuration variables:
46
48
47
49
.. note::
48
50
49
-
If ``binary_sensors`` is ommited then you're expected to trigger the alarm using
51
+
If ``binary_sensors`` is omitted then you're expected to trigger the alarm using
50
52
:ref:`alarm_control_panel_pending_action` or :ref:`alarm_control_panel_triggered_action`.
51
53
54
+
.. _template_alarm_control_panel-trigger_modes:
55
+
56
+
Trigger Modes
57
+
-------------
58
+
59
+
Each binary sensor "zone" supports 3 trigger modes. The 3 trigger modes are:
60
+
61
+
- delayed
62
+
- instant
63
+
- delayed_follower
64
+
65
+
The ``delayed`` trigger mode is typically specified for exterior doors where entry is required to access an alarm keypad or other arm/disarm method. If the alarm panel is armed, and a zone set to ``delayed`` is "faulted" (i.e. the zone state is ``true``) the alarm state will change from the ``armed`` state to the ``pending`` state. During the ``pending`` state, the user has a preset time to disarm the alarm before it changes to the ``triggered`` state. This is the default trigger mode if not specified.
66
+
67
+
The ``instant`` trigger mode is typically used for exterior zones (e.g. windows, and glass break detectors). If the alarm control panel is armed, a fault on this type of zone will cause the alarm to go from the ``armed`` state directly to the ``triggered`` state.
68
+
69
+
The ``delayed_follower`` trigger mode is typically specifed for interior passive infared (PIR) or microwave sensors. One of two things happen when a ``delayed_follower`` zone is faulted:
70
+
71
+
1. When the alarm panel is in the armed state, a fault on a zone with ``delayed_follower`` specified will cause the alarm control panel to go directly to the ``triggered`` state.
72
+
73
+
2. When the alarm panel is in the pending state, a fault on a zone with ``delayed_follower`` specified will remain in the ``pending`` state.
74
+
75
+
The ``delayed_follower`` trigger mode offers better protection if someone enters a premises via an unprotected window or door. If there is a PIR guarding the main hallway, it will cause an instant trigger of the alarm panel as someone
76
+
entered the premises in a unusual manner. Likewise, if someone enters the premises though a door set to the ``delayed`` trigger mode, and then triggers the PIR, the alarm will stay in the ``pending`` state until either they disarm the alarm, or
77
+
the pending timer expires.
52
78
53
79
.. _template_alarm_control_panel-state_flow:
54
80
@@ -63,18 +89,29 @@ State Flow:
63
89
64
90
3. When the alarm is tripped by a sensor state changing to ``on`` or ``alarm_control_panel_pending_action`` invoked
65
91
66
-
a. ``pending_time`` greater than 0 the state is ``PENDING``
67
-
b. ``pending_time`` is 0 or after the ``pending_time`` delay the state is ``TRIGGERED``
92
+
1. If trigger_mode is set to ``delayed``:
93
+
94
+
1. ``pending_time`` greater than 0 the state is ``PENDING``
95
+
2. ``pending_time`` is 0 or after the ``pending_time`` delay the state is ``TRIGGERED``
96
+
97
+
2. If trigger_mode is set to ``instant``:
98
+
99
+
1. The state is set to ``TRIGGERED``
100
+
101
+
3. If the trigger_mode is set to ``interior_follower``:
102
+
103
+
1. If the current state is ``ARMED_...`` the state will be set to ``TRIGGERED``
104
+
2. If the current state is ``PENDING`` then nothing will happen and it will stay in the ``PENDING`` state.
68
105
69
106
4. If ``trigger_time`` greater than 0 and no sensors are ``on`` after ``trigger_time`` delay
70
107
the state returns to ``ARM_...``
71
108
72
109
.. note::
73
110
74
-
Although the interface supports all arming modes only ``away``and ``home`` have been implemented for now.
111
+
Although the interface supports all arming modes only ``away``, ``home`` and ``night`` have been implemented for now.
75
112
``arm_...`` is for either ``arm_away`` or ``arm_home``
76
-
``arming_..._time`` is for either ``arming_away_time``or ``arming_home_time``
77
-
``ARMED_...`` is for either ``ARMED_AWAY``or ``ARMED_HOME``
113
+
``arming_..._time`` is for either ``arming_away_time``, ``arming_home_time``, or ``arming_night_time``
114
+
``ARMED_...`` is for either ``ARMED_AWAY``, ``ARMED_HOME``, or ``ARMED_NIGHT``
0 commit comments