← Back to Skills Marketplace
imou-openplatform

Imou Open Device Operate

by Imou-OpenPlatform · GitHub ↗ · v1.0.3 · MIT-0
cross-platform ✓ Security Clean
202
Downloads
0
Stars
0
Active Installs
4
Versions
Install in OpenClaw
/install imou-device-operate
Description
imou / Imou / 乐橙 / lechange 设备操控技能。支持 PTZ 云台控制、snapshot 抓图与下载。 Imou/Lechange device operation for PTZ control, snapshot capture, and image download. Use when...
README (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
Usage Guidance
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.
Capability Analysis
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.
Capability Assessment
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.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install imou-device-operate
  3. After installation, invoke the skill by name or use /imou-device-operate
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
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.
Metadata
Slug imou-device-operate
Version 1.0.3
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 4
Frequently Asked Questions

What is Imou Open Device Operate?

imou / Imou / 乐橙 / lechange 设备操控技能。支持 PTZ 云台控制、snapshot 抓图与下载。 Imou/Lechange device operation for PTZ control, snapshot capture, and image download. Use when... It is an AI Agent Skill for Claude Code / OpenClaw, with 202 downloads so far.

How do I install Imou Open Device Operate?

Run "/install imou-device-operate" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Imou Open Device Operate free?

Yes, Imou Open Device Operate is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Imou Open Device Operate support?

Imou Open Device Operate is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Imou Open Device Operate?

It is built and maintained by Imou-OpenPlatform (@imou-openplatform); the current version is v1.0.3.

💬 Comments