← 返回
未分类 Key 中文

Jettyd Skill

Interact with IoT devices via the jettyd platform — read sensors, send commands, manage rules, and list devices
通过 jettyd 平台与 IoT 设备交互——读取传感器数据、发送指令、管理规则及列出设备
jettydiot
未分类 clawhub v1.1.2 1 版本 100000 Key: 需要
★ 0
Stars
📥 335
下载
💾 0
安装
1
版本
#latest

概述

jettyd IoT Skill

Interact with IoT devices via the jettyd platform. Read sensor data, send commands, manage rules, and list devices.

When to use

Use this skill when the user asks about:

  • Device status, online/offline, last seen
  • Sensor readings: temperature, humidity, distance, voltage, current
  • Controlling actuators: relay, LED, PWM
  • Pushing JettyScript rules (threshold alerts, automations)
  • Webhook subscriptions for device events
  • Anything involving their ESP32 or jettyd devices

Config

Reads API key from ~/.openclaw/openclaw.json:

{
  "skills": {
    "entries": {
      "jettyd": {
        "apiKey": "tk_xxxx",
        "baseUrl": "https://api.jettyd.com/v1"
      }
    }
  }
}

Or from env: JETTYD_API_KEY

CLI

All operations go through scripts/jettyd-cli.js.

node skills/jettyd/scripts/jettyd-cli.js <command> [args]

Commands

CommandDescription
----------------------
listList all devices with status
device Device detail + all sensor readings
telemetry [metric] [period]Historical readings (1h/6h/24h/7d)
command [params]Send command to device
push_config Push JettyScript rules
webhooksList webhook subscriptions
create_webhook Create webhook

Example prompts

"What devices do I have?"

node .../jettyd-cli.js list

"What's the temperature on my greenhouse sensor?"

node .../jettyd-cli.js list to find device ID, then device

"Turn on the relay on device abc123"

node .../jettyd-cli.js command abc123 relay.on

"Blink the LED 3 times"

node .../jettyd-cli.js command abc123 led.blink '{"count":3,"interval_ms":300}'

"Alert me if temperature goes above 30°C"

→ Compose JettyScript JSON and run push_config

"Show me temperature history for the last 24 hours"

node .../jettyd-cli.js telemetry abc123 temperature 24h

push_rules — JettyScript rule format

Use push_config to deploy rules to a device. Rules run on the jettyd cloud and fire webhooks / alerts when conditions are met.

Temperature alert example — alert when temperature exceeds 30 °C:

{
  "rules": [
    {
      "id": "temp-high-alert",
      "trigger": {
        "type": "threshold",
        "metric": "temperature",
        "operator": ">",
        "value": 30
      },
      "cooldown_seconds": 300,
      "actions": [
        {
          "type": "alert",
          "severity": "warning",
          "message": "Temperature is {{temperature}}°C — above threshold of 30°C"
        }
      ]
    }
  ]
}

Push it:

node skills/jettyd/scripts/jettyd-cli.js push_config <device-id> '{"rules":[...]}'
# or from a file:
node skills/jettyd/scripts/jettyd-cli.js push_config <device-id> ./rules.json

Supported trigger operators: > < >= <= == !=

Supported action types: alert webhook command

版本历史

共 1 个版本

  • v1.1.2 当前
    2026-05-07 05:52 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

developer-tools

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 673 📥 325,054
ai-intelligence

Self-Improving + Proactive Agent

ivangdavila
自我反思+自我批评+自我学习+自组织记忆。智能体评估自身工作、发现错误并持续改进。
★ 1,374 📥 319,866
security-compliance

Skill Vetter

spclaudehome
AI智能体技能安全预审工具。安装ClawdHub、GitHub等来源技能前,检查风险信号、权限范围及可疑模式。
★ 1,223 📥 267,442