Toggle LIFX lights with a Button widget
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. <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.setAdvancedOptions(string: advanced_options)