skills$openclaw/control-ikea-lightbulb
antgly3.0k

by antgly

control-ikea-lightbulb – OpenClaw Skill

control-ikea-lightbulb is an OpenClaw Skills integration for coding workflows. Control IKEA/TP-Link Kasa smart bulbs (set on/off, brightness, and color). Use when you want to programmatically control a local smart bulb by IP on the LAN.

3.0k stars1.0k forksSecurity L1
Updated Feb 7, 2026Created Feb 7, 2026coding

Skill Snapshot

namecontrol-ikea-lightbulb
descriptionControl IKEA/TP-Link Kasa smart bulbs (set on/off, brightness, and color). Use when you want to programmatically control a local smart bulb by IP on the LAN. OpenClaw Skills integration.
ownerantgly
repositoryantgly/control-ikea-lightbulb
languageMarkdown
licenseMIT
topics
securityL1
installopenclaw add @antgly/control-ikea-lightbulb
last updatedFeb 7, 2026

Maintainer

antgly

antgly

Maintains control-ikea-lightbulb in the OpenClaw Skills directory.

View GitHub profile
File Explorer
10 files
.
scripts
__init__.py
bootstrap_venv.sh
970 B
control_kasa_light.py
6.0 KB
light_show_verbose.py
3.3 KB
light_show.py
13.6 KB
run_control_kasa.sh
645 B
run_test_light_show.sh
630 B
_meta.json
296 B
SKILL.md
2.5 KB
SKILL.md

name: control-ikea-lightbulb description: Control IKEA/TP-Link Kasa smart bulbs (set on/off, brightness, and color). Use when you want to programmatically control a local smart bulb by IP on the LAN.

control-ikea-lightbulb

This skill provides a lightweight Python script to control a local smart bulb (supports TP-Link Kasa-compatible bulbs via python-kasa). It is intended for local LAN devices that do not require cloud credentials; control is by IP address.

When to use this skill

  • When you want to turn a bulb on or off
  • When you want to set brightness (0-100)
  • When you want to set color (HSV)
  • When you have the bulb's local IP and it's accessible from this machine

Contents

  • scripts/control_kasa_light.py — main runnable script (Python 3.9+)
  • scripts/light_show.py — small light-show controller for sequences (uses python-kasa). Changes include:
    • Default white uses a high color temperature (9000K) to make white appear "whiter"; pass --white-temp to override.
    • Bug fixes: the off-flash between blue→red now ignores transitions to white (saturation==0) to avoid white<->blue ping-pong, and white-temp is only applied to white steps (fixes red being skipped during off-flash). White steps also set brightness even without --double-write.
  • scripts/run_test_light_show.sh — helper to run light_show in the included .venv_kasa virtualenv (or created via bootstrap)

Notes

  • This repo provides a bootstrap script at scripts/bootstrap_venv.sh that creates a local .venv_kasa and installs python-kasa on first use. We avoid committing a full virtualenv to keep the repo small and portable. The wrapper (scripts/run_control_kasa.sh) will auto-run the bootstrap on first use if .venv_kasa is missing. Example (first-run or when venv exists): ./skills/control-ikea-lightbulb/scripts/run_control_kasa.sh --ip 192.168.4.69 --on --hsv 0 100 80 --brightness 80
  • You can also run the bootstrap manually: ./skills/control-ikea-lightbulb/scripts/bootstrap_venv.sh
  • The existing test helper remains available and will use the venv if present: ./skills/control-ikea-lightbulb/scripts/run_test_light_show.sh --ip 192.168.4.69 --duration 6 --transition 1 --off-flash --verbose
  • If your device is actually an IKEA TRADFRI device (not Kasa), this script is a starting point; tell me and I will add TRADFRI support.
  • No cloud credentials are required; control happens over LAN to the device's IP.

Git note

  • Add .venv_kasa to your .gitignore if you plan to create the venv locally. The bootstrap script will recreate the environment when needed.
README.md

No README available.

Permissions & Security

Security level L1: Low-risk skills with minimal permissions. Review inputs and outputs before running in production.

Requirements

  • OpenClaw CLI installed and configured.
  • Language: Markdown
  • License: MIT
  • Topics:

FAQ

How do I install control-ikea-lightbulb?

Run openclaw add @antgly/control-ikea-lightbulb in your terminal. This installs control-ikea-lightbulb into your OpenClaw Skills catalog.

Does this skill run locally or in the cloud?

OpenClaw Skills execute locally by default. Review the SKILL.md and permissions before running any skill.

Where can I verify the source code?

The source repository is available at https://github.com/openclaw/skills/tree/main/skills/antgly/control-ikea-lightbulb. Review commits and README documentation before installing.