Skip to content
84 changes: 2 additions & 82 deletions homeassistant/components/light/services.yaml
Original file line number Diff line number Diff line change
@@ -1,17 +1,11 @@
# Describes the format for available light services

turn_on:
name: Turn on
description: >
Turn on one or more lights and adjust properties of the light, even when
they are turned on already.
target:
entity:
domain: light
fields:
transition:
name: Transition
description: Duration it takes to get to next state.
filter:
supported_features:
- light.LightEntityFeature.TRANSITION
Expand All @@ -21,8 +15,6 @@ turn_on:
max: 300
unit_of_measurement: seconds
rgb_color:
name: Color
description: The color for the light (based on RGB - red, green, blue).
filter:
attribute:
supported_color_modes:
Expand All @@ -34,8 +26,6 @@ turn_on:
selector:
color_rgb:
rgbw_color:
name: RGBW-color
description: A list containing four integers between 0 and 255 representing the RGBW (red, green, blue, white) color for the light.
filter:
attribute:
supported_color_modes:
Expand All @@ -49,8 +39,6 @@ turn_on:
selector:
object:
rgbww_color:
name: RGBWW-color
description: A list containing five integers between 0 and 255 representing the RGBWW (red, green, blue, cold white, warm white) color for the light.
filter:
attribute:
supported_color_modes:
Expand All @@ -64,8 +52,6 @@ turn_on:
selector:
object:
color_name:
name: Color name
description: A human readable color name.
filter:
attribute:
supported_color_modes:
Expand All @@ -77,6 +63,7 @@ turn_on:
advanced: true
selector:
select:
translation_key: color_name
options:
- "homeassistant"
- "aliceblue"
Expand Down Expand Up @@ -228,8 +215,6 @@ turn_on:
- "yellow"
- "yellowgreen"
hs_color:
name: Hue/Sat color
description: Color for the light in hue/sat format. Hue is 0-360 and Sat is 0-100.
filter:
attribute:
supported_color_modes:
Expand All @@ -243,8 +228,6 @@ turn_on:
selector:
object:
xy_color:
name: XY-color
description: Color for the light in XY-format.
filter:
attribute:
supported_color_modes:
Expand All @@ -258,8 +241,6 @@ turn_on:
selector:
object:
color_temp:
name: Color temperature
description: Color temperature for the light in mireds.
filter:
attribute:
supported_color_modes:
Expand All @@ -274,8 +255,6 @@ turn_on:
min_mireds: 153
max_mireds: 500
kelvin:
name: Color temperature (Kelvin)
description: Color temperature for the light in Kelvin.
filter:
attribute:
supported_color_modes:
Expand All @@ -293,10 +272,6 @@ turn_on:
step: 100
unit_of_measurement: K
brightness:
name: Brightness value
description: Number indicating brightness, where 0 turns the light
off, 1 is the minimum brightness and 255 is the maximum brightness
supported by the light.
filter:
attribute:
supported_color_modes:
Expand All @@ -313,10 +288,6 @@ turn_on:
min: 0
max: 255
brightness_pct:
name: Brightness
description: Number indicating percentage of full brightness, where 0
turns the light off, 1 is the minimum brightness and 100 is the maximum
brightness supported by the light.
filter:
attribute:
supported_color_modes:
Expand All @@ -333,8 +304,6 @@ turn_on:
max: 100
unit_of_measurement: "%"
brightness_step:
name: Brightness step value
description: Change brightness by an amount.
filter:
attribute:
supported_color_modes:
Expand All @@ -351,8 +320,6 @@ turn_on:
min: -225
max: 255
brightness_step_pct:
name: Brightness step
description: Change brightness by a percentage.
filter:
attribute:
supported_color_modes:
Expand All @@ -369,8 +336,6 @@ turn_on:
max: 100
unit_of_measurement: "%"
white:
name: White
description: Set the light to white mode.
filter:
attribute:
supported_color_modes:
Expand All @@ -381,15 +346,11 @@ turn_on:
value: true
label: Enabled
profile:
name: Profile
description: Name of a light profile to use.
advanced: true
example: relax
selector:
text:
flash:
name: Flash
description: If the light should flash.
filter:
supported_features:
- light.LightEntityFeature.FLASH
Expand All @@ -402,24 +363,18 @@ turn_on:
- label: "Short"
value: "short"
effect:
name: Effect
description: Light effect.
filter:
supported_features:
- light.LightEntityFeature.EFFECT
selector:
text:

