diff --git a/components/binary_sensor/index.rst b/components/binary_sensor/index.rst index 385624498..d5be01a8d 100644 --- a/components/binary_sensor/index.rst +++ b/components/binary_sensor/index.rst @@ -77,6 +77,7 @@ of these entries matters!) - invert: - delayed_on: 100ms - delayed_off: 100ms + - delayed_on_off: 100ms - lambda: |- if (id(other_binary_sensor).state) { return x; @@ -95,6 +96,9 @@ Supported filters: an OFF state. If an ON value is received while waiting, the OFF action is discarded. Or in other words: Only send an OFF value if the binary sensor has stayed OFF for at least the specified time period. **Useful for debouncing push buttons**. +- **delayed_on_off**: Only send an ON or OFF value if the binary sensor has stayed in the same state + for at least the specified time period. + **Useful for debouncing binary switches**. - **lambda**: Specify any :ref:`lambda ` for more complex filters. The input value from the binary sensor is ``x`` and you can return ``true`` for ON, ``false`` for OFF, and ``{}`` to stop the filter chain.