# Send ThingsBot to your agent
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
## Fast path
- Download the package from Yavira.
- Extract it into a folder your agent can access.
- Paste one of the prompts below and point your agent at the extracted folder.
## Suggested prompts
### New install

```text
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete.
```
### Upgrade existing

```text
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run.
```
## Machine-readable fields
```json
{
  "schemaVersion": "1.0",
  "item": {
    "slug": "thingsboard-skill",
    "name": "ThingsBot",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/hoangnv170752/thingsboard-skill",
    "canonicalUrl": "https://clawhub.ai/hoangnv170752/thingsboard-skill",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/thingsboard-skill",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=thingsboard-skill",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "SKILL.md",
      "credentials.json"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "slug": "thingsboard-skill",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-05-10T00:02:21.793Z",
      "expiresAt": "2026-05-17T00:02:21.793Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=thingsboard-skill",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=thingsboard-skill",
        "contentDisposition": "attachment; filename=\"thingsboard-skill-0.1.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "thingsboard-skill"
      },
      "scope": "item",
      "summary": "Item download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this item.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/thingsboard-skill"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    }
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/thingsboard-skill",
    "downloadUrl": "https://openagent3.xyz/downloads/thingsboard-skill",
    "agentUrl": "https://openagent3.xyz/skills/thingsboard-skill/agent",
    "manifestUrl": "https://openagent3.xyz/skills/thingsboard-skill/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/thingsboard-skill/agent.md"
  }
}
```
## Documentation

### ThingsBoard Skill

Manage ThingsBoard IoT platform resources including devices, dashboards, telemetry data, and users.

### Setup

Configure your ThingsBoard server in credentials.json:
[
  {
    "name": "Server Thingsboard",
    "url": "http://localhost:8080",
    "account": [
      {
        "sysadmin": {
          "email": "sysadmin@thingsboard.org",
          "password": "sysadmin"
        }
      },
      {
        "tenant": {
          "email": "tenant@thingsboard.org",
          "password": "tenant"
        }
      }
    ]
  }
]



Set environment variables:
export TB_URL="http://localhost:8080"
export TB_USERNAME="tenant@thingsboard.org"
export TB_PASSWORD="tenant"



Get authentication token:
export TB_TOKEN=$(curl -s -X POST "$TB_URL/api/auth/login" \\
  -H "Content-Type: application/json" \\
  -d "{\\"username\\":\\"$TB_USERNAME\\",\\"password\\":\\"$TB_PASSWORD\\"}" | jq -r '.token')

### Usage

All commands use curl to interact with the ThingsBoard REST API.

### Authentication

Login and get token:

curl -s -X POST "$TB_URL/api/auth/login" \\
  -H "Content-Type: application/json" \\
  -d "{\\"username\\":\\"$TB_USERNAME\\",\\"password\\":\\"$TB_PASSWORD\\"}" | jq -r '.token'

Refresh token (when expired):

curl -s -X POST "$TB_URL/api/auth/token" \\
  -H "Content-Type: application/json" \\
  -d "{\\"refreshToken\\":\\"$TB_REFRESH_TOKEN\\"}" | jq -r '.token'

Get current user info:

curl -s "$TB_URL/api/auth/user" \\
  -H "X-Authorization: Bearer $TB_TOKEN" | jq

### Device Management

List all tenant devices:

curl -s "$TB_URL/api/tenant/devices?pageSize=100&page=0" \\
  -H "X-Authorization: Bearer $TB_TOKEN" | jq '.data[] | {name, id: .id.id, type}'

Get device by ID:

curl -s "$TB_URL/api/device/{deviceId}" \\
  -H "X-Authorization: Bearer $TB_TOKEN" | jq

Get device credentials:

curl -s "$TB_URL/api/device/{deviceId}/credentials" \\
  -H "X-Authorization: Bearer $TB_TOKEN" | jq

### Telemetry & Attributes

Get telemetry keys:

curl -s "$TB_URL/api/plugins/telemetry/DEVICE/{deviceId}/keys/timeseries" \\
  -H "X-Authorization: Bearer $TB_TOKEN" | jq

Get latest telemetry:

curl -s "$TB_URL/api/plugins/telemetry/DEVICE/{deviceId}/values/timeseries?keys=temperature,humidity" \\
  -H "X-Authorization: Bearer $TB_TOKEN" | jq

Get timeseries data with time range:

START_TS=$(($(date +%s)*1000 - 3600000))  # 1 hour ago
END_TS=$(($(date +%s)*1000))              # now
curl -s "$TB_URL/api/plugins/telemetry/DEVICE/{deviceId}/values/timeseries?keys=temperature&startTs=$START_TS&endTs=$END_TS&limit=100" \\
  -H "X-Authorization: Bearer $TB_TOKEN" | jq

Get attribute keys:

# Client scope
curl -s "$TB_URL/api/plugins/telemetry/DEVICE/{deviceId}/keys/attributes/CLIENT_SCOPE" \\
  -H "X-Authorization: Bearer $TB_TOKEN" | jq

# Shared scope
curl -s "$TB_URL/api/plugins/telemetry/DEVICE/{deviceId}/keys/attributes/SHARED_SCOPE" \\
  -H "X-Authorization: Bearer $TB_TOKEN" | jq

# Server scope
curl -s "$TB_URL/api/plugins/telemetry/DEVICE/{deviceId}/keys/attributes/SERVER_SCOPE" \\
  -H "X-Authorization: Bearer $TB_TOKEN" | jq

Get attributes by scope:

curl -s "$TB_URL/api/plugins/telemetry/DEVICE/{deviceId}/values/attributes/CLIENT_SCOPE?keys=attribute1,attribute2" \\
  -H "X-Authorization: Bearer $TB_TOKEN" | jq

Save device attributes:

curl -s -X POST "$TB_URL/api/plugins/telemetry/DEVICE/{deviceId}/attributes/SERVER_SCOPE" \\
  -H "X-Authorization: Bearer $TB_TOKEN" \\
  -H "Content-Type: application/json" \\
  -d '{"attribute1":"value1","attribute2":"value2"}' | jq

Delete timeseries keys:

curl -s -X DELETE "$TB_URL/api/plugins/telemetry/DEVICE/{deviceId}/timeseries/delete?keys=oldKey1,oldKey2&deleteAllDataForKeys=true" \\
  -H "X-Authorization: Bearer $TB_TOKEN"

### Dashboard Management

List all dashboards:

curl -s "$TB_URL/api/tenant/dashboards?pageSize=100&page=0" \\
  -H "X-Authorization: Bearer $TB_TOKEN" | jq '.data[] | {name, id: .id.id}'

Get dashboard info:

curl -s "$TB_URL/api/dashboard/{dashboardId}" \\
  -H "X-Authorization: Bearer $TB_TOKEN" | jq

Make dashboard public:

curl -s -X POST "$TB_URL/api/customer/public/dashboard/{dashboardId}" \\
  -H "X-Authorization: Bearer $TB_TOKEN" | jq

Get public dashboard info (no auth required):

curl -s "$TB_URL/api/dashboard/info/{publicDashboardId}" | jq

Remove public access:

curl -s -X DELETE "$TB_URL/api/customer/public/dashboard/{dashboardId}" \\
  -H "X-Authorization: Bearer $TB_TOKEN"

### User Management

List tenant users:

curl -s "$TB_URL/api/tenant/users?pageSize=100&page=0" \\
  -H "X-Authorization: Bearer $TB_TOKEN" | jq '.data[] | {email, firstName, lastName, id: .id.id}'

List customers:

curl -s "$TB_URL/api/customers?pageSize=100&page=0" \\
  -H "X-Authorization: Bearer $TB_TOKEN" | jq '.data[] | {title, id: .id.id}'

Get customer users:

curl -s "$TB_URL/api/customer/{customerId}/users?pageSize=100&page=0" \\
  -H "X-Authorization: Bearer $TB_TOKEN" | jq '.data[]'

### Assets

List all assets:

curl -s "$TB_URL/api/tenant/assets?pageSize=100&page=0" \\
  -H "X-Authorization: Bearer $TB_TOKEN" | jq '.data[] | {name, type, id: .id.id}'

Get asset by ID:

curl -s "$TB_URL/api/asset/{assetId}" \\
  -H "X-Authorization: Bearer $TB_TOKEN" | jq

### Notes

Authentication: JWT tokens expire after a configured period (default: 2 hours). Re-authenticate when you receive 401 errors.
Device/Dashboard IDs: Entity IDs are in the format {entityType: "DEVICE", id: "uuid"}. Use the id field for API calls.
Pagination: Most list endpoints support pageSize and page parameters (default: 100 items per page, max: 1000).
Attribute Scopes:

CLIENT_SCOPE: Client-side attributes (set by devices)
SHARED_SCOPE: Shared between server and devices
SERVER_SCOPE: Server-side only (not visible to devices)


Timestamps: Use milliseconds since epoch for startTs and endTs parameters.
Rate Limits: Check your ThingsBoard server configuration for API rate limits.
HTTPS: For production, use HTTPS URLs (e.g., https://demo.thingsboard.io).

### Examples

# Complete workflow: Login, list devices, get telemetry
export TB_URL="http://localhost:8080"
export TB_USERNAME="tenant@thingsboard.org"
export TB_PASSWORD="tenant"

# Get token
export TB_TOKEN=$(curl -s -X POST "$TB_URL/api/auth/login" \\
  -H "Content-Type: application/json" \\
  -d "{\\"username\\":\\"$TB_USERNAME\\",\\"password\\":\\"$TB_PASSWORD\\"}" | jq -r '.token')

# List all devices
curl -s "$TB_URL/api/tenant/devices?pageSize=10&page=0" \\
  -H "X-Authorization: Bearer $TB_TOKEN" | jq '.data[] | {name, type, id: .id.id}'

# Get first device ID
DEVICE_ID=$(curl -s "$TB_URL/api/tenant/devices?pageSize=1&page=0" \\
  -H "X-Authorization: Bearer $TB_TOKEN" | jq -r '.data[0].id.id')

# Get telemetry keys for device
curl -s "$TB_URL/api/plugins/telemetry/DEVICE/$DEVICE_ID/keys/timeseries" \\
  -H "X-Authorization: Bearer $TB_TOKEN" | jq

# Get latest telemetry values
curl -s "$TB_URL/api/plugins/telemetry/DEVICE/$DEVICE_ID/values/timeseries?keys=temperature,humidity" \\
  -H "X-Authorization: Bearer $TB_TOKEN" | jq

# Get historical data (last hour)
START_TS=$(($(date +%s)*1000 - 3600000))
END_TS=$(($(date +%s)*1000))
curl -s "$TB_URL/api/plugins/telemetry/DEVICE/$DEVICE_ID/values/timeseries?keys=temperature&startTs=$START_TS&endTs=$END_TS&limit=100" \\
  -H "X-Authorization: Bearer $TB_TOKEN" | jq

# List dashboards and make first one public
DASHBOARD_ID=$(curl -s "$TB_URL/api/tenant/dashboards?pageSize=1&page=0" \\
  -H "X-Authorization: Bearer $TB_TOKEN" | jq -r '.data[0].id.id')

curl -s -X POST "$TB_URL/api/customer/public/dashboard/$DASHBOARD_ID" \\
  -H "X-Authorization: Bearer $TB_TOKEN" | jq
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: hoangnv170752
- Version: 0.1.0
## Source health
- Status: healthy
- Item download looks usable.
- Yavira can redirect you to the upstream package for this item.
- Health scope: item
- Reason: direct_download_ok
- Checked at: 2026-05-10T00:02:21.793Z
- Expires at: 2026-05-17T00:02:21.793Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/thingsboard-skill)
- [Send to Agent page](https://openagent3.xyz/skills/thingsboard-skill/agent)
- [JSON manifest](https://openagent3.xyz/skills/thingsboard-skill/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/thingsboard-skill/agent.md)
- [Download page](https://openagent3.xyz/downloads/thingsboard-skill)