/install lifx
LIFX Light Control
Control LIFX smart lights via the LIFX HTTP API through natural language.
References
lifx-api.sh— Bash wrapper for all LIFX API callsscene-status.py— Scene matching and active detectionsetup.sh— Device discovery and skill configuration
Configuration
Set your LIFX API token (get one at https://cloud.lifx.com/settings):
bash setup.sh \x3Cyour-token>
This discovers your lights, groups, and scenes, then generates a personalized SKILL.md with your device context.
Device Context
Run
bash setup.sh \x3Cyour-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)
Rooms and Lights
(populated by setup.sh)
Scenes
(populated by setup.sh)
Multi-zone Devices
(populated by setup.sh)
How to Control Lights
Discover lights
bash lifx-api.sh discover
Shows all lights organized by room with power state, color, and brightness.
Toggle lights on/off
bash lifx-api.sh toggle \x3Cselector>
Selectors:
- Individual light:
id:\x3Clight_id> - Group/room:
group_id:\x3Cgroup_id> - All lights:
all
Set light state (color, brightness, power)
bash lifx-api.sh state \x3Cselector> '{"power":"on","color":"blue","brightness":0.75,"duration":1.0}'
Color formats:
- Named:
red,blue,green,white,warm white,purple,orange - Hex:
#ff6b35 - Kelvin:
kelvin:2700(warm) tokelvin:6500(cool daylight) - HSB:
hue:240 saturation:1.0
Always include "power":"on" and a brightness value when setting colors, or lights with brightness 0 will stay invisible.
Activate a scene
bash lifx-api.sh scene \x3Cscene_uuid>
Toggle a room
bash lifx-api.sh group-toggle \x3Cgroup_id>
Multi-zone gradients (Beam / Strip devices)
Multi-zone devices support individually addressable zones. Create gradients by setting different zone ranges:
bash lifx-api.sh state 'id:\x3Clight_id>|0-4' '{"power":"on","color":"purple","brightness":1.0,"duration":1.0}'
bash lifx-api.sh state 'id:\x3Clight_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.
Check scene status
python3 scene-status.py all # Show all active scenes
python3 scene-status.py check \x3Cuuid> # Check specific scene
List current light states
bash lifx-api.sh list # Full JSON
bash lifx-api.sh groups # Summary by room
Behavior Guidelines
- When user says a room name, match it to the group IDs in the device context above.
- Default brightness to 1.0 (100%) when setting colors unless user specifies otherwise.
- Default duration to 1.0 seconds for smooth transitions.
- For "turn off" commands, use
{"power":"off"}— don't toggle (toggling is ambiguous). - For "turn on" commands, use
{"power":"on","brightness":1.0}to ensure visibility. - When asked about what's on/what scene is active, use the scene-status tool or discover command.
- Be conversational about results: "Done, bedroom is now blue at 75%" not "API returned 207".
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install lifx - 安装完成后,直接呼叫该 Skill 的名称或使用
/lifx触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
Openclaw Lifx 是什么?
Control LIFX smart lights via natural language. Toggle, set colors/brightness, activate scenes, create gradients on multi-zone devices. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 809 次。
如何安装 Openclaw Lifx?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install lifx」即可一键安装,无需额外配置。
Openclaw Lifx 是免费的吗?
是的,Openclaw Lifx 完全免费(开源免费),可自由下载、安装和使用。
Openclaw Lifx 支持哪些平台?
Openclaw Lifx 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Openclaw Lifx?
由 J(@stillstellung)开发并维护,当前版本 v1.0.1。