← 返回 Skills 市场
imou-openplatform

Imou Open Device Operate

作者 Imou-OpenPlatform · GitHub ↗ · v1.0.3 · MIT-0
cross-platform ✓ 安全检测通过
202
总下载
0
收藏
0
当前安装
4
版本数
在 OpenClaw 中安装
/install imou-device-operate
功能描述
imou / Imou / 乐橙 / lechange 设备操控技能。支持 PTZ 云台控制、snapshot 抓图与下载。 Imou/Lechange device operation for PTZ control, snapshot capture, and image download. Use when...
使用说明 (SKILL.md)

\r \r

Imou Device Operate(乐橙设备操控)\r

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

Search Aliases\r

\r

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

Quick Start\r

\r Install dependency:\r

pip install requests\r
```\r
\r
Set environment variables (required):\r
```bash\r
export IMOU_APP_ID="your_app_id"\r
export IMOU_APP_SECRET="your_app_secret"\r
export IMOU_BASE_URL="your_base_url"\r
```\r
\r
**API Base URL (IMOU_BASE_URL)** (required; no default—must be set explicitly):\r
- **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).\r
- **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).\r
\r
| Region         | Data Center     | Base URL |\r
|----------------|-----------------|----------|\r
| Mainland China | —               | `https://openapi.lechange.cn` |\r
| Overseas       | East Asia       | `https://openapi-sg.easy4ip.com:443` |\r
| Overseas       | Central Europe  | `https://openapi-fk.easy4ip.com:443` |\r
| Overseas       | Western America | `https://openapi-or.easy4ip.com:443` |\r
\r
Run:\r
```bash\r
# Device snapshot (returns downloadable URL; optional save to file)\r
python3 {baseDir}/scripts/device_operate.py snapshot DEVICE_SERIAL CHANNEL_ID [--save PATH]\r
\r
# PTZ move (operation: 0-10, duration in ms)\r
python3 {baseDir}/scripts/device_operate.py ptz DEVICE_SERIAL CHANNEL_ID OPERATION DURATION_MS\r
```\r
\r
## Capabilities\r
\r
1. **Device snapshot**: Call setDeviceSnapEnhanced to get a snapshot URL (valid 2 hours). Optionally download to a local file with `--save`.\r
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.\r
\r
## Request Header\r
\r
All requests to Imou Open API include the header `Client-Type: OpenClaw` for platform identification.\r
\r
## API References\r
\r
| API | Doc |\r
|-----|-----|\r
| Dev spec | https://open.imou.com/document/pages/c20750/ |\r
| Get accessToken | https://open.imou.com/document/pages/fef620/ |\r
| Device snapshot (enhanced) | https://open.imou.com/document/pages/09fe83/ |\r
| PTZ move control | https://open.imou.com/document/pages/66c489/ |\r
\r
See `references/imou-operate-api.md` for request/response formats.\r
\r
## Tips\r
\r
- **Token**: Fetched automatically per run; valid 3 days.\r
- **Snapshot**: Request interval should be ≥1s per device; snapshot URL expires in 2 hours.\r
- **PTZ**: Use operation 10 (stop) to stop movement; duration is in milliseconds.\r
\r
## Data Outflow\r
\r
| Data | Sent to | Purpose |\r
|------|---------|--------|\r
| appId, appSecret | Imou Open API | Obtain accessToken |\r
| accessToken, deviceId, channelId, etc. | Imou Open API | Snapshot, PTZ control |\r
\r
All requests go to the configured `IMOU_BASE_URL`. No other third parties.\r
安全使用建议
This skill appears coherent and implements the Imou Open API as described. Before installing, ensure you: (1) only provide IMOU_APP_ID and IMOU_APP_SECRET for a trusted Imou developer account; (2) set IMOU_BASE_URL to the official Imou/OpenAPI domain for your region (do not point it to untrusted hosts); (3) treat appSecret as a sensitive credential and avoid exposing it in shared environments; and (4) be aware that the skill can perform PTZ actions on devices (move/stop), so grant it access only if you intend the agent to control cameras. If you need extra assurance, review the included Python files locally to confirm the endpoints and behavior before running.
功能分析
Type: OpenClaw Skill Name: imou-device-operate Version: 1.0.3 The skill provides legitimate functionality for controlling Imou/Lechange IoT devices, including PTZ movement and snapshot capture, via the official Imou Open API. The implementation in `scripts/imou_client.py` and `scripts/device_operate.py` correctly handles authentication and API requests using user-provided environment variables (IMOU_APP_ID, IMOU_APP_SECRET). No evidence of malicious behavior, data exfiltration to unauthorized endpoints, or prompt injection was found.
能力评估
Purpose & Capability
Name/description (PTZ, snapshot, download) match the code and SKILL.md. Required env vars (IMOU_APP_ID, IMOU_APP_SECRET, IMOU_BASE_URL) are exactly what the Imou Open API needs.
Instruction Scope
SKILL.md and the Python scripts only call the Imou Open API endpoints, fetch tokens, request snapshots and PTZ control, and optionally download returned snapshot URLs. No instructions to read unrelated files or to contact other external endpoints.
Install Mechanism
No installer that downloads arbitrary code; dependencies are limited to the 'requests' Python package (declared in requirements.txt and SKILL.md). This is proportionate to the functionality.
Credentials
The skill requires only three env vars that map directly to the Imou API credentials and base URL. No unrelated secrets, config paths, or extra credentials are requested.
Persistence & Privilege
always:false and no modifications to other skills or system-wide settings. The skill does not request persistent system presence beyond normal runtime use.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install imou-device-operate
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /imou-device-operate 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.3
- Added more Chinese keywords and aliases to improve discoverability for 乐橙/Imou device operations. - Enhanced the description for both Chinese and English usage scenarios. - Expanded search terms to include "乐橙设备", "乐橙云台", "乐橙抓图", and "乐橙摄像头". - No changes to core functionality or API integrations.
v1.0.2
Imou device operation skill 1.0.2 - Added clear documentation and usage instructions in SKILL.md, including installation and environment setup details. - Expanded API endpoint and regional information for both Mainland China and overseas users. - Documented device capabilities: PTZ movement, snapshot capture, and downloading images. - Included sample commands for quick start and explained request headers and data outflow.
v1.0.1
- IMOU_BASE_URL is now mandatory (no default); users must set it explicitly for all regions. - Added detailed setup instructions for both Mainland China and Overseas users, including data center-specific base URLs. - Provided data center selection table with corresponding base URLs for different regions (China, East Asia, Central Europe, Western America). - Clarified developer account registration steps and links for both China and overseas users. - All other features and capabilities remain unchanged.
v1.0.0
- Initial release of imou-device-operate skill. - Control Imou/乐橙 devices: pan-tilt-zoom (PTZ) movement and device snapshot capture. - Supports device snapshot download and image URL retrieval. - Command-line script usage examples and environment setup instructions provided. - Requires Imou developer credentials (IMOU_APP_ID, IMOU_APP_SECRET) and installs "requests" dependency. - All API requests are sent directly to Imou Open API; no data shared with third parties.
元数据
Slug imou-device-operate
版本 1.0.3
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 4
常见问题

Imou Open Device Operate 是什么?

imou / Imou / 乐橙 / lechange 设备操控技能。支持 PTZ 云台控制、snapshot 抓图与下载。 Imou/Lechange device operation for PTZ control, snapshot capture, and image download. Use when... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 202 次。

如何安装 Imou Open Device Operate?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install imou-device-operate」即可一键安装,无需额外配置。

Imou Open Device Operate 是免费的吗?

是的,Imou Open Device Operate 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Imou Open Device Operate 支持哪些平台?

Imou Open Device Operate 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Imou Open Device Operate?

由 Imou-OpenPlatform(@imou-openplatform)开发并维护,当前版本 v1.0.3。

💬 留言讨论