turn_off:
name: Turn off
description: Turns off one or more lights.
target:
entity:
domain: light
fields:
transition:
name: Transition
description: Duration it takes to get to next state.
filter:
supported_features:
- light.LightEntityFeature.TRANSITION
Expand All @@ -429,8 +384,6 @@ turn_off:
max: 300
unit_of_measurement: seconds
flash:
name: Flash
description: If the light should flash.
filter:
supported_features:
- light.LightEntityFeature.FLASH
Expand All @@ -444,17 +397,11 @@ turn_off:
value: "short"

toggle:
name: Toggle
description: >
Toggles one or more lights, from on to off, or, off to on, based on their
current state.
target:
entity:
domain: light
fields:
transition:
name: Transition
description: Duration it takes to get to next state.
filter:
supported_features:
- light.LightEntityFeature.TRANSITION
Expand All @@ -464,8 +411,6 @@ toggle:
max: 300
unit_of_measurement: seconds
rgb_color:
name: RGB-color
description: Color for the light in RGB-format.
filter:
attribute:
supported_color_modes:
Expand All @@ -479,8 +424,6 @@ toggle:
selector:
object:
color_name:
name: Color name
description: A human readable color name.
filter:
attribute:
supported_color_modes:
Expand All @@ -492,6 +435,7 @@ toggle:
advanced: true
selector:
select:
translation_key: color_name
options:
- "homeassistant"
- "aliceblue"
Expand Down Expand Up @@ -643,8 +587,6 @@ toggle:
- "yellow"
- "yellowgreen"
hs_color:
name: Hue/Sat color
description: Color for the light in hue/sat format. Hue is 0-360 and Sat is 0-100.
filter:
attribute:
supported_color_modes:
Expand All @@ -658,8 +600,6 @@ toggle:
selector:
object:
xy_color:
name: XY-color
description: Color for the light in XY-format.
filter:
attribute:
supported_color_modes:
Expand All @@ -673,8 +613,6 @@ toggle:
selector:
object:
color_temp:
name: Color temperature (mireds)
description: Color temperature for the light in mireds.
filter:
attribute:
supported_color_modes:
Expand All @@ -688,8 +626,6 @@ toggle:
selector:
color_temp:
kelvin:
name: Color temperature (Kelvin)
description: Color temperature for the light in Kelvin.
filter:
attribute:
supported_color_modes:
Expand All @@ -707,10 +643,6 @@ toggle:
step: 100
unit_of_measurement: K
brightness:
name: Brightness value
description: Number indicating brightness, where 0 turns the light
off, 1 is the minimum brightness and 255 is the maximum brightness
supported by the light.
filter:
attribute:
supported_color_modes:
Expand All @@ -727,10 +659,6 @@ toggle:
min: 0
max: 255
brightness_pct:
name: Brightness
description: Number indicating percentage of full brightness, where 0
turns the light off, 1 is the minimum brightness and 100 is the maximum
brightness supported by the light.
filter:
attribute:
supported_color_modes:
Expand All @@ -747,8 +675,6 @@ toggle:
max: 100
unit_of_measurement: "%"
white:
name: White
description: Set the light to white mode.
filter:
attribute:
supported_color_modes:
Expand All @@ -759,15 +685,11 @@ toggle:
value: true
label: Enabled
profile:
name: Profile
description: Name of a light profile to use.
advanced: true
example: relax
selector:
text:
flash:
name: Flash
description: If the light should flash.
filter:
supported_features:
- light.LightEntityFeature.FLASH
Expand All @@ -780,8 +702,6 @@ toggle:
- label: "Short"
value: "short"
effect:
name: Effect
description: Light effect.
filter:
supported_features:
- light.LightEntityFeature.EFFECT
Expand Down
Loading