From 54c75fb606aba53918a1e3e146762152acf11e37 Mon Sep 17 00:00:00 2001 From: schelv <13403863+schelv@users.noreply.github.com> Date: Mon, 4 Dec 2023 06:50:14 +0100 Subject: [PATCH] Add Option For Kelvin Unit To Color Temperature Selector (#29804) * Update selectors.markdown * Update source/_docs/blueprint/selectors.markdown Co-authored-by: Fletcher * tiny tweak --------- Co-authored-by: Fletcher Co-authored-by: c0ffeeca7 <38767475+c0ffeeca7@users.noreply.github.com> --- source/_docs/blueprint/selectors.markdown | 27 +++++++++++++---------- 1 file changed, 15 insertions(+), 12 deletions(-) diff --git a/source/_docs/blueprint/selectors.markdown b/source/_docs/blueprint/selectors.markdown index 9d8ccf23d7f..42c6f42402a 100644 --- a/source/_docs/blueprint/selectors.markdown +++ b/source/_docs/blueprint/selectors.markdown @@ -305,9 +305,7 @@ The output of this selector is `true` when the toggle is on, `false` otherwise. ## Color temperature selector -The color temperature selector provides a select that allows for selecting -a color temperature. The selector returns the number of mireds selected and -allows limiting the range of selectable mireds. +The color temperature selector allows you to select a color temperature from a gradient using a slider. ![Screenshot of the Color temperature selector](/images/blueprints/selector-color-temp.png) @@ -316,19 +314,24 @@ color_temp: ``` {% configuration color_temp %} -min_mireds: - description: The minimum color temperature in mireds. - type: integer - default: 153 +unit: + description: The chosen unit for the color temperature. This can be either `kelvin` or `mired`. `mired` is the default for historical reasons. + type: string required: false -max_mireds: - description: The maximum color temperature in mireds. + default: mired +min: + description: The minimum color temperature in the chosen unit. type: integer - default: 500 + default: 2700 for kelvin 153 for mired + required: false +max: + description: The maximum color temperature in the chosen unit. + type: integer + default: 6500 for kelvin 500 for mired required: false {% endconfiguration %} -The output of this selector is the number of mired selected, for example, `243`. +The output of this selector is the number representing the chosen color temperature for the unit used. ## Condition selector @@ -1321,4 +1324,4 @@ The output of this selector is a list of triggers. For example: - platform: numeric_state entity_id: "sensor.outside_temperature" below: 20 -```∏ \ No newline at end of file +```∏