控制 IKEA Dirigera 智能家居设备(灯光、插座、场景、控制器)。当用户要求控制智能家居设备、检查设备状态、打开/关闭灯、调整亮度/颜色、控制插座、触发场景、检查电池电量或与宜家智能家居自动化配合使用时使用。阿尔斯
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install dirigera-control或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install dirigera-control⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/dirigera-control/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- name: dirigera-control description: Control IKEA Dirigera smart home devices (lights, outlets, scenes, controllers). Use when the user asks to control smart home devices, check device status, turn lights on/off, adjust brightness/color, control outlets, trigger scenes, check battery levels, or work with IKEA smart home automation. Also use when the user needs help finding the Dirigera hub IP address or generating an API token. Accessible via Cloudflare tunnel on VPS. ---
Control lights, outlets, scenes, and other IKEA smart home devices through the Dirigera hub.
pip install dirigera
Check the router/DHCP client list for "Dirigera" and note its IP address.
If the agent is on the same LAN, try the IP discovery script. It can:
generate-token against candidates (interactive).python scripts/find_dirigera_ip.py
# or
python scripts/find_dirigera_ip.py --subnet 192.168.1.0/24
# verify with token (if you have it)
python scripts/find_dirigera_ip.py --token <dirigera-token>
# last resort: try generate-token against candidates
python scripts/find_dirigera_ip.py --try-generate-token
IMPORTANT: Token generation REQUIRES PHYSICAL USER ACTION. Follow this workflow:
Run the wrapper script in the background. It will automatically wait for the button press:
python scripts/generate_token_wrapper.py <dirigera-ip-address> &
The token will be saved to dirigera_token.txt by default. To specify a custom location:
python scripts/generate_token_wrapper.py <dirigera-ip-address> --output /path/to/token.txt &
CRITICAL: After starting the script, you MUST:
The user will:
The script will automatically detect the button press and save the token to the file.
After the user confirms, read the token from the file:
from pathlib import Path
token = Path("dirigera_token.txt").read_text().strip()
Or from a custom location:
TOKEN=$(cat /path/to/token.txt)
Then use the token to connect:
import dirigera
hub = dirigera.Hub(token=token, ip_address="<dirigera-ip>")
For manual use (not recommended for agents):
generate-token <dirigera-ip-address>
This requires interactive terminal access and doesn't save output automatically.
If you cannot find the hub IP address:
generate-token against them until one succeeds.python scripts/find_dirigera_ip.py --token .python scripts/find_dirigera_ip.py --try-generate-token and follow the prompt.import dirigera
hub = dirigera.Hub(
token="token",
ip_address="ip_address"
)
Device state is in .attributes, not top-level.
# CORRECT
light.attributes.is_on
light.attributes.light_level
# WRONG - raises AttributeError
light.is_on
light.light_level
Top-level: device.id, device.is_reachable, device.room State: device.attributes.is_on, device.attributes.light_level
lights = hub.get_lights()
outlets = hub.get_outlets()
controllers = hub.get_controllers()
scenes = hub.get_scenes()
light = hub.get_light_by_name(lamp_name="bedroom light")
# Check reachability first
if light.is_reachable:
light.set_light(lamp_on=True)
light.set_light_level(light_level=75)
light.set_color_temperature(color_temp=2700) # Warm white
# Reload after changes
light.reload()
outlet = hub.get_outlet_by_name(outlet_name="living room")
outlet.set_on(outlet_on=True)
outlet.reload()
scene = hub.get_scene_by_name(scene_name="Sove tid")
scene.trigger()
# Verify device supports feature before using
if 'colorTemperature' in light.capabilities.can_receive:
light.set_color_temperature(color_temp=3000)
See references/patterns.md for room-based control, batch operations, status reports, and battery monitoring.
Use scripts/helpers.py for common operations: get lights by room, check battery levels, find unreachable devices.
See references/api.md for:
device.is_reachable before controldevice.reload() after control commands.attributes for all state access安装 Dirigera Control(宜家智能家居) 后,可以对 AI 说这些话来触发它
Help me get started with Dirigera Control (IKEA smart home)
Explains what Dirigera Control (IKEA smart home) does, walks through the setup, and runs a quick demo based on your current project
Use Dirigera Control (IKEA smart home) to control IKEA Dirigera smart home devices (lights, outlets, scenes, ...
Invokes Dirigera Control (IKEA smart home) with the right parameters and returns the result directly in the conversation
What can I do with Dirigera Control (IKEA smart home) in my marketing & growth workflow?
Lists the top use cases for Dirigera Control (IKEA smart home), with example commands for each scenario
将技能文件夹放到 ~/.claude/skills/dirigera-control/ 目录(个人级,所有项目可用),或 .claude/skills/dirigera-control/(项目级)。重启 AI 客户端后,用 /dirigera-control 主动调用,或让 AI 根据上下文自动发现并使用。
Dirigera Control(宜家智能家居) 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
Dirigera Control(宜家智能家居) 可免费安装使用。请查阅仓库了解许可证信息。
控制 IKEA Dirigera 智能家居设备(灯光、插座、场景、控制器)。当用户要求控制智能家居设备、检查设备状态、打开/关闭灯、调整亮度/颜色、控制插座、触发场景、检查电池电量或与宜家智能家居自动化配合使用时使用。阿尔斯
Dirigera Control(宜家智能家居) 属于「Marketing & Growth」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。
Automate my marketing & growth tasks using Dirigera Control (IKEA smart home)
Identifies repetitive steps in your workflow and sets up Dirigera Control (IKEA smart home) to handle them automatically