Install
openclaw skills install lifxControl LIFX smart lights via natural language. Toggle, set colors/brightness, activate scenes, create gradients on multi-zone devices.
openclaw skills install lifxControl LIFX smart lights via the LIFX HTTP API through natural language.
lifx-api.sh — Bash wrapper for all LIFX API callsscene-status.py — Scene matching and active detectionsetup.sh — Device discovery and skill configurationSet your LIFX API token (get one at https://cloud.lifx.com/settings):
bash setup.sh <your-token>
This discovers your lights, groups, and scenes, then generates a personalized SKILL.md with your device context.
Run
bash setup.sh <your-token>to populate this section with your lights, rooms, and scenes. The setup script queries the LIFX API and rewrites this file with your personal device context.
Location: (not configured)
(populated by setup.sh)
(populated by setup.sh)
(populated by setup.sh)
bash lifx-api.sh discover
Shows all lights organized by room with power state, color, and brightness.
bash lifx-api.sh toggle <selector>
Selectors:
id:<light_id>group_id:<group_id>allbash lifx-api.sh state <selector> '{"power":"on","color":"blue","brightness":0.75,"duration":1.0}'
Color formats:
red, blue, green, white, warm white, purple, orange#ff6b35kelvin:2700 (warm) to kelvin:6500 (cool daylight)hue:240 saturation:1.0Always include "power":"on" and a brightness value when setting colors, or lights with brightness 0 will stay invisible.
bash lifx-api.sh scene <scene_uuid>
bash lifx-api.sh group-toggle <group_id>
Multi-zone devices support individually addressable zones. Create gradients by setting different zone ranges:
bash lifx-api.sh state 'id:<light_id>|0-4' '{"power":"on","color":"purple","brightness":1.0,"duration":1.0}'
bash lifx-api.sh state 'id:<light_id>|5-9' '{"power":"on","color":"red","brightness":1.0,"duration":1.0}'
The pipe character in zone selectors is automatically URL-encoded by the script.
python3 scene-status.py all # Show all active scenes
python3 scene-status.py check <uuid> # Check specific scene
bash lifx-api.sh list # Full JSON
bash lifx-api.sh groups # Summary by room
{"power":"off"} — don't toggle (toggling is ambiguous).{"power":"on","brightness":1.0} to ensure visibility.