Explore Plans
Mobile menu Close menu
TP-Link KasaTP-Link Kasa

Change color

This action will change the color of a light bulb.

Developer info

API endpoint slug
kasa.change_color
Filter code method
Kasa.changeColor.skip(string?: reason)
Runtime method
runAction("kasa.change_color", {})

Action fields

Device Dropdown list

Label
Device
Slug
device
Required
true
Can have default value
false

Color Dropdown list

Label
Color
Slug
color
Required
true
Can have default value
true
Filter code method
Kasa.changeColor.setColor(string: color)

Brightness Dropdown list

Label
Brightness
Helper text
Choose a brightness
Slug
brightness
Required
false
Can have default value
true
Filter code method
Kasa.changeColor.setBrightness(string: brightness)

Transition duration Dropdown list

Label
Transition duration
Helper text
How long should it take for the lights to transition between colors?
Slug
transition_duration
Required
false
Can have default value
true
Filter code method
Kasa.changeColor.setTransitionDuration(string: transitionDuration)

Advanced options Text input > Other

Label
Advanced options
Helper text
Provide custom options here. For example : "color: #ffff00; brightness: 50; transition_duration: 3000” for yellow at 50% brightness, 3 seconds transition duration.
Slug
advanced_options
Required
false
Can have default value
true
Filter code method
Kasa.changeColor.setAdvancedOptions(string: advancedOptions)