← 返回 Skills 市场
40
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install yzl-aiot
功能描述
YZL-AIoT 云智联 AIoT 设备管理技能。继承 yzl-iot-api,新增自动版本检测。一句话说就能获取传感器数据和发送控制指令。激活语:云智联设备,钥匙是xxxxxx,帮我打开开关/获取数据
使用说明 (SKILL.md)
⚙️ 运行时要求
- Python 3.6+ (需要 json, os, sys, http.client, time, collections 等标准库)
- 环境变量
YZLIOT_API_KEY- 必需,请从云智联小程序获取
🌱 YZL-AIoT 云智联 AIoT 设备管理
一句话就能获取设备数据和发送控制指令! 本技能继承自 yzl-iot-api,功能相同,持续更新维护。
💡 如果你之前使用的是
yzl-iot-api,请迁移至此技能获取后续更新支持。
⚡ 快速使用
用户只需说:
- "获取传感器数据" → 自动获取所有土壤温湿度云传感器的温湿度
- "获取液位" / "液位数据" → 自动获取液位传感器的液位数据
- "打开电磁阀" / "开启水阀" → 开启远程电磁阀
- "关闭电磁阀" / "关闭水阀" → 关闭远程电磁阀
📋 支持的设备
土壤温湿度云传感器
| 型号前缀 | 说明 |
|---|---|
| YZLSTM1 | 土壤温湿度云传感器标准款 |
| STMCBL | 土壤温湿度云传感器加长款 |
| STMCS1 | 土壤温湿度云传感器太阳能款 |
获取数据: 温度(wd)、湿度(sf)
远程电磁阀
| 型号前缀 | 说明 |
|---|---|
| WA1CB1 | 远程电磁阀低功耗版本 |
| WANCD1 | 4G水阀 |
控制指令: 通过 kk1 设施控制开(1)/关(0)
低功耗液位传感器
| 型号前缀 | 说明 |
|---|---|
| YZLWP01 | 低功耗液位传感器 |
获取数据: 液位(yw)
📖 自然语言示例
用户: "帮我看看传感器数据"
→ 返回所有土壤温湿度云传感器的温湿度
用户: "获取液位"
→ 返回液位传感器的液位数据
用户: "打开电磁阀"
→ 开启远程电磁阀
用户: "关闭水阀"
→ 关闭远程电磁阀
🔧 手动命令(可选)
如果需要更精细控制:
# 获取所有设备
python3 tool.py all
# 查看设备详情
python3 tool.py device 设备ID
# 开启电磁阀
python3 tool.py send WA1CB1-0000000007 SetFac '["WA1CB1-0000000007","kk1","1"]'
# 关闭电磁阀
python3 tool.py send WA1CB1-0000000007 SetFac '["WA1CB1-0000000007","kk1","0"]'
🔄 自动版本更新检测 (v1.0.0+)
本技能内置自动版本更新检测功能。
工作方式
- 自动检测: 每次运行工具时,静默向 ClawHub 查询最新版本
- 缓存机制: 每 12 小时只检测一次,减少网络请求
- 智能提醒: 检测到有新版本时,在命令输出结果末尾追加更新提醒
- 离线容错: 网络不可用时使用上次缓存结果,不阻塞操作
手动检查更新
python3 tool.py check-update
更新方法
# 更新到最新稳定版
clawhub update yzl-aiot
# 或指定版本
clawhub update yzl-aiot --version 1.0.0
⚡ 请求频率限制
工具已内置请求频率控制,自动处理以下限制:
| 接口 | 限制速率 |
|---|---|
| 获取所有设备 | 10次/10秒 |
| 获取设备列表 | 5次/10秒 |
| 获取设备详情 | 10次/10秒 |
| 获取历史数据 | 2次/10秒 |
| 发送指令 | 2次/5秒 |
| 获取指令详情 | 2次/5秒 |
| 获取指令列表 | 2次/10秒 |
版本历史
v1.0.0 (2026-06-03) — 初始版本
- 🎉 从 yzl-iot-api 迁移,全新发布
- ✨ 自动版本更新检测
- ✨ 缓存机制:12 小时内不重复请求
- ✨ 离线容错:网络不可用时使用缓存结果
- 🔧 完整支持:设备列表、详情、历史数据、控制指令
- 🗣️ 自然语言命令(智能识别设备型号和执行意图)
安全使用建议
Install only if you are authorized to control the connected YZL devices and you are comfortable with natural-language prompts opening or closing valves immediately. Prefer using explicit manual commands with verified device IDs, and avoid delegating this skill to autonomous workflows unless you add a confirmation or approval layer.
能力标签
能力评估
Purpose & Capability
The stated purpose is AIoT device management, including sensor reads and remote valve control, and the code matches that purpose. The concern is that valve actuation affects physical equipment and the skill can send those commands immediately.
Instruction Scope
The documented examples and runtime matching use broad phrases such as getting sensor data, opening a solenoid valve, and closing a water valve; state-changing commands do not require local confirmation and the smart path selects the first matching valve device.
Install Mechanism
The install metadata only requires python3 and the YZLIOT_API_KEY environment variable. There are no declared third-party packages, and the static scan supplied no findings.
Credentials
Network access to the YZL IoT API and use of the API key are proportionate for device management. The skill also performs a disclosed ClawHub version check on startup.
Persistence & Privilege
No background persistence, privilege escalation, or broad local file indexing was found. The only local write observed is a disclosed .version_cache.json file for update-check caching.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install yzl-aiot - 安装完成后,直接呼叫该 Skill 的名称或使用
/yzl-aiot触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
🎉 YZL-AIoT 初始发布。继承 yzl-iot-api 全部功能,新增自动版本更新检测。原 yzl-iot-api 用户请迁移至此技能。
元数据
常见问题
YZL-AIoT 是什么?
YZL-AIoT 云智联 AIoT 设备管理技能。继承 yzl-iot-api,新增自动版本检测。一句话说就能获取传感器数据和发送控制指令。激活语:云智联设备,钥匙是xxxxxx,帮我打开开关/获取数据. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 40 次。
如何安装 YZL-AIoT?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install yzl-aiot」即可一键安装,无需额外配置。
YZL-AIoT 是免费的吗?
是的,YZL-AIoT 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
YZL-AIoT 支持哪些平台?
YZL-AIoT 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 YZL-AIoT?
由 yzlkj(@yzlkj)开发并维护,当前版本 v1.0.0。
推荐 Skills