Explore Plans
Mobile menu Close menu
Smart LifeSmart Life

Set light color

This action will set the light to specified color.

Developer info

API endpoint slug
smartlife.light_color
Filter code method
Smartlife.lightColor.skip(string?: reason)
Runtime method
runAction("smartlife.light_color", {})

Action fields

Which device Dropdown list

Label
Which device/group?
Helper text
Not all Smart Life devices are supported by this service. Refer to the device manufacturer for further information.
Slug
which_device
Required
true
Can have default value
false

Turn on first Dropdown list

Label
Turn on first?
Helper text
Select "Yes" will turn the light on even if it's off.
Slug
turn_on_first
Required
true
Can have default value
true
Filter code method
Smartlife.lightColor.setTurnOnFirst(string: turnOnFirst)

Light color Dropdown list

Label
Color
Slug
light_color
Required
true
Can have default value
true
Filter code method
Smartlife.lightColor.setLightColor(string: lightColor)

Light brightness Dropdown list

Label
Brightness
Slug
light_brightness
Required
true
Can have default value
true
Filter code method
Smartlife.lightColor.setLightBrightness(string: lightBrightness)