Explore Plans
Mobile menu Close menu
LIFX

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: &quot;transition_duration: 5&quot; for a 5 second fade duration. <a href="https://support.lifx.com/hc/en-us/articles/204881760" target="_blank">More info</a>
Slug
advanced_options
Required
false
Can have default value
true
Filter code method
Lifx.toggle.setAdvanced Options(string: advanced_options)