mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-23 17:27:19 +00:00
Update light.template documentation (#27822)
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
This commit is contained in:
parent
60c82707a9
commit
8fee1fa0a1
@ -105,11 +105,6 @@ light:
|
|||||||
required: false
|
required: false
|
||||||
type: template
|
type: template
|
||||||
default: optimistic
|
default: optimistic
|
||||||
white_value_template:
|
|
||||||
description: Defines a template to get the white value of the light.
|
|
||||||
required: false
|
|
||||||
type: template
|
|
||||||
default: optimistic
|
|
||||||
color_template:
|
color_template:
|
||||||
description: Defines a template to get the color of the light. Must render a tuple (hue, saturation)
|
description: Defines a template to get the color of the light. Must render a tuple (hue, saturation)
|
||||||
required: false
|
required: false
|
||||||
@ -150,31 +145,27 @@ light:
|
|||||||
type: template
|
type: template
|
||||||
default: true
|
default: true
|
||||||
turn_on:
|
turn_on:
|
||||||
description: Defines an action to run when the light is turned on.
|
description: Defines an action to run when the light is turned on. May receive variables `brightness` and/or `transition`.
|
||||||
required: true
|
required: true
|
||||||
type: action
|
type: action
|
||||||
turn_off:
|
turn_off:
|
||||||
description: Defines an action to run when the light is turned off.
|
description: Defines an action to run when the light is turned off. May receive variable `transition`.
|
||||||
required: true
|
required: true
|
||||||
type: action
|
type: action
|
||||||
set_level:
|
set_level:
|
||||||
description: Defines an action to run when the light is given a brightness command. The script will only be called if the `turn_on` call only has brightness, and optionally transition.
|
description: Defines an action to run when the light is given a brightness command. The script will only be called if the `turn_on` call only has brightness, and optionally transition. Receives variables `brightness` and optionally `transition`.
|
||||||
required: false
|
required: false
|
||||||
type: action
|
type: action
|
||||||
set_temperature:
|
set_temperature:
|
||||||
description: Defines an action to run when the light is given a color temperature command.
|
description: Defines an action to run when the light is given a color temperature command. Receives variable `color_temp`. May also receive variables `brightness` and/or `transition`.
|
||||||
required: false
|
|
||||||
type: action
|
|
||||||
set_white_value:
|
|
||||||
description: Defines an action to run when the light is given a white value command.
|
|
||||||
required: false
|
required: false
|
||||||
type: action
|
type: action
|
||||||
set_color:
|
set_color:
|
||||||
description: Defines an action to run when the light is given a color command.
|
description: Defines an action to run when the light is given a color command. Receives variables `h`, `s`, and `hs` (which is equivalent to `(h, s)`). May also receive variables `brightness` and/or `transition`.
|
||||||
required: false
|
required: false
|
||||||
type: action
|
type: action
|
||||||
set_effect:
|
set_effect:
|
||||||
description: Defines an action to run when the light is given an effect command.
|
description: Defines an action to run when the light is given an effect command. Receives variable `effect`. May also receive variables `brightness` and/or `transition`.
|
||||||
required: inclusive
|
required: inclusive
|
||||||
type: action
|
type: action
|
||||||
{% endconfiguration %}
|
{% endconfiguration %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user