|
1 | 1 | Reference
|
2 | 2 | =========
|
3 | 3 |
|
| 4 | +.. include:: <mmlalias.txt> |
| 5 | + |
4 | 6 | Configuration
|
5 | 7 | -------------
|
6 | 8 |
|
@@ -322,6 +324,22 @@ Optional arguments are:
|
322 | 324 | ``True`` at startup, while the ``state_hold_false`` logic will continue to wait until the expression
|
323 | 325 | is ``False`` for that period before the next future trigger.
|
324 | 326 |
|
| 327 | +Here's a summary of the trigger behavior with these parameter settings: |
| 328 | + |
| 329 | +=================== ==================== ================= ======================== |
| 330 | +``state_check_now`` ``state_hold_false`` trigger at start? trigger on state change? |
| 331 | +=================== ==================== ================= ======================== |
| 332 | +default (``False``) default (``None``) no if expr ``True`` |
| 333 | +default (``False``) 0 no if expr ``True``, only after ``False`` |
| 334 | +default (``False``) 10 no if expr ``True``, only after ``False`` for |geq| 10 sec |
| 335 | +``True`` default (``None``) if expr ``True`` if expr ``True`` |
| 336 | +``True`` 0 if expr ``True`` if expr ``True``, only after ``False`` |
| 337 | +``True`` 10 if expr ``True`` if expr ``True``, only after ``False`` for |geq| 10 sec |
| 338 | +=================== ==================== ================= ======================== |
| 339 | + |
| 340 | +If ``state_hold`` is also specified, all the entries in the table that say "if expr ``True``" |
| 341 | +must remain ``True`` for that number of seconds for the trigger to occur. |
| 342 | + |
325 | 343 | All state variables in HASS have string values. So you’ll have to do comparisons against string
|
326 | 344 | values or cast the variable to an integer or float. These two examples are essentially equivalent
|
327 | 345 | (note the use of single quotes inside the outer double quotes):
|
|
0 commit comments