From e710582826d2cfd5eafa974e12269b113990e499 Mon Sep 17 00:00:00 2001 From: Jesse Hills <3060199+jesserockz@users.noreply.github.com> Date: Tue, 21 Feb 2023 11:22:46 +1300 Subject: [PATCH] Add docs for split visual temperature step (#2691) --- components/climate/index.rst | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/components/climate/index.rst b/components/climate/index.rst index 25c333cdc..ad5eab2b4 100644 --- a/components/climate/index.rst +++ b/components/climate/index.rst @@ -43,7 +43,10 @@ Configuration variables: - **max_temperature** (*Optional*, float): The maximum temperature the climate device can reach. Used to set the range of the frontend gauge. - **temperature_step** (*Optional*, float): The granularity with which the target temperature - can be controlled. + can be controlled. Can be a single number, or split as below: + + - **target_temperature** (**Required**, float) + - **current_temperature** (**Required**, float) Advanced options: @@ -58,6 +61,18 @@ Advanced options: for a list of available options. Requires Home Assistant 2021.11 or newer. Set to ``""`` to remove the default entity category. + +.. code-block:: yaml + + climate: + - platform: ... + visual: + min_temperature: 18 + max_temperature: 25 + temperature_step: + target_temperature: 0.5 + current_temperature: 0.1 + Climate Automation ------------------ @@ -142,7 +157,7 @@ advanced stuff. id(my_climate).preset // Custom Preset, type: string id(my_climate).custom_preset - + - ``.make_call``: Control the climate device @@ -158,7 +173,7 @@ advanced stuff. ``climate.on_state`` Trigger **************************** -This trigger is activated each time the state of the climate device is updated +This trigger is activated each time the state of the climate device is updated (for example, if the current temperature measurement or the mode set by the users changes). .. code-block:: yaml