← Back to Skills Marketplace
yzlkj

YZL-AIoT

by yzlkj · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
40
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install yzl-aiot
Description
YZL-AIoT 云智联 AIoT 设备管理技能。继承 yzl-iot-api,新增自动版本检测。一句话说就能获取传感器数据和发送控制指令。激活语:云智联设备,钥匙是xxxxxx,帮我打开开关/获取数据
README (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+)

本技能内置自动版本更新检测功能。

工作方式

  1. 自动检测: 每次运行工具时,静默向 ClawHub 查询最新版本
  2. 缓存机制: 每 12 小时只检测一次,减少网络请求
  3. 智能提醒: 检测到有新版本时,在命令输出结果末尾追加更新提醒
  4. 离线容错: 网络不可用时使用上次缓存结果,不阻塞操作

手动检查更新

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 小时内不重复请求
  • ✨ 离线容错:网络不可用时使用缓存结果
  • 🔧 完整支持:设备列表、详情、历史数据、控制指令
  • 🗣️ 自然语言命令(智能识别设备型号和执行意图)
Usage Guidance
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.
Capability Tags
requires-sensitive-credentials
Capability Assessment
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.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install yzl-aiot
  3. After installation, invoke the skill by name or use /yzl-aiot
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
🎉 YZL-AIoT 初始发布。继承 yzl-iot-api 全部功能,新增自动版本更新检测。原 yzl-iot-api 用户请迁移至此技能。
Metadata
Slug yzl-aiot
Version 1.0.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is YZL-AIoT?

YZL-AIoT 云智联 AIoT 设备管理技能。继承 yzl-iot-api,新增自动版本检测。一句话说就能获取传感器数据和发送控制指令。激活语:云智联设备,钥匙是xxxxxx,帮我打开开关/获取数据. It is an AI Agent Skill for Claude Code / OpenClaw, with 40 downloads so far.

How do I install YZL-AIoT?

Run "/install yzl-aiot" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is YZL-AIoT free?

Yes, YZL-AIoT is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does YZL-AIoT support?

YZL-AIoT is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created YZL-AIoT?

It is built and maintained by yzlkj (@yzlkj); the current version is v1.0.0.

💬 Comments