Requirements
- Target platform
- OpenClaw
- Install method
- Manual import
- Extraction
- Extract archive
- Prerequisites
- OpenClaw
- Primary doc
- SKILL.md
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.
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.
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete.
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run.
Control SwitchBot devices through the Cloud API v1.1.
Guide your human through these steps:
Ask your human to: Open SwitchBot App on their phone Go to Profile (bottom right) Tap Preferences (or Settings) Find About โ Developer Options Copy Token and Secret Key
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
Run the discovery script to find all devices: python3 <skill_path>/scripts/switchbot.py list
After discovery, note your device IDs in TOOLS.md for quick reference: ## SwitchBot Devices | Device | ID | Type | |--------|-----|------| | Living Room Curtain | ABC123 | Curtain3 | | Bedroom Light | DEF456 | Plug Mini |
python3 <skill_path>/scripts/switchbot.py list
# 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
python3 <skill_path>/scripts/switchbot.py plug <device_id> on python3 <skill_path>/scripts/switchbot.py plug <device_id> off
python3 <skill_path>/scripts/switchbot.py status <device_id>
python3 <skill_path>/scripts/switchbot.py command <device_id> <command> [parameter]
Device TypeCommandsCurtain / Curtain3open, close, setPositionPlug Mini / PlugturnOn, turnOff, toggleBotpress, turnOn, turnOffLight / Strip LightturnOn, turnOff, setBrightness, setColorLocklock, unlockHumidifierturnOn, turnOff, setModeMeter / MeterPlus(read-only: temperature, humidity)Hub / Hub Mini / Hub 2(gateway only)
Status CodeMeaning100Success151Device offline152Command not supported160Unknown command161Invalid parameters190Internal error
First interaction: If no credentials exist, guide the human through setup Device aliases: Create friendly names in TOOLS.md (e.g., "living room" โ device ID) Batch operations: Multiple devices can be controlled in sequence Status checks: Use status command before reporting sensor readings Error recovery: If device is offline (151), suggest checking Hub connection
Credentials file should be chmod 600 Never log or display the token/secret API calls are made over HTTPS to api.switch-bot.com
Code helpers, APIs, CLIs, browser automation, testing, and developer operations.
Largest current source with strong distribution and engagement signals.