Merge branch 'current' into next

This commit is contained in:
Jesse Hills 2022-05-11 12:50:31 +12:00
commit 26f8b0f576
No known key found for this signature in database
GPG Key ID: BEAAE804EFD8E83A
2 changed files with 20 additions and 0 deletions

View File

@ -173,6 +173,12 @@ These configuration items determine default values the thermostat controller sho
- ``dry``
- ``fan_only``
- ``auto``
This value is used the first time your device starts after ESPHome is initially installed onto it. Add
this option into your configuration if you want your thermostat component to start in a climate mode other
than ``off``. If this option is not configured, you'll need to manually change the climate mode later via
the front end (Home Assistant), an ESPHome action, automation, or from within a lambda elsewhere in your
device's configuration.
- **default_target_temperature_low** (*Optional*, float): The default low target
temperature for the control algorithm. This can be dynamically set in the frontend later.

View File

@ -611,6 +611,20 @@ a shorthand way of writing a ``while`` action with an empty ``then`` block.)
binary_sensor.is_on: some_binary_sensor
- logger.log: "Binary sensor is ready"
If you want to use a timeout, the term "condition" is required:
.. code-block:: yaml
# In a trigger:
on_...:
- logger.log: "Waiting for binary sensor"
- wait_until:
condition:
binary_sensor.is_on: some_binary_sensor
timeout: 8s
- logger.log: "Binary sensor might be ready"
Configuration variables:
- **condition** (**Required**): The condition to wait to become true. See :ref:`Conditions <config-condition>`.