Skip to content

Commit 556aacd

Browse files
committed
added table with some rows based on comments from #95
1 parent 59283b8 commit 556aacd

File tree

2 files changed

+19
-1
lines changed

2 files changed

+19
-1
lines changed

docs/new_features.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ The new features since 1.0.0 in master include:
3838
- All .py files below the ``pyscript/scripts`` directory are autoloaded, recursively. Also, any
3939
file name or directory starting with ``#`` is skipped (including top-level and ``apps``), which is
4040
an in-place way of disabling a specific script, app or directory tree (#97).
41-
- ``del`` and new function ``state.delete()` can delete state variables and state variable attributes.
41+
- ``del`` and new function ``state.delete()`` can delete state variables and state variable attributes.
4242

4343
Bug fixes since 1.0.0 in master include:
4444

docs/reference.rst

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
Reference
22
=========
33

4+
.. include:: <mmlalias.txt>
5+
46
Configuration
57
-------------
68

@@ -322,6 +324,22 @@ Optional arguments are:
322324
``True`` at startup, while the ``state_hold_false`` logic will continue to wait until the expression
323325
is ``False`` for that period before the next future trigger.
324326

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+
325343
All state variables in HASS have string values. So you’ll have to do comparisons against string
326344
values or cast the variable to an integer or float. These two examples are essentially equivalent
327345
(note the use of single quotes inside the outer double quotes):

0 commit comments

Comments
 (0)