Explore Plans
Mobile menu Close menu
LIFXLIFX

Toggle lights on/off

This Action will turn your lights off if they are on, and turn them on if they are off.

Developer info

API endpoint slug
lifx.toggle
Filter code method
Lifx.toggle.skip(string?: reason)
Runtime method
runAction("lifx.toggle", {})

Action fields

Selector Dropdown list

Label
Which lights?
Slug
selector
Required
true
Can have default value
false

Advanced options Text input > Other

Label
Advanced options
Helper text
Want to toggle with a duration? Specify it here. Example: "transition_duration: 5" for a 5 second fade duration. More info
Slug
advanced_options
Required
false
Can have default value
true
Filter code method
Lifx.toggle.setAdvancedOptions(string: advancedOptions)