返回顶部
🇺🇸 English
🇨🇳 简体中文
🇨🇳 繁體中文
🇺🇸 English
🇯🇵 日本語
🇰🇷 한국어
🇫🇷 Français
🇩🇪 Deutsch
🇪🇸 Español
🇷🇺 Русский
c

control-ikea-lightbulb

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.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.1
安全检测
已通过
1,709
下载量
1
收藏
概述
安装方式
版本历史

control-ikea-lightbulb

# 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 via uv Notes - This repo is set up for uv (no manual environment activation). Dependencies live in `pyproject.toml` and wrappers prefer `uv run`. Example: uv run --project ./skills/control-ikea-lightbulb python ./skills/control-ikea-lightbulb/scripts/control_kasa_light.py --ip 192.168.4.69 --on --hsv 0 100 80 --brightness 80 - Install uv: - `brew install uv` (macOS) - `pipx install uv` (cross-platform) - The provided wrapper script requires uv: ./skills/control-ikea-lightbulb/scripts/run_control_kasa.sh --ip 192.168.4.69 --on --hsv 0 100 80 --brightness 80 - The test helper also prefers uv: ./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. Quick start 1. Install uv (macOS): `brew install uv` 2. Turn the bulb on (replace the IP): `./skills/control-ikea-lightbulb/scripts/run_control_kasa.sh --ip 192.168.4.69 --on` 3. Set color and brightness: `./skills/control-ikea-lightbulb/scripts/run_control_kasa.sh --ip 192.168.4.69 --hsv 0 100 80 --brightness 80` Git note - No local environment artifacts are tracked; use uv. Note about Python requirements and recent change - The skill previously declared python-kasa>=0.13.0 which caused dependency resolution failures on this machine. To make the skill runnable locally the project's pyproject.toml was adjusted to: - requires-python = ">=3.11, <4.0" - python-kasa>=0.10.2 - This allows the resolver to pick a compatible python-kasa on machines with Python 3.11+. If you prefer a different constraint (or want me to revert this change), tell me and I will update the pyproject.toml and README accordingly.

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 control-ikea-lightbulb-1776363508 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 control-ikea-lightbulb-1776363508 技能

通过命令行安装

skillhub install control-ikea-lightbulb-1776363508

下载 Zip 包

⬇ 下载 control-ikea-lightbulb v1.0.1

文件大小: 10.27 KB | 发布时间: 2026-4-17 13:49

v1.0.1 最新 2026-4-17 13:49
**Switched to uv for dependency management and simplified setup.**

- Removed the custom virtualenv bootstrap script; now uses uv and pyproject.toml for managing dependencies.
- Added pyproject.toml with updated Python and python-kasa version constraints to address resolver issues.
- Updated wrapper and helper scripts to use uv instead of manual virtualenv activation.
- Updated documentation to reflect the new uv-based workflow, with quick start instructions.
- Dropped mention of the old virtualenv in favor of uv; Git ignore advice simplified.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部