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
- Label
- Which lights?
- Slug
- selector
- Required
- true
- Can have default value
- false
- 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)