mirror of
https://github.com/home-assistant/core.git
synced 2025-07-22 20:57:21 +00:00
Adds fields to light.toggle service description (#27155)
This commit is contained in:
parent
2f251104e3
commit
4733fea416
@ -5,22 +5,22 @@ turn_on:
|
|||||||
fields:
|
fields:
|
||||||
entity_id:
|
entity_id:
|
||||||
description: Name(s) of entities to turn on
|
description: Name(s) of entities to turn on
|
||||||
example: 'light.kitchen'
|
example: "light.kitchen"
|
||||||
transition:
|
transition:
|
||||||
description: Duration in seconds it takes to get to next state
|
description: Duration in seconds it takes to get to next state
|
||||||
example: 60
|
example: 60
|
||||||
rgb_color:
|
rgb_color:
|
||||||
description: Color for the light in RGB-format.
|
description: Color for the light in RGB-format.
|
||||||
example: '[255, 100, 100]'
|
example: "[255, 100, 100]"
|
||||||
color_name:
|
color_name:
|
||||||
description: A human readable color name.
|
description: A human readable color name.
|
||||||
example: 'red'
|
example: "red"
|
||||||
hs_color:
|
hs_color:
|
||||||
description: Color for the light in hue/sat format. Hue is 0-360 and Sat is 0-100.
|
description: Color for the light in hue/sat format. Hue is 0-360 and Sat is 0-100.
|
||||||
example: '[300, 70]'
|
example: "[300, 70]"
|
||||||
xy_color:
|
xy_color:
|
||||||
description: Color for the light in XY-format.
|
description: Color for the light in XY-format.
|
||||||
example: '[0.52, 0.43]'
|
example: "[0.52, 0.43]"
|
||||||
color_temp:
|
color_temp:
|
||||||
description: Color temperature for the light in mireds.
|
description: Color temperature for the light in mireds.
|
||||||
example: 250
|
example: 250
|
||||||
@ -29,7 +29,7 @@ turn_on:
|
|||||||
example: 4000
|
example: 4000
|
||||||
white_value:
|
white_value:
|
||||||
description: Number between 0..255 indicating level of white.
|
description: Number between 0..255 indicating level of white.
|
||||||
example: '250'
|
example: "250"
|
||||||
brightness:
|
brightness:
|
||||||
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.
|
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.
|
||||||
example: 120
|
example: 120
|
||||||
@ -55,7 +55,7 @@ turn_off:
|
|||||||
fields:
|
fields:
|
||||||
entity_id:
|
entity_id:
|
||||||
description: Name(s) of entities to turn off.
|
description: Name(s) of entities to turn off.
|
||||||
example: 'light.kitchen'
|
example: "light.kitchen"
|
||||||
transition:
|
transition:
|
||||||
description: Duration in seconds it takes to get to next state.
|
description: Duration in seconds it takes to get to next state.
|
||||||
example: 60
|
example: 60
|
||||||
@ -68,23 +68,67 @@ turn_off:
|
|||||||
toggle:
|
toggle:
|
||||||
description: Toggles a light.
|
description: Toggles a light.
|
||||||
fields:
|
fields:
|
||||||
'...':
|
entity_id:
|
||||||
description: All turn_on parameters can be used.
|
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:
|
||||||
|
description: Color for the light in hue/sat format. Hue is 0-360 and Sat is 0-100.
|
||||||
|
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:
|
||||||
|
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.
|
||||||
|
example: 120
|
||||||
|
brightness_pct:
|
||||||
|
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.
|
||||||
|
example: 47
|
||||||
|
profile:
|
||||||
|
description: Name of a light profile to use.
|
||||||
|
example: relax
|
||||||
|
flash:
|
||||||
|
description: If the light should flash.
|
||||||
|
values:
|
||||||
|
- short
|
||||||
|
- long
|
||||||
|
effect:
|
||||||
|
description: Light effect.
|
||||||
|
values:
|
||||||
|
- colorloop
|
||||||
|
- random
|
||||||
|
|
||||||
lifx_set_state:
|
lifx_set_state:
|
||||||
description: Set a color/brightness and possibliy turn the light on/off.
|
description: Set a color/brightness and possibliy turn the light on/off.
|
||||||
fields:
|
fields:
|
||||||
entity_id:
|
entity_id:
|
||||||
description: Name(s) of entities to set a state on.
|
description: Name(s) of entities to set a state on.
|
||||||
example: 'light.garage'
|
example: "light.garage"
|
||||||
'...':
|
"...":
|
||||||
description: All turn_on parameters can be used to specify a color.
|
description: All turn_on parameters can be used to specify a color.
|
||||||
infrared:
|
infrared:
|
||||||
description: Automatic infrared level (0..255) when light brightness is low.
|
description: Automatic infrared level (0..255) when light brightness is low.
|
||||||
example: 255
|
example: 255
|
||||||
zones:
|
zones:
|
||||||
description: List of zone numbers to affect (8 per LIFX Z, starts at 0).
|
description: List of zone numbers to affect (8 per LIFX Z, starts at 0).
|
||||||
example: '[0,5]'
|
example: "[0,5]"
|
||||||
transition:
|
transition:
|
||||||
description: Duration in seconds it takes to get to the final state.
|
description: Duration in seconds it takes to get to the final state.
|
||||||
example: 10
|
example: 10
|
||||||
@ -97,19 +141,19 @@ lifx_effect_pulse:
|
|||||||
fields:
|
fields:
|
||||||
entity_id:
|
entity_id:
|
||||||
description: Name(s) of entities to run the effect on.
|
description: Name(s) of entities to run the effect on.
|
||||||
example: 'light.kitchen'
|
example: "light.kitchen"
|
||||||
mode:
|
mode:
|
||||||
description: 'Decides how colors are changed. Possible values: blink, breathe, ping, strobe, solid.'
|
description: "Decides how colors are changed. Possible values: blink, breathe, ping, strobe, solid."
|
||||||
example: strobe
|
example: strobe
|
||||||
brightness:
|
brightness:
|
||||||
description: Number between 0..255 indicating brightness of the temporary color.
|
description: Number between 0..255 indicating brightness of the temporary color.
|
||||||
example: 120
|
example: 120
|
||||||
color_name:
|
color_name:
|
||||||
description: A human readable color name.
|
description: A human readable color name.
|
||||||
example: 'red'
|
example: "red"
|
||||||
rgb_color:
|
rgb_color:
|
||||||
description: The temporary color in RGB-format.
|
description: The temporary color in RGB-format.
|
||||||
example: '[255, 100, 100]'
|
example: "[255, 100, 100]"
|
||||||
period:
|
period:
|
||||||
description: Duration of the effect in seconds (default 1.0).
|
description: Duration of the effect in seconds (default 1.0).
|
||||||
example: 3
|
example: 3
|
||||||
@ -125,7 +169,7 @@ lifx_effect_colorloop:
|
|||||||
fields:
|
fields:
|
||||||
entity_id:
|
entity_id:
|
||||||
description: Name(s) of entities to run the effect on.
|
description: Name(s) of entities to run the effect on.
|
||||||
example: 'light.disco1, light.disco2, light.disco3'
|
example: "light.disco1, light.disco2, light.disco3"
|
||||||
brightness:
|
brightness:
|
||||||
description: Number between 0 and 255 indicating brightness of the effect. Leave this out to maintain the current brightness of each participating light.
|
description: Number between 0 and 255 indicating brightness of the effect. Leave this out to maintain the current brightness of each participating light.
|
||||||
example: 120
|
example: 120
|
||||||
@ -147,14 +191,14 @@ lifx_effect_stop:
|
|||||||
fields:
|
fields:
|
||||||
entity_id:
|
entity_id:
|
||||||
description: Name(s) of entities to stop effects on. Leave out to stop effects everywhere.
|
description: Name(s) of entities to stop effects on. Leave out to stop effects everywhere.
|
||||||
example: 'light.bedroom'
|
example: "light.bedroom"
|
||||||
|
|
||||||
xiaomi_miio_set_scene:
|
xiaomi_miio_set_scene:
|
||||||
description: Set a fixed scene.
|
description: Set a fixed scene.
|
||||||
fields:
|
fields:
|
||||||
entity_id:
|
entity_id:
|
||||||
description: Name of the light entity.
|
description: Name of the light entity.
|
||||||
example: 'light.xiaomi_miio'
|
example: "light.xiaomi_miio"
|
||||||
scene:
|
scene:
|
||||||
description: Number of the fixed scene, between 1 and 4.
|
description: Number of the fixed scene, between 1 and 4.
|
||||||
example: 1
|
example: 1
|
||||||
@ -164,7 +208,7 @@ xiaomi_miio_set_delayed_turn_off:
|
|||||||
fields:
|
fields:
|
||||||
entity_id:
|
entity_id:
|
||||||
description: Name of the light entity.
|
description: Name of the light entity.
|
||||||
example: 'light.xiaomi_miio'
|
example: "light.xiaomi_miio"
|
||||||
time_period:
|
time_period:
|
||||||
description: Time period for the delayed turn off.
|
description: Time period for the delayed turn off.
|
||||||
example: "5, '0:05', {'minutes': 5}"
|
example: "5, '0:05', {'minutes': 5}"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user