2015-09-27 06:17:04 +00:00
|
|
|
# Describes the format for available light services
|
|
|
|
|
|
|
|
turn_on:
|
2017-10-30 20:39:12 +00:00
|
|
|
description: Turn a light on.
|
2021-02-16 08:35:27 +00:00
|
|
|
target:
|
2015-09-27 06:17:04 +00:00
|
|
|
fields:
|
|
|
|
transition:
|
2021-02-16 08:35:27 +00:00
|
|
|
name: Transition
|
2015-09-27 06:17:04 +00:00
|
|
|
description: Duration in seconds it takes to get to next state
|
|
|
|
example: 60
|
2021-02-16 08:35:27 +00:00
|
|
|
selector:
|
|
|
|
number:
|
|
|
|
min: 0
|
|
|
|
max: 300
|
|
|
|
step: 1
|
|
|
|
unit_of_measurement: seconds
|
|
|
|
mode: slider
|
2015-09-27 06:17:04 +00:00
|
|
|
rgb_color:
|
2017-10-30 20:39:12 +00:00
|
|
|
description: Color for the light in RGB-format.
|
2019-10-03 20:28:53 +00:00
|
|
|
example: "[255, 100, 100]"
|
2016-05-17 07:06:55 +00:00
|
|
|
color_name:
|
2017-10-30 20:39:12 +00:00
|
|
|
description: A human readable color name.
|
2019-10-03 20:28:53 +00:00
|
|
|
example: "red"
|
2018-04-03 23:05:06 +00:00
|
|
|
hs_color:
|
2021-02-18 11:59:46 +00:00
|
|
|
description:
|
|
|
|
Color for the light in hue/sat format. Hue is 0-360 and Sat is 0-100.
|
2019-10-03 20:28:53 +00:00
|
|
|
example: "[300, 70]"
|
2015-09-27 06:17:04 +00:00
|
|
|
xy_color:
|
2017-10-30 20:39:12 +00:00
|
|
|
description: Color for the light in XY-format.
|
2019-10-03 20:28:53 +00:00
|
|
|
example: "[0.52, 0.43]"
|
2015-10-28 23:12:16 +00:00
|
|
|
color_temp:
|
2017-10-30 20:39:12 +00:00
|
|
|
description: Color temperature for the light in mireds.
|
2017-05-17 06:00:46 +00:00
|
|
|
example: 250
|
|
|
|
kelvin:
|
2017-10-30 20:39:12 +00:00
|
|
|
description: Color temperature for the light in Kelvin.
|
2017-05-17 06:00:46 +00:00
|
|
|
example: 4000
|
2016-09-21 04:26:40 +00:00
|
|
|
white_value:
|
2017-10-30 20:39:12 +00:00
|
|
|
description: Number between 0..255 indicating level of white.
|
2019-10-03 20:28:53 +00:00
|
|
|
example: "250"
|
2015-09-27 06:17:04 +00:00
|
|
|
brightness:
|
2021-02-18 11:59:46 +00:00
|
|
|
name: Brightness value
|
|
|
|
description:
|
|
|
|
Number between 0..255 indicating brightness, where 0 turns the light
|
|
|
|
off, 1 is the minimum brightness and 255 is the maximum brightness
|
|
|
|
supported by the light.
|
|
|
|
advanced: true
|
2015-09-27 06:17:04 +00:00
|
|
|
example: 120
|
2021-02-18 11:59:46 +00:00
|
|
|
selector:
|
|
|
|
number:
|
|
|
|
min: 0
|
|
|
|
max: 255
|
|
|
|
step: 1
|
|
|
|
mode: slider
|
2017-05-17 06:00:46 +00:00
|
|
|
brightness_pct:
|
2021-02-16 08:35:27 +00:00
|
|
|
name: Brightness
|
2021-02-18 11:59:46 +00:00
|
|
|
description:
|
|
|
|
Number between 0..100 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.
|
2017-05-17 06:00:46 +00:00
|
|
|
example: 47
|
2021-02-16 08:35:27 +00:00
|
|
|
selector:
|
|
|
|
number:
|
|
|
|
min: 0
|
|
|
|
max: 100
|
|
|
|
step: 1
|
|
|
|
unit_of_measurement: "%"
|
|
|
|
mode: slider
|
2020-02-05 00:13:29 +00:00
|
|
|
brightness_step:
|
|
|
|
description: Change brightness by an amount. Should be between -255..255.
|
|
|
|
example: -25.5
|
|
|
|
brightness_step_pct:
|
2021-02-18 11:59:46 +00:00
|
|
|
description:
|
|
|
|
Change brightness by a percentage. Should be between -100..100.
|
2020-02-05 00:13:29 +00:00
|
|
|
example: -10
|
2015-09-27 06:17:04 +00:00
|
|
|
profile:
|
2017-10-30 20:39:12 +00:00
|
|
|
description: Name of a light profile to use.
|
2015-09-27 06:17:04 +00:00
|
|
|
example: relax
|
|
|
|
flash:
|
2019-10-04 15:46:23 +00:00
|
|
|
description: If the light should flash. Valid values are short and long.
|
|
|
|
example: short
|
2015-09-27 06:17:04 +00:00
|
|
|
values:
|
|
|
|
- short
|
|
|
|
- long
|
|
|
|
effect:
|
2017-10-30 20:39:12 +00:00
|
|
|
description: Light effect.
|
2019-10-04 15:46:23 +00:00
|
|
|
example: random
|
2015-09-27 06:17:04 +00:00
|
|
|
values:
|
|
|
|
- colorloop
|
2015-12-25 03:10:27 +00:00
|
|
|
- random
|
2015-09-27 06:17:04 +00:00
|
|
|
|
|
|
|
turn_off:
|
2017-10-30 20:39:12 +00:00
|
|
|
description: Turn a light off.
|
2015-09-27 06:17:04 +00:00
|
|
|
fields:
|
|
|
|
entity_id:
|
2017-10-30 20:39:12 +00:00
|
|
|
description: Name(s) of entities to turn off.
|
2019-10-03 20:28:53 +00:00
|
|
|
example: "light.kitchen"
|
2015-09-27 06:17:04 +00:00
|
|
|
transition:
|
2017-10-30 20:39:12 +00:00
|
|
|
description: Duration in seconds it takes to get to next state.
|
2015-09-27 06:17:04 +00:00
|
|
|
example: 60
|
2016-09-04 10:04:12 +00:00
|
|
|
flash:
|
2019-10-04 15:46:23 +00:00
|
|
|
description: If the light should flash. Valid values are short and long.
|
|
|
|
example: short
|
2016-09-04 10:04:12 +00:00
|
|
|
values:
|
|
|
|
- short
|
|
|
|
- long
|
|
|
|
|
2016-01-16 15:45:05 +00:00
|
|
|
toggle:
|
2017-10-30 20:39:12 +00:00
|
|
|
description: Toggles a light.
|
2016-01-16 15:45:05 +00:00
|
|
|
fields:
|
2019-10-03 20:28:53 +00:00
|
|
|
entity_id:
|
|
|
|
description: Name(s) of entities to turn on
|
|
|
|
example: "light.kitchen"
|
|
|
|
transition:
|
|
|
|
description: Duration in seconds it takes to get to next state
|
|
|
|
example: 60
|
|
|
|
rgb_color:
|
|
|
|
description: Color for the light in RGB-format.
|
|
|
|
example: "[255, 100, 100]"
|
|
|
|
color_name:
|
|
|
|
description: A human readable color name.
|
|
|
|
example: "red"
|
|
|
|
hs_color:
|
2021-02-18 11:59:46 +00:00
|
|
|
description:
|
|
|
|
Color for the light in hue/sat format. Hue is 0-360 and Sat is 0-100.
|
2019-10-03 20:28:53 +00:00
|
|
|
example: "[300, 70]"
|
|
|
|
xy_color:
|
|
|
|
description: Color for the light in XY-format.
|
|
|
|
example: "[0.52, 0.43]"
|
|
|
|
color_temp:
|
|
|
|
description: Color temperature for the light in mireds.
|
|
|
|
example: 250
|
|
|
|
kelvin:
|
|
|
|
description: Color temperature for the light in Kelvin.
|
|
|
|
example: 4000
|
|
|
|
white_value:
|
|
|
|
description: Number between 0..255 indicating level of white.
|
|
|
|
example: "250"
|
|
|
|
brightness:
|
2021-02-18 11:59:46 +00:00
|
|
|
description:
|
|
|
|
Number between 0..255 indicating brightness, where 0 turns the light
|
|
|
|
off, 1 is the minimum brightness and 255 is the maximum brightness
|
|
|
|
supported by the light.
|
2019-10-03 20:28:53 +00:00
|
|
|
example: 120
|
|
|
|
brightness_pct:
|
2021-02-18 11:59:46 +00:00
|
|
|
description:
|
|
|
|
Number between 0..100 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.
|
2019-10-03 20:28:53 +00:00
|
|
|
example: 47
|
|
|
|
profile:
|
|
|
|
description: Name of a light profile to use.
|
|
|
|
example: relax
|
|
|
|
flash:
|
2019-10-04 15:46:23 +00:00
|
|
|
description: If the light should flash. Valid values are short and long.
|
|
|
|
example: short
|
2019-10-03 20:28:53 +00:00
|
|
|
values:
|
|
|
|
- short
|
|
|
|
- long
|
|
|
|
effect:
|
|
|
|
description: Light effect.
|
2019-10-04 15:46:23 +00:00
|
|
|
example: random
|
2019-10-03 20:28:53 +00:00
|
|
|
values:
|
|
|
|
- colorloop
|
|
|
|
- random
|