mirror of
https://github.com/esphome/esphome-docs.git
synced 2024-12-26 17:27:47 +01:00
Add a Binary Sensor Filter for state settling (#3439)
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
This commit is contained in:
parent
13d8585470
commit
e3ec10f8c7
@ -208,6 +208,16 @@ Specify any :ref:`lambda <config-lambda>` for more complex filters. The input va
|
||||
the binary sensor is ``x`` and you can return ``true`` for ON, ``false`` for OFF, and ``{}`` to stop
|
||||
the filter chain.
|
||||
|
||||
``settle``
|
||||
**********
|
||||
|
||||
(**Required**, time, :ref:`templatable <config-templatable>`): When a signal is received, publish the state
|
||||
but wait for the received state to remain the same for specified time period before publishing any
|
||||
additional state changes. This filter complements the ``delayed_on_off`` filter but publishes value changes at
|
||||
the beginning of the delay period.
|
||||
When using a lambda call, you should return the delay value in milliseconds.
|
||||
**Useful for debouncing binary switches**.
|
||||
|
||||
Binary Sensor Automation
|
||||
------------------------
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user