Install
openclaw skills install smyx-uv-safety-monitor-analysisAI-powered UV disinfection safety monitor for pets. Real-time camera analysis detects whether a pet enters an active UV-C disinfection zone and whether the UV lamp is on (via blue-purple glow recognition or smart-home API linkage). When both conditions are met, it auto-triggers a high-risk alert, recommends shutting off the UV lamp, and logs the event to prevent corneal burns or skin damage. Scenarios: smart homes, pet households, pet boarding facilities. | 通过智能家居摄像头实时识别宠物是否进入正在进行紫外线消毒的区域,自动关闭UV灯并推送提醒,防止宠物因误入消毒区而受到紫外线伤害。结合目标检测(宠物识别)与UV灯状态感知(可通过画面蓝紫色光晕/光谱特征或智能家居API联动),实现主动式安全防护。应用场景:智能家居、宠物家庭、宠物寄养场所。
openclaw skills install smyx-uv-safety-monitor-analysisAI-powered UV disinfection safety monitor for pets. Real-time camera analysis detects whether a pet enters an active UV-C disinfection zone and whether the UV lamp is on (via blue-purple glow recognition or smart-home API linkage). When both conditions are met, it auto-triggers a high-risk alert, recommends shutting off the UV lamp, and logs the event to prevent corneal burns or skin damage. Scenarios: smart homes, pet households, pet boarding facilities.
通过智能家居摄像头实时识别宠物是否进入正在进行紫外线消毒的区域,自动关闭UV灯并推送提醒,防止宠物因误入消毒区而受到紫外线伤害。结合目标检测(宠物识别)与UV灯状态感知(可通过画面蓝紫色光晕/光谱特征或智能家居API联动),实现主动式安全防护。应用场景:智能家居、宠物家庭、宠物寄养场所。
假设你是一个专业的家庭宠物安全防护AI。你的任务是分析室内消毒区域的实时视频流,检测是否有宠物(猫、狗等)进入该区域,并判断紫外线(UV)灯是否处于工作状态(可通过画面中的蓝紫色光晕、特定光源闪烁或智能家居信号判断)。一旦同时满足"宠物进入"与"UV灯开启"两个条件,则输出高危预警并建议立即关闭UV灯。不要提供医疗建议,仅输出基于视觉和逻辑的判断结果。
python -m scripts.smyx_uv_safety_monitor_analysis --list --open-id 参数调用 API
查询云端的历史报告数据requests>=2.28.0
在执行紫外线消毒安全监测前,必须按以下优先级顺序获取 open-id:
第 1 步:【最高优先级】检查技能所在目录的配置文件(优先)
路径:skills/smyx_common/scripts/config.yaml(相对于技能根目录)
完整路径示例:${OPENCLAW_WORKSPACE}/skills/{当前技能目录}/skills/smyx_common/scripts/config.yaml
→ 如果文件存在且配置了 api-key 字段,则读取 api-key 作为 open-id
↓ (未找到/未配置/api-key 为空)
第 2 步:检查 workspace 公共目录的配置文件
路径:${OPENCLAW_WORKSPACE}/skills/smyx_common/scripts/config.yaml
→ 如果文件存在且配置了 api-key 字段,则读取 api-key 作为 open-id
↓ (未找到/未配置)
第 3 步:检查用户是否在消息中明确提供了 open-id
↓ (未提供)
第 4 步:❗ 必须暂停执行,明确提示用户提供用户名或手机号作为 open-id
⚠️ 关键约束:
-m scripts.smyx_uv_safety_monitor_analysis 处理视频文件(必须在技能根目录下运行脚本)--input: 本地消毒区域视频文件路径--url: 网络消毒区域视频 URL 地址(API 服务自动下载)--pet-type: 宠物类型,可选值:cat/dog/other,默认 cat--open-id: 当前用户的 open-id(必填,按上述流程获取)--list: 显示紫外线消毒安全监测历史报告列表清单--api-key: API 访问密钥(可选)--api-url: API 服务地址(可选,使用默认值)--detail: 输出详细程度(basic/standard/json,默认 json)--output: 结果输出文件路径(可选)| 识别方式 | 原理 | 可靠性 |
|---|---|---|
| 🟣 蓝紫色光晕识别 | UV-C灯工作时画面呈现明显蓝紫色光谱 | 中(受环境光干扰) |
| 💡 智能家居API联动 | 通过智能插座/灯开关状态判断 | 高(需设备支持) |
| ⏰ 定时消毒模式 | 用户预设消毒时段自动判定 | 中(需配置) |
| 📡 蓝牙/Zigbee信标 | UV灯内置信标广播工作状态 | 高(需硬件支持) |
| 等级 | 条件 | 策略 | APP 通知 |
|---|---|---|---|
| 🟢 安全 | UV灯关闭 / 无宠物进入 | 持续监测 | 不推送 |
| 🟡 注意 | UV灯开启但无宠物 | 加强监测频率 | "UV消毒进行中,请确保宠物远离" |
| 🔴 高危 | UV灯开启 + 宠物进入消毒区 | ① 立即关闭UV灯<br>② 推送紧急警报<br>③ 记录事件快照 | 🚨 "宠物进入消毒区,UV灯已关闭!请检查宠物状态" |
| 暴露部位 | 症状 | 严重程度 |
|---|---|---|
| 👁️ 眼睛 | 角膜灼伤、畏光、流泪 | 严重,可能永久损伤 |
| 🐾 皮肤(鼻部/耳尖/腹部) | 红肿、脱皮、灼伤 | 中-严重 |
| 🫁 呼吸道 | 臭氧刺激呼吸道黏膜 | 轻度不适 |
| 全身 | 长期暴露增加皮肤癌风险 | 长期隐患 |
| 联动设备 | 安全作用 | 适用等级 |
|---|---|---|
| 🔌 智能插座 | 远程/自动切断UV灯电源 | 高危触发 |
| 🔒 智能门/围栏 | 阻止宠物进入消毒区 | 注意起 |
| 🔊 智能音箱 | 播放警告声驱离宠物 | 注意起 |
| 💡 警示灯 | 门外红灯提示消毒中 | 注意起 |
| 📱 APP推送 | 通知主人远程确认 | 注意起 |
UV消毒安全监测报告-{记录id}形式拼接, "点击查看"
列使用
[🔗 查看报告](reportImageUrl)
格式的超链接,用户点击即可直接跳转到对应的完整报告页面。| 报告名称 | 宠物类型 | 分析时间 | 点击查看 |
|---|---|---|---|
| UV消毒安全监测报告-20260312172200001 | 猫 | 2026-03-12 17:22:00 | 🔗 查看报告 |
# 分析本地消毒区域视频(以下只是示例,禁止直接使用openclaw-control-ui 作为 open-id)
python -m scripts.smyx_uv_safety_monitor_analysis --input /path/to/uv_room.mp4 --pet-type cat --open-id your-open-id
# 分析网络消毒区域视频(以下只是示例,禁止直接使用openclaw-control-ui 作为 open-id)
python -m scripts.smyx_uv_safety_monitor_analysis --url https://example.com/uv_room.mp4 --pet-type dog --open-id your-open-id
# 显示历史监测报告/显示报告清单列表
python -m scripts.smyx_uv_safety_monitor_analysis --list --open-id your-open-id
# 输出精简报告
python -m scripts.smyx_uv_safety_monitor_analysis --input video.mp4 --pet-type cat --open-id your-open-id --detail basic
# 保存结果到文件
python -m scripts.smyx_uv_safety_monitor_analysis --input video.mp4 --pet-type cat --open-id your-open-id --output result.json