IKEA and Kasa Smart Bulb Control for Openclaw

A lightweight Python-based automation skill to control IKEA and TP-Link Kasa smart bulbs directly over your local network.

antgly
v1.0.1
Feb 6, 2026
2
2.3k
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install control-ikea-lightbulb

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install control-ikea-lightbulb using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is IKEA and Kasa Smart Bulb Control?

The IKEA and Kasa Smart Bulb Control skill is a developer-centric tool designed for local area network (LAN) lighting management. Built as part of the Openclaw Skills ecosystem, it allows for direct communication with smart bulbs using their IP addresses, completely bypassing the need for cloud-based APIs or external account credentials. This ensures high-speed execution, improved privacy, and reliability even when internet connectivity is intermittent.

This skill leverages the python-kasa library to provide granular control over power states, brightness levels, and color spectrums via HSV (Hue, Saturation, Value) coordinates. It is particularly valuable for developers looking to integrate hardware control into their local AI agent workflows or custom home automation scripts without the overhead of complex middleware.

IKEA and Kasa Smart Bulb Control Use Cases

  • Toggling bulb power on or off programmatically through a terminal or agent.
  • Setting specific brightness levels between 0 and 100 for environmental mood setting.
  • Configuring exact color values using HSV for visual alerts or notifications.
  • Running automated light show sequences for status indicators or entertainment.
  • Controlling smart devices in air-gapped or privacy-focused local environments.

How IKEA and Kasa Smart Bulb Control Works

  1. The user identifies the local IP address of the target Kasa or IKEA compatible smart bulb.
  2. Commands are issued through the Openclaw Skills command-line interface or directly via the provided Python scripts.
  3. The skill utilizes the uv package manager to resolve dependencies and execute the script in a containerized-style environment.
  4. The script sends a network packet directly to the bulb's IP address using the Kasa protocol.
  5. The bulb updates its state (on/off, color, or brightness) immediately without cloud round-tripping.

IKEA and Kasa Smart Bulb Control Setup

To get started with this skill, ensure you have Python 3.11+ and the uv package manager installed. Use the following commands to initialize and control your device:

# Install the uv package manager if you haven't already
brew install uv

# Turn on a bulb at a specific IP address
./skills/control-ikea-lightbulb/scripts/run_control_kasa.sh --ip 192.168.1.100 --on

# Set a specific color (Red) and 80% brightness
./skills/control-ikea-lightbulb/scripts/run_control_kasa.sh --ip 192.168.1.100 --hsv 0 100 80 --brightness 80

IKEA and Kasa Smart Bulb Control Data Schema & Taxonomy

The skill processes configuration via command-line arguments and maintains a local pyproject.toml for dependency locking. Below is the metadata schema for command execution:

Argument Type Description
--ip String The static or reserved local IP address of the smart bulb.
--on / --off Flag Commands the bulb to change its power state.
--brightness Integer A value from 0-100 representing light intensity.
--hsv List Three integers representing Hue (0-360), Saturation (0-100), and Value (0-100).
--white-temp Integer Color temperature in Kelvin (e.g., 9000) for white light modes.

IKEA and Kasa Smart Bulb Control Advanced Features

  • Integrated Light Show Controller: Includes a dedicated script for running complex lighting sequences with configurable transitions.
  • High-K White Optimization: Supports a default 9000K white temperature to provide a crisper, cooler white light than standard defaults.
  • Intelligent Off-Flash Logic: Advanced sequence handling prevents undesirable color 'ping-ponging' during complex transitions.
  • Cloud-Free Operation: Designed specifically for Openclaw Skills users who prioritize local network speed and security over cloud integrations.
  • Multi-Version Compatibility: Optimized for Python 3.11+ with flexible dependency resolution for various hardware environments.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*