control-switchbot-devices-via-api
Control and query SwitchBot devices using the official OpenAPI (v1.1). Use when the user asks to list SwitchBot devices, get device status, or send commands…
от rondoflow★ 37 звёзд на GitHub
Установить control-switchbot-devices-via-api в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
SwitchBot OpenAPI Skill
This skill equips the agent to operate SwitchBot devices via HTTPS requests to the official OpenAPI v1.1. It includes ready-to-run scripts and a Node CLI; use these instead of re-deriving the HMAC signature each time.
Quick Start (Operator)
- Set environment variables:
- SWITCHBOT_TOKEN: your OpenAPI token
- SWITCHBOT_SECRET: your OpenAPI secret
- Test (list devices):
- Bash:
scripts/list_devices.sh - Node:
node scripts/switchbot_cli.js list
- Common tasks:
Basic controls:
- List devices:
node scripts/switchbot_cli.js list - Get status:
node scripts/switchbot_cli.js status <deviceId> - Turn on/off:
node scripts/switchbot_cli.js cmd <deviceId> turnOn/turnOff - Toggle:
node scripts/switchbot_cli.js cmd <deviceId> toggle - Press (Bot):
node scripts/switchbot_cli.js cmd <deviceId> press
Curtain / Curtain 3:
- Set position:
node scripts/switchbot_cli.js cmd <deviceId> setPosition --pos=50(0=open, 100=closed; CLI auto-formats to0,ff,50) - Pause:
node scripts/switchbot_cli.js cmd <deviceId> pause
Lock / Lock Pro / Lock Ultra / Lock Lite:
- Lock/Unlock:
node scripts/switchbot_cli.js cmd <deviceId> lock/unlock - Deadbolt:
node scripts/switchbot_cli.js cmd <deviceId> deadbolt
Lights (Color Bulb / Strip Light / Floor Lamp / Strip Light 3 / RGBICWW etc.):
- Set color:
node scripts/switchbot_cli.js cmd <deviceId> setColor --param="255:100:0" - Set brightness:
node scripts/switchbot_cli.js cmd <deviceId> setBrightness --param=80 - Set color temp:
node scripts/switchbot_cli.js cmd <deviceId> setColorTemperature --param=4000
Fans (Battery Circulator Fan / Circulator Fan / Standing Circulator Fan):
- Wind mode:
node scripts/switchbot_cli.js cmd <deviceId> setWindMode --param=natural - Wind speed:
node scripts/switchbot_cli.js cmd <deviceId> setWindSpeed --param=50 - Night light:
node scripts/switchbot_cli.js cmd <deviceId> setNightLightMode --param=1 - Auto-off timer:
node scripts/switchbot_cli.js cmd <deviceId> closeDelay --param=3600
Robot Vacuum S1/S1 Plus/K10+/K10+ Pro:
- Start:
node scripts/switchbot_cli.js cmd <deviceId> start - Stop:
node scripts/switchbot_cli.js cmd <deviceId> stop - Dock:
node scripts/switchbot_cli.js cmd <deviceId> dock - Suction:
node scripts/switchbot_cli.js cmd <deviceId> PowLevel --param=2
Robot Vacuum K10+ Pro Combo / K20+ Pro / S10 / S20 / K11+:
- Start clean:
node scripts/switchbot_cli.js cmd <deviceId> startClean --param='{"action":"sweep_mop","param":{"fanLevel":2,"waterLevel":1,"times":1}}' - Pause/Dock:
node scripts/switchbot_cli.js cmd <deviceId> pause/dock - Volume:
node scripts/switchbot_cli.js cmd <deviceId> setVolume --param=50 - Self clean (S10/S20):
node scripts/switchbot_cli.js cmd <deviceId> selfClean --param=1
Blind Tilt:
- Set position:
node scripts/switchbot_cli.js cmd <deviceId> setPosition --param="up;60" - Fully open:
node scripts/switchbot_cli.js cmd <deviceId> fullyOpen - Close:
node scripts/switchbot_cli.js cmd <deviceId> closeUp/closeDown
Roller Shade:
- Set position:
node scripts/switchbot_cli.js cmd <deviceId> setPosition --param=50
Humidifier (original):
- Set mode:
node scripts/switchbot_cli.js cmd <deviceId> setMode --param=auto
Evaporative Humidifier / Auto-refill:
- Set mode:
node scripts/switchbot_cli.js cmd <deviceId> setMode --param='{"mode":7,"targetHumidify":60}' - Child lock:
node scripts/switchbot_cli.js cmd <deviceId> setChildLock --param=true
Air Purifier (VOC/PM2.5/Table):
- Set mode:
node scripts/switchbot_cli.js cmd <deviceId> setMode --param='{"mode":2,"fanGear":2}' - Child lock:
node scripts/switchbot_cli.js cmd <deviceId> setChildLock --param=1
Smart Radiator Thermostat:
- Set mode:
node scripts/switchbot_cli.js cmd <deviceId> setMode --param=1 - Set temp:
node scripts/switchbot_cli.js cmd <deviceId> setManualModeTemperature --param=22
Relay Switch 1PM / 1 / 2PM:
- Toggle:
node scripts/switchbot_cli.js cmd <deviceId> toggle - Set mode:
node scripts/switchbot_cli.js cmd <deviceId> setMode --param=0 - 2PM channel:
node scripts/switchbot_cli.js cmd <deviceId> turnOn --param="1"(channel 1 or 2)
Garage Door Opener:
- Open/Close:
node scripts/switchbot_cli.js cmd <deviceId> turnOn/turnOff
Video Doorbell:
- Motion detection:
node scripts/switchbot_cli.js cmd <deviceId> enableMotionDetection/disableMotionDetection
Candle Warmer Lamp:
- Brightness:
node scripts/switchbot_cli.js cmd <deviceId> setBrightness --param=50
AI Art Frame:
- Next/Previous:
node scripts/switchbot_cli.js cmd <deviceId> next/previous
Keypad / Keypad Touch / Keypad Vision / Keypad Vision Pro:
- Create passcode:
node scripts/switchbot_cli.js cmd <deviceId> createKey --param='{"name":"Guest","type":"permanent","password":"12345678"}' - Delete passcode:
node scripts/switchbot_cli.js cmd <deviceId> deleteKey --param='{"id":"11"}' - ⚠️
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- manifest.json
FAQ
Что делает скилл control-switchbot-devices-via-api?
Control and query SwitchBot devices using the official OpenAPI (v1.1). Use when the user asks to list SwitchBot devices, get device status, or send commands (turn on/off, press, set mode, lock/unlock, curtain open %, IR air conditioner, lights, fans, robot vacuums, keypads, etc.…
Как установить скилл control-switchbot-devices-via-api?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл control-switchbot-devices-via-api запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
AnthropicGuide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
academy-guide
AnthropicStop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
internal-comms
AnthropicA set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
skill-development
AnthropicThis skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…