Add kelvin/brightness_pct alternatives to light.turn_on (#7596)
* Refactor color profiles to a class * Refactor into preprocess_turn_on_alternatives * LIFX: use light.preprocess_turn_on_alternatives This avoids the color_name duplication and gains support for profile. * Add kelvin parameter to light.turn_on * Add brightness_pct parameter to light.turn_on * LIFX: accept brightness_pct in effects * Add test of kelvin/brightness_pct conversions
This commit is contained in:
1 parent
9dcc0b5ef5
commit
ed5f94fd8a
5 files changed
+106
-54
No files matched your search
@@ -26,7 +26,11 @@ turn_on:
|
||||
|
||||
color_temp:
|
||||
description: Color temperature for the light in mireds
|
||||
example: '250'
|
||||
example: 250
|
||||
|
||||
kelvin:
|
||||
description: Color temperature for the light in Kelvin
|
||||
example: 4000
|
||||
|
||||
white_value:
|
||||
description: Number between 0..255 indicating level of white
|
||||
@@ -36,6 +40,10 @@ turn_on:
|
||||
description: Number between 0..255 indicating brightness
|
||||
example: 120
|
||||
|
||||
brightness_pct:
|
||||
description: Number between 0..100 indicating percentage of full brightness
|
||||
example: 47
|
||||
|
||||
profile:
|
||||
description: Name of a light profile to use
|
||||
example: relax
|
||||
|
||||
Reference in new issue
Block a user