飞书文档读取器
提取飞书文档内容
通过SwitchBot Cloud API v1.1控制各类智能设备,包括窗帘、插座、灯具、门锁、温湿度计等。支持设备发现、状态查询和远程操控。
首次配置:
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
python3 <skill_path>/scripts/switchbot.py list
常用操作:
python3 <skill_path>/scripts/switchbot.py listpython3 <skill_path>/scripts/switchbot.py curtain <device_id> openpython3 <skill_path>/scripts/switchbot.py curtain <device_id> closepython3 <skill_path>/scripts/switchbot.py curtain <device_id> 50python3 <skill_path>/scripts/switchbot.py plug <device_id> on/offpython3 <skill_path>/scripts/switchbot.py status <device_id>见下方输入与输出表格。
| 项目 | 内容 |
|---|---|
| 输入 | 设备ID、操作指令(open/close/on/off/status等)、位置参数(0-100,可选)、API Token和Secret |
| 输出 | 设备列表、执行结果状态码、温湿度数值、设备当前状态 |
| 适用人群 | SwitchBot智能设备用户、家庭自动化场景、远程设备管理需求 |
| 不包含 | 非SwitchBot品牌设备、本地局域网直连模式、设备固件升级功能 |
原始链接:https://github.com/openclaw/skills/tree/main/skills/daaab/switchbot/SKILL.md
来源类型:GitHub仓库