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 turn your lights off if they are on, and turn them on if they are off.
- 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)