Xpersona
I

Imou Open Device Operate

CLAWHUB · Unverified

imou / Imou / 乐橙 / lechange 设备操控技能。支持 PTZ 云台控制、snapshot 抓图与下载。 Imou/Lechange device operation for PTZ control, snapshot capture, and image download. Use when...

62
Rank
84
Safety
1.0k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1K downloads reported by the source. Last updated 10/11/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: medium.

clawhub skill install s178avw7h6mqnrcct4bknpbzd183p5rq:imou-device-operate
  1. Install using `clawhub skill install s178avw7h6mqnrcct4bknpbzd183p5rq:imou-device-operate` in an isolated environment before connecting it to live workloads.
  2. No published capability contract is available yet, so validate auth and request/response behavior manually.
  3. Review the upstream CLAWHUB listing at https://clawhub.ai/imou-openplatform/imou-device-operate before using production credentials.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-imou-openplatform-imou-device-operate/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

34,146 characters of source documentation, loaded on request.

Extracted files

5 files captured from the source.

SKILL.md

---
name: imou-device-operate
description: >
  imou / Imou / 乐橙 / lechange 设备操控技能。支持 PTZ 云台控制、snapshot 抓图与下载。
  Imou/Lechange device operation for PTZ control, snapshot capture, and image download.
  Use when: imou ptz control, Imou device operate, lechange device operate, 乐橙 设备操控, 乐橙 云台控制, 乐橙 抓图 下载.
metadata:
  openclaw:
    emoji: "🎮"
    requires:
      env: ["IMOU_APP_ID", "IMOU_APP_SECRET", "IMOU_BASE_URL"]
      pip: ["requests"]
    primaryEnv: "IMOU_APP_ID"
    install:
      - id: "python-requests"
        kind: "pip"
        package: "requests"
        label: "Install requests"
---

# Imou Device Operate(乐橙设备操控)

Control Imou cloud devices: PTZ (pan-tilt-zoom) movement, device snapshot capture, and download snapshot image by URL.

## Search Aliases

- imou
- Imou
- 乐橙
- lechange
- easy4ip
- imou-device-operate
- 乐橙设备
- 乐橙云台
- 乐橙抓图
- 乐橙摄像头

## Quick Start

Install dependency:
```bash
pip install requests
```

Set environment variables (required):
```bash
export IMOU_APP_ID="your_app_id"
export IMOU_APP_SECRET="your_app_secret"
export IMOU_BASE_URL="your_base_url"
```

**API Base URL (IMOU_BASE_URL)** (required; no default—must be set explicitly):
- **Mainland China**: Register a developer account at [open.imou.com](https://open.imou.com) and use the base URL below. Get `appId` and `appSecret` from [App Information](https://open.imou.com/consoleNew/myApp/appInfo).
- **Overseas**: Register a developer account at [open.imoulife.com](https://open.imoulife.com) and use the base URL for your data center (view in [Console - Basic Information - My Information](https://open.imoulife.com/consoleNew/basicInfo/myInfo)). Get `appId` and `appSecret` from [App Information](https://open.imoulife.com/consoleNew/myApp/appInfo). See [Development Specification](https://open.imoulife.com/book/http/develop.html).

| Region         | Data Center     | Base URL |
|----------------|-----------------|----------|
| Mainland China | —               | `https://openapi.lechange.cn` |
| Overseas       | East Asia       | `https://openapi-sg.easy4ip.com:443` |
| Overseas       | Central Europe  | `https://openapi-fk.easy4ip.com:443` |
| Overseas       | Western America | `https://openapi-or.easy4ip.com:443` |

Run:
```bash
# Device snapshot (returns downloadable URL; optional save to file)
python3 {baseDir}/scripts/device_operate.py snapshot DEVICE_SERIAL CHANNEL_ID [--save PATH]

# PTZ move (operation: 0-10, duration in ms)
python3 {baseDir}/scripts/device_operate.py ptz DEVICE_SERIAL CHANNEL_ID OPERATION DURATION_MS
```

## Capabilities

1. **Device snapshot**: Call setDeviceSnapEnhanced to get a snapshot URL (valid 2 hours). Optionally download to a local file with `--save`.
2. **PTZ control**: controlMovePTZ with operation (0=up, 1=down, 2=left, 3=right, 4=up-left, 5=down-left, 6=up-right, 7=down-right, 8=zoom in, 9=zoom out, 10=stop) and duration in milliseconds. Device must support PT/PTZ.

_meta.json

{
  "ownerId": "kn78k77bka11dgbwc6fc11957d83540j",
  "slug": "imou-device-operate",
  "version": "1.0.3",
  "publishedAt": 1774578513127
}

references/imou-operate-api.md

# Imou Open API Reference – Device Operate

This document summarizes the APIs used by the Imou Device Operate skill. All requests must include header `Client-Type: OpenClaw`.

---

## 1. Base URL and Request Format

- **Base URL**: `https://openapi.lechange.cn` (configurable via `IMOU_BASE_URL`).
- **Method**: POST to `{base_url}/openapi/{method}`.
- **Body**: JSON.

Request body structure:

```json
{
  "system": {
    "ver": "1.0",
    "appId": "<appId>",
    "sign": "<md5_sign>",
    "time": <utc_seconds>,
    "nonce": "<32_char_uuid>"
  },
  "id": "<request_unique_id>",
  "params": { ... }
}
```

**Sign**: MD5 of string `time:{time},nonce:{nonce},appSecret:{appSecret}` (UTF-8), 32-char lowercase hex. `time` is UTC timestamp in **seconds**.

Response structure:

```json
{
  "result": { "code": "0", "msg": "...", "data": { ... } },
  "id": "<request_id>"
}
```

`code` "0" means success. See [global return codes](https://open.imou.com/document/pages/254965/) for errors.

---

## 2. accessToken – Get Admin Token

- **Doc**: https://open.imou.com/document/pages/fef620/
- **URL**: `POST {base_url}/openapi/accessToken`
- **params**: `{}` (empty object).

**Response data**:

| Field         | Type   | Description                    |
|---------------|--------|--------------------------------|
| accessToken   | String | Admin access token            |
| expireTime    | Long   | Expiry time in **seconds**    |

Token is valid for 3 days. Request a new one when it expires or when API returns TK1002.

---

## 3. setDeviceSnapEnhanced – Device Snapshot (Enhanced)

- **Doc**: https://open.imou.com/document/pages/09fe83/
- **URL**: `POST {base_url}/openapi/setDeviceSnapEnhanced`

Supports snapshot frequency 1 per second. Client request interval should be ≥ 1s. Snapshot URL in response is valid for 2 hours.

**params**:

| Param     | Type   | Required | Description |
|-----------|--------|----------|-------------|
| token     | String | Y        | accessToken |
| deviceId  | String | Y        | Device serial |
| channelId | String | Y        | Channel ID (e.g. "0") |

**Response data**:

| Field | Type   | Description        |
|-------|--------|--------------------|
| url   | String | Snapshot image URL (downloadable, 2h valid) |

---

## 4. controlMovePTZ – PTZ Move Control

- **Doc**: https://open.imou.com/document/pages/66c489/
- **URL**: `POST {base_url}/openapi/controlMovePTZ`

Device must have PT or PTZ capability.

**params**:

| Param     | Type   | Required | Description |
|-----------|--------|----------|-------------|
| token     | String | Y        | accessToken |
| deviceId  | String | Y        | Device serial |
| channelId | String | Y        | Channel ID (e.g. "0") |
| operation | String | Y        | 0=up, 1=down, 2=left, 3=right, 4=up-left, 5=down-left, 6=up-right, 7=down-right, 8=zoom in, 9=zoom out, 10=stop |
| duration  | Long   | Y        | M

skill-card.md

## Description:

Imou/Lechange device operation for PTZ control, snapshot capture, and image download.

This skill is ready for commercial/non-commercial use.

## Publisher:

[imou-openplatform](https://clawhub.ai/user/imou-openplatform)

### License/Terms of Use:

MIT-0

## Use Case:

Developers and operators use this skill to control Imou or Lechange cameras through the Imou Open API, including PTZ movement and snapshot capture or download.

### Deployment Geography for Use:

Global

## Known Risks and Mitigations:

Risk: Sensitive camera tokens and device data can be sent to an unvalidated network endpoint if IMOU_BASE_URL is misconfigured.

Mitigation: Use only documented HTTPS Imou API base URLs and keep IMOU_APP_SECRET private.

Risk: Camera snapshots and PTZ movement can expose privacy-sensitive scenes or physically move a camera.

Mitigation: Require user authorization before snapshot capture, image download, or PTZ movement.

Risk: The --save option can write content from unexpected snapshot responses before URL and file-size validation is added.

Mitigation: Avoid --save on untrusted or unexpected snapshot responses and inspect snapshot URLs before downloading.

## Reference(s):

- [ClawHub skill page](https://clawhub.ai/imou-openplatform/skills/imou-device-operate)
- [Imou Open API reference summary](references/imou-operate-api.md)
- [Imou developer portal](https://open.imou.com)
- [Imou overseas developer portal](https://open.imoulife.com)
- [Imou development specification](https://open.imoulife.com/book/http/develop.html)
- [Get accessToken API](https://open.imou.com/document/pages/fef620/)
- [Device snapshot API](https://open.imou.com/document/pages/09fe83/)
- [PTZ move control API](https://open.imou.com/document/pages/66c489/)

## Skill Output:

**Output Type(s):** [text, shell commands, configuration, guidance]

**Output Format:** [CLI text output, URLs, and optional downloaded image files]

**Output Parameters:** [1D]

**Other Properties Related to Output:** [Snapshot URLs are time-limited by the upstream API; optional local downloads write image files to the requested path.]

## Skill Version(s):

1.0.3 (source: server release evidence)

## Ethical Considerations:

Users should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.

requirements.txt

requests>=2.28.0

Sponsored

Ads related to Imou Open Device Operate and adjacent AI workflows.