← 返回
未分类 Key 中文

Unifi Inforjota Integration

Query and monitor a UniFi network using a UniFi Integration API key (X-API-KEY) plus compatible read-only classic UniFi Network endpoints. Use when the user...
使用 UniFi Integration API 密钥(X‑API‑KEY)及兼容的只读经典 UniFi 网络端点查询与监控网络,适用于用户...
mrjq1987 mrjq1987 来源
未分类 clawhub v1.0.3 1 版本 100000 Key: 需要
★ 0
Stars
📥 344
下载
💾 0
安装
1
版本
#latest

概述

UniFi Integration API

Use this skill for read-only UniFi monitoring through a UniFi API key.

Setup

Create the credentials file:

~/.clawdbot/credentials/unifi/config.json

Example:

{
  "url": "https://gateway.local",
  "token": "YOUR_API_KEY",
  "site": "default"
}

Notes:

  • token is the UniFi API key
  • Requests use header X-API-KEY:
  • Scripts resolve the site ID automatically from /proxy/network/integration/v1/sites
  • site is used for classic read-only endpoints such as stat/health, stat/alarm, rest/networkconf, and rest/wlanconf

Commands

Sites

bash scripts/sites.sh
bash scripts/sites.sh json

List available UniFi sites and their IDs.

Health

bash scripts/health.sh
bash scripts/health.sh json

Show a compact summary with device totals, online/offline counts, roles, and client counts.

Devices

bash scripts/devices.sh
bash scripts/devices.sh json

Show UniFi infrastructure devices with model, IP, state, firmware, and feature roles.

Clients

bash scripts/clients.sh
bash scripts/clients.sh json

Show connected clients with type, IP, MAC, connection time, and uplink device ID.

Dashboard

bash scripts/dashboard.sh
bash scripts/dashboard.sh json

Show a combined overview including:

  • site and console info
  • UniFi version
  • health subsystems
  • devices
  • networks
  • WLANs
  • top client list
  • recent alarms summary

Alerts / alarms

bash scripts/alerts.sh

Show recent UniFi alarms. If none exist, report that there are no recent alarms.

Top apps / DPI

bash scripts/top-apps.sh
bash scripts/top-apps.sh 15

Show top applications by DPI if the gateway returns DPI data. If not, report that no DPI data is currently available.

Current endpoint coverage

Working endpoints validated on this gateway:

  • /proxy/network/integration/v1/sites
  • /proxy/network/integration/v1/sites/{siteId}/devices
  • /proxy/network/integration/v1/sites/{siteId}/clients
  • /proxy/network/api/s/{site}/stat/health
  • /proxy/network/api/s/{site}/stat/sysinfo
  • /proxy/network/api/s/{site}/stat/alarm
  • /proxy/network/api/s/{site}/stat/sitedpi
  • /proxy/network/api/s/{site}/rest/networkconf
  • /proxy/network/api/s/{site}/rest/wlanconf

Caveats:

  • alarms/events may legitimately return zero items
  • DPI may return an empty payload even when the endpoint itself is reachable
  • some management/config endpoints expose sensitive data; avoid dumping full raw payloads unless explicitly needed

Workflow

When the user asks:

  • "check UniFi" / "dashboard" → run bash scripts/dashboard.sh
  • "is everything healthy?" → run bash scripts/health.sh
  • "show devices" → run bash scripts/devices.sh
  • "who is on the network?" / "clients" → run bash scripts/clients.sh
  • "what sites exist?" → run bash scripts/sites.sh
  • "any alarms?" / "alerts" → run bash scripts/alerts.sh
  • "top apps" / "traffic" / "DPI" → run bash scripts/top-apps.sh

Always sanity-check the response before reporting back:

  • verify the API returned JSON
  • verify counts look reasonable
  • if alarms or DPI are empty, say they are empty rather than treating that as an auth or endpoint failure
  • avoid pasting sensitive management payloads back to the user unless they explicitly ask for raw details

版本历史

共 1 个版本

  • v1.0.3 当前
    2026-05-03 08:51 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

it-ops-security

MoltGuard - Security & Antivirus & Guardrails

thomaslwang
MoltGuard — OpenClaw 安全守卫,由 OpenGuardrails 提供。安装后可防止您和您的用户受到提示注入、数据泄露及恶意行为的侵害。
★ 116 📥 31,046
it-ops-security

1password

steipete
设置和使用 1Password CLI (op)。适用于:安装 CLI、启用桌面应用集成、登录(单/多账户)、通过 op 读取/注入/运行密钥。
★ 53 📥 31,996
it-ops-security

OpenClaw Backup

alex3alex
备份与恢复 OpenClaw 数据。适用于创建备份、设置自动备份计划、从备份恢复或管理备份轮转。处理 ~/.openclaw 目录归档并包含适当的排除规则。
★ 90 📥 31,217