Overview
- Skill Key
- daaab/switchbot
- Author
- daaab
- Source Repo
- openclaw/skills
- Version
- -
- Source Path
- skills/daaab/switchbot
- Latest Commit SHA
- 2c7928df3b9df28e9b9ba6e053144be1315a1294
Control SwitchBot smart home devices (curtains, plugs, lights, locks, etc.) via SwitchBot Cloud API. Use when user asks to open/close curtains, turn on/off lights/plugs, check temperature/humidity, or control any SwitchBot device.
Stars
0
Installs
0
Status
ACTIVE
Visibility
PUBLIC
直接复制以下提示词,发送给你的 AI 助手即可完成安装。
请先检查是否已安装 SkillHub 商店,若未安装,请根据 https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/skillhub.md 安装 SkillHub 商店,然后安装 switchbot 技能。 若已安装,则直接安装 switchbot 技能。
# SwitchBot Smart Home Control
Control SwitchBot devices through the Cloud API v1.1.
## First-Time Setup
**Guide your human through these steps:**
### 1. Get API Credentials
Ask your human to:
1. Open **SwitchBot App** on their phone
2. Go to **Profile** (bottom right)
3. Tap **Preferences** (or Settings)
4. Find **About** → **Developer Options**
5. Copy **Token** and **Secret Key**
### 2. Store Credentials Securely
```bash
mkdir -p ~/.config/switchbot
chmod 700 ~/.config/switchbot
cat > ~/.config/switchbot/credentials.json << 'EOF'
{
"token": "YOUR_TOKEN_HERE",
"secret": "YOUR_SECRET_HERE"
}
EOF
chmod 600 ~/.config/switchbot/credentials.json
```
### 3. Discover Devices
Run the discovery script to find all devices:
```bash
python3 <skill_path>/scripts/switchbot.py list
```
### 4. Update Your TOOLS.md
After discovery, note your device IDs in TOOLS.md for quick reference:
```markdown
## SwitchBot Devices
| Device | ID | Type |
|--------|-----|------|
| Living Room Curtain | ABC123 | Curtain3 |
| Bedroom Light | DEF456 | Plug Mini |
```
## Usage
### List All Devices
```bash
python3 <skill_path>/scripts/switchbot.py list
```
### Curtain Control
```bash
# Open curtain (position 0 = fully open)
python3 <skill_path>/scripts/switchbot.py curtain <device_id> open
# Close curtain (position 100 = fully closed)
python3 <skill_path>/scripts/switchbot.py curtain <device_id> close
# Set specific position (0-100)
python3 <skill_path>/scripts/switchbot.py curtain <device_id> 50
```
### Plug/Light Control
```bash
python3 <skill_path>/scripts/switchbot.py plug <device_id> on
python3 <skill_path>/scripts/switchbot.py plug <device_id> off
```
### Check Sensor Status
```bash
python3 <skill_path>/scripts/switchbot.py status <device_id>
```
### Generic Command
```bash
python3 <skill_path>/scripts/switchbot.py command <device_id> <command> [parameter]
```
## Supported Devices
| Device Type | Commands |
|-------------|----------|
| Curtain / Curtain3 | `open`...
capt-marbles
Task Router
capncoconut
Register, communicate, and earn on the x402hub AI agent marketplace. Use when an agent needs to register on x402hub, browse or claim bounties, submit deliverables, send messages to other agents via x402 Relay, check marketplace stats, or manage agent credentials. Triggers on x402hub, agent marketplace, bounty, relay messaging, agent-to-agent communication, or USDC earning.
capevace
Real-time event bus for AI agents. Publish, subscribe, and share live signals across a network of agents with Unix-style simplicity.
captchasco
OpenClaw integration guidance for CAPTCHAS Agent API, including OpenResponses tool schemas and plugin tool registration.
carol-gutianle
name: modelready description: Start using a local or Hugging Face model instantly, directly from chat. metadata: {"openclaw":{"requires":{"bins": "bash", "curl" }, "env": "URL" }}
canbirlik
Controls Wiz smart bulbs (turn on/off, RGB colors, disco mode) via local WiFi.