Set operation mode
set_modeSwitch Twinkly LEDs to any operation mode: off, color, demo, movie, effect, realtime, or playlist. Pass an effect ID when selecting effect mode.
Instructions
Set the LED operation mode directly. Modes: off, color (static color), demo (built-in loop), movie (a saved movie), effect (a predefined effect — pass effectId), rt (realtime), playlist. To pick which movie/effect plays, use set_movie / set_effect.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | Yes | The operation mode to switch to. | |
| device | No | Name of the target device (see list_devices). Omit to use the default device. | |
| effectId | No | Effect id to play, only used when mode is "effect". |