switchbotControl 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.
Install via ClawdBot CLI:
clawdbot install dAAAb/switchbotControl SwitchBot devices through the Cloud API v1.1.
Guide your human through these steps:
Ask your human to:
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 Type | Commands |
|-------------|----------|
| Curtain / Curtain3 | open, close, setPosition |
| Plug Mini / Plug | turnOn, turnOff, toggle |
| Bot | press, turnOn, turnOff |
| Light / Strip Light | turnOn, turnOff, setBrightness, setColor |
| Lock | lock, unlock |
| Humidifier | turnOn, turnOff, setMode |
| Meter / MeterPlus | (read-only: temperature, humidity) |
| Hub / Hub Mini / Hub 2 | (gateway only) |
| Status Code | Meaning |
|-------------|---------|
| 100 | Success |
| 151 | Device offline |
| 152 | Command not supported |
| 160 | Unknown command |
| 161 | Invalid parameters |
| 190 | Internal error |
status command before reporting sensor readingsGenerated Mar 1, 2026
Homeowners can automate curtains, lights, and plugs for daily routines, such as opening curtains in the morning or turning off lights at bedtime. This enhances convenience and energy efficiency in residential settings.
Hotels can integrate SwitchBot devices to control room amenities like curtains, lights, and locks remotely. This improves guest experience by allowing automated check-in routines and energy-saving modes when rooms are unoccupied.
Businesses can use this skill to manage office devices, such as turning off plugs and adjusting curtains based on occupancy or time of day. It helps reduce electricity costs and supports sustainability initiatives in commercial buildings.
Caregivers can set up automated controls for lights, curtains, and locks to assist elderly individuals with mobility issues. This promotes independence and safety by enabling voice or scheduled commands for daily tasks.
Retailers can automate storefront curtains and lighting to open and close at specific times, enhancing security and presentation. It streamlines operations and reduces manual labor for staff managing multiple locations.
Offer a monthly subscription for advanced automation features, such as scheduling and integration with other smart home systems. Revenue is generated through recurring fees from users seeking enhanced control and analytics.
Sell SwitchBot device bundles along with setup and configuration services. Revenue comes from product sales and one-time installation fees, targeting customers who prefer a turnkey smart home solution.
Partner with property management companies or hotels to integrate SwitchBot controls into their existing systems. Revenue is generated through licensing fees and ongoing support contracts for large-scale deployments.
💬 Integration Tip
Ensure credentials are securely stored and use device aliases in TOOLS.md for easier reference during automation tasks.
Control Sonos speakers (discover/status/play/volume/group).
Control Philips Hue lights/scenes via the OpenHue CLI.
Control Eight Sleep pods (status, temperature, alarms, schedules).
BluOS CLI (blu) for discovery, playback, grouping, and volume.
Control Home Assistant smart home devices, run automations, and receive webhook events. Use when controlling lights, switches, climate, scenes, scripts, or any HA entity. Supports bidirectional communication via REST API (outbound) and webhooks (inbound triggers from HA automations).
Use when integrating with Tesla's official Fleet API to read vehicle/energy device data or issue remote commands (e.g. start HVAC preconditioning, wake vehicle, charge controls). Covers onboarding (developer app registration, regions/base URLs), OAuth token flows (third-party + partner tokens, refresh rotation), required domain/public-key hosting, and using Tesla's official vehicle-command/tesla-http-proxy for signed vehicle commands.