← 返回 Skills 市场
daaab

SwitchBot Smart Home Control

作者 Ju Chun Ko · GitHub ↗ · v1.0.0
cross-platform ✓ 安全检测通过
1685
总下载
1
收藏
2
当前安装
1
版本数
在 OpenClaw 中安装
/install switchbot
功能描述
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.
安全使用建议
This skill appears to do what it says, but review and follow these precautions before use: - Verify origin/trust: source is 'unknown' — only install/run if you trust the publisher or after you inspect the code (you have the script here). - Protect credentials: follow the SKILL.md advice (store token/secret in ~/.config/switchbot/credentials.json with chmod 600). Do not paste the token/secret into chat or public logs. - Consider secrets management: if you prefer, store credentials in a local secret manager and modify the script to read them securely instead of a file. - Limit exposure: run the script on a machine/network you control; it's benign but it can send commands to your devices. - Device ID privacy: updating TOOLS.md with device IDs is convenient but leaks device identifiers to your agent/tooling — avoid putting secrets or sensitive location info in that file. - Test safely: test with a non-critical device first (e.g., a light) to confirm expected behavior. - Rotate keys if compromised: if you accidentally expose the token/secret, rotate them via the SwitchBot app/dev settings. If you want a higher assurance level, request an auditable provenance (who published the skill) or run the script in an isolated environment before granting the skill regular use.
功能分析
Type: OpenClaw Skill Name: Developer: Version: Description: OpenClaw Agent Skill Suspicious High-Entropy/Eval files: 1 The skill is designed to control SwitchBot smart home devices via their official Cloud API. It provides clear instructions in SKILL.md for users to obtain and securely store API credentials in `~/.config/switchbot/credentials.json` with appropriate file permissions (chmod 600). The `scripts/switchbot.py` script correctly implements HMAC-SHA256 authentication for API calls to `https://api.switch-bot.com/v1.1` and handles credential loading and API interactions securely. There is no evidence of data exfiltration, malicious execution, persistence, obfuscation, or prompt injection attempts against the agent to perform unauthorized actions. All actions are aligned with the stated purpose of device control.
能力评估
Purpose & Capability
Name/description, SKILL.md, and the included Python script are coherent: they implement SwitchBot Cloud API calls to list devices, read status, and send commands. No unrelated services, binaries, or credentials are requested.
Instruction Scope
Runtime instructions stay within the expected scope: they ask the human to obtain a SwitchBot token/secret, store them in ~/.config/switchbot/credentials.json, run the included script for discovery and control, and optionally record device IDs in TOOLS.md. Note: instructing the user to add device IDs to TOOLS.md may store device identifiers in agent tooling/docs — this is expected for convenience but is a potential privacy consideration.
Install Mechanism
There is no install spec; this is an instruction-only skill with a bundled Python script that uses only standard-library modules. Nothing is downloaded or extracted from untrusted URLs.
Credentials
The skill asks the user to place a token and secret in a local credentials file (reasonable and proportionate). One small inconsistency: the registry metadata shows no primary credential or required env vars even though credentials are required via the config file; this is a metadata omission rather than a security red flag. Protecting the credentials file (chmod 600) as instructed is important.
Persistence & Privilege
always is false and the skill does not request persistent system-wide privileges or modify other skills. The skill can be invoked autonomously by the agent (platform default), which is normal; no elevated persistence is requested.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install switchbot
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /switchbot 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release: Control SwitchBot curtains, plugs, lights, and more via Cloud API
元数据
Slug switchbot
版本 1.0.0
许可证
累计安装 2
当前安装数 2
历史版本数 1
常见问题

SwitchBot Smart Home Control 是什么?

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. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 1685 次。

如何安装 SwitchBot Smart Home Control?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install switchbot」即可一键安装,无需额外配置。

SwitchBot Smart Home Control 是免费的吗?

是的,SwitchBot Smart Home Control 完全免费(开源免费),可自由下载、安装和使用。

SwitchBot Smart Home Control 支持哪些平台?

SwitchBot Smart Home Control 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 SwitchBot Smart Home Control?

由 Ju Chun Ko(@daaab)开发并维护,当前版本 v1.0.0。

💬 留言讨论