2019-03-24 12:01:12 +00:00
set_mode :
description : Set a operation mode.
fields :
entity_id :
description : Name of the light entity.
2020-04-05 15:27:16 +00:00
example : "light.yeelight"
2019-03-24 12:01:12 +00:00
mode :
description : Operation mode. Valid values are 'last', 'normal', 'rgb', 'hsv', 'color_flow', 'moonlight'.
2020-04-05 15:27:16 +00:00
example : "moonlight"
2019-09-06 18:46:14 +00:00
set_color_scene :
description : Changes the light to the specified RGB color and brightness. If the light is off, it will be turned on.
fields :
entity_id :
description : Name of the light entity.
2020-04-05 15:27:16 +00:00
example : "light.yeelight"
2019-09-06 18:46:14 +00:00
rgb_color :
description : Color for the light in RGB-format.
2020-04-05 15:27:16 +00:00
example : "[255, 100, 100]"
2019-09-06 18:46:14 +00:00
brightness :
description : The brightness value to set (1-100).
example : 50
set_hsv_scene :
description : Changes the light to the specified HSV color and brightness. If the light is off, it will be turned on.
fields :
entity_id :
description : Name of the light entity.
2020-04-05 15:27:16 +00:00
example : "light.yeelight"
2019-09-06 18:46:14 +00:00
hs_color :
description : Color for the light in hue/sat format. Hue is 0-359 and Sat is 0-100.
2020-04-05 15:27:16 +00:00
example : "[300, 70]"
2019-09-06 18:46:14 +00:00
brightness :
description : The brightness value to set (1-100).
example : 50
set_color_temp_scene :
description : Changes the light to the specified color temperature. If the light is off, it will be turned on.
fields :
entity_id :
description : Name of the light entity.
2020-04-05 15:27:16 +00:00
example : "light.yeelight"
2019-09-06 18:46:14 +00:00
kelvin :
description : Color temperature for the light in Kelvin.
example : 4000
brightness :
description : The brightness value to set (1-100).
example : 50
set_color_flow_scene :
description : starts a color flow. If the light is off, it will be turned on.
fields :
entity_id :
description : Name of the light entity.
2020-04-05 15:27:16 +00:00
example : "light.yeelight"
2019-09-06 18:46:14 +00:00
count :
description : The number of times to run this flow (0 to run forever).
example : 0
action :
description : The action to take after the flow stops. Can be 'recover', 'stay', 'off'. (default 'recover')
2020-04-05 15:27:16 +00:00
example : "stay"
2019-09-06 18:46:14 +00:00
transitions :
description : Array of transitions, for desired effect. Examples https://yeelight.readthedocs.io/en/stable/flow.html
example : '[{ "TemperatureTransition": [1900, 1000, 80] }, { "TemperatureTransition": [1900, 1000, 10] }]'
set_auto_delay_off_scene :
description : Turns the light on to the specified brightness and sets a timer to turn it back off after the given number of minutes. If the light is off, Set a color scene, if light is off, it will be turned on.
fields :
entity_id :
description : Name of the light entity.
2020-04-05 15:27:16 +00:00
example : "light.yeelight"
2019-09-06 18:46:14 +00:00
minutes :
description : The minutes to wait before automatically turning the light off.
example : 5
brightness :
description : The brightness value to set (1-100).
example : 50
2019-03-24 12:01:12 +00:00
start_flow :
description : Start a custom flow, using transitions from https://yeelight.readthedocs.io/en/stable/yeelight.html#flow-objects
fields :
entity_id :
description : Name of the light entity.
2020-04-05 15:27:16 +00:00
example : "light.yeelight"
2019-03-24 12:01:12 +00:00
count :
description : The number of times to run this flow (0 to run forever).
example : 0
action :
description : The action to take after the flow stops. Can be 'recover', 'stay', 'off'. (default 'recover')
2020-04-05 15:27:16 +00:00
example : "stay"
2019-03-24 12:01:12 +00:00
transitions :
description : Array of transitions, for desired effect. Examples https://yeelight.readthedocs.io/en/stable/flow.html
example : '[{ "TemperatureTransition": [1900, 1000, 80] }, { "TemperatureTransition": [1900, 1000, 10] }]'