💡
简介
通过官方API控制Govee智能灯具,支持开关、亮度调节、颜色设置和场景管理,适合智能家居自动化场景。
原始描述
Control Govee smart lights to turn on/off, adjust brightness, set colors, and manage device states via the Govee API.
通过你的 Agent 添加
点「快速安装」复制一段指令,粘给你正在用的 Agent(Claude Code、Codex、OpenClaw 等),它会自己完成安装。
或者手动安装
Claude Codeunzip -o skill.zip -d ~/.claude/skills/govee-lights-control/
其它 Agent解压到它自己的 skills 目录,目录名用 govee-lights-control
包里是 SKILL.md 加作者附带的文件,解压后目录名就是技能名。
技能申请的权限由作者决定,装之前请确认它能读什么、能执行什么。
技能正文
name: govee-lights description: Control Govee smart lights via the Govee API. Supports turning lights on/off, adjusting brightness, setting colors, and scenes. Use for: (1) Controlling individual lights or groups by name, (2) Setting colors and brightness, (3) Managing device states
Govee Lights Control
Control Govee smart lights using natural language commands.
Quick Reference
| Command | Example |
|---|---|
| List devices | python3 scripts/govee.py list |
| Turn on | python3 scripts/govee.py on "lamp" |
| Turn off | python3 scripts/govee.py off "lamp" |
| Brightness | python3 scripts/govee.py brightness "lamp" 75 |
| Color | python3 scripts/govee.py color "lamp" 255 100 50 |
Natural Language Patterns
- "Turn on [device name]"
- "Turn off [device name]"
- "Set [device name] to [brightness]%"
- "Set [device name] to [color name or RGB]"
- "Dim/Brighten [device name]"
Setup
- Get API key from Govee Developer Portal
- Set environment variable:
export GOVEE_API_KEY="your-key" - Install dependencies:
pip3 install requests
Usage Examples
# List all devices
python3 scripts/govee.py list
# Control lights
python3 scripts/govee.py on "living room"
python3 scripts/govee.py off bedroom
python3 scripts/govee.py brightness "desk lamp" 50
# Set colors (RGB 0-255)
python3 scripts/govee.py color "strip" 255 0 0 # Red
python3 scripts/govee.py color "strip" 0 255 0 # Green
python3 scripts/govee.py color "strip" 255 165 0 # Orange
Troubleshooting
See TROUBLESHOOTING.md for common issues.
正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。