effects_off
Stop active lighting effects on LIFX smart lights. Use this tool to disable animations and return lights to static operation.
Instructions
Turn off any running effects
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| token | Yes | LIFX API token | |
| selector | No | Selector for filtering lights (default: 'all') | |
| power_off | No | Also turn off the lights |
Implementation Reference
- src/index.ts:260-272 (registration)Registration of the 'effects_off' tool including its name, description, and input schema definition.
{ name: "effects_off", description: "Turn off any running effects", inputSchema: { type: "object", properties: { token: { type: "string", description: "LIFX API token" }, selector: { type: "string", description: "Selector for filtering lights (default: 'all')" }, power_off: { type: "boolean", description: "Also turn off the lights" }, }, required: ["token"], }, }, - src/index.ts:479-501 (handler)Handler implementation for 'effects_off' tool. It sends a POST request to LIFX API endpoint /lights/{selector}/effects/off with optional power_off body parameter and returns a success message with the API response.
case "effects_off": { const { token, selector = "all", power_off } = args as { token: string; selector?: string; power_off?: boolean; }; const body = power_off !== undefined ? { power_off } : {}; const result = await makeLIFXRequest(`/lights/${selector}/effects/off`, { method: "POST", body, token, }); return { content: [ { type: "text", text: `Effects turned off for selector "${selector}". ${JSON.stringify(result, null, 2)}`, }, ], }; }