About this action
Triggers, queries, and actions are the building blocks of Applets. Triggers tell an Applet to start, queries ask a question, and actions are its end result.
Developer info
- Description
- This action will change the color of a light bulb.
- 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)