effects_off
Stop active lighting effects on LIFX smart lights. Use this tool to disable animations, color cycles, or other dynamic patterns and return lights to static operation.
Instructions
Turn off any running effects
Input Schema
TableJSON 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:479-501 (handler)Handler implementation for the 'effects_off' tool. Extracts parameters, constructs API request to /lights/{selector}/effects/off with optional power_off body, and returns success message with 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)}`, }, ], }; }
- src/index.ts:260-272 (registration)Registration of the 'effects_off' tool in the listTools handler, including 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:552-552 (schema)Description of the 'effects_off' tool in the API documentation resource.9. **effects_off** - Turn off any running effects