Imou Open Device Config

v1.0.2

imou / Imou / 乐橙 / lechange 设备安防配置技能。支持设备动检计划、动检灵敏度、隐私模式(close camera)开关。 Manages device channel security configuration: motion detection schedule, motion de...

0· 185·0 current·0 all-time

Install

OpenClaw Prompt Flow

Install with OpenClaw

Best for remote or guided setup. Copy the exact prompt, then paste it into OpenClaw for imou-openplatform/imou-device-config.

Previewing Install & Setup.
Prompt PreviewInstall & Setup
Install the skill "Imou Open Device Config" (imou-openplatform/imou-device-config) from ClawHub.
Skill page: https://clawhub.ai/imou-openplatform/imou-device-config
Keep the work scoped to this skill only.
After install, inspect the skill metadata and help me finish setup.
Required env vars: IMOU_APP_ID, IMOU_APP_SECRET, IMOU_BASE_URL
Use only the metadata you can verify from ClawHub; do not invent missing requirements.
Ask before making any broader environment changes.

Command Line

CLI Commands

Use the direct CLI path if you want to install manually and keep every step visible.

OpenClaw CLI

Bare skill slug

openclaw skills install imou-device-config

ClawHub CLI

Package manager switcher

npx clawhub@latest install imou-device-config
Security Scan
VirusTotalVirusTotal
Benign
View report →
OpenClawOpenClaw
Benign
high confidence
Purpose & Capability
Name/description (Imou device security configuration) match the included scripts and README. Required env vars (IMOU_APP_ID, IMOU_APP_SECRET, IMOU_BASE_URL) and the APIs called are the ones expected to operate the Imou Open API.
Instruction Scope
SKILL.md instructs the agent to obtain an access token and call device config / IoT model APIs. Instructions reference only device/product identifiers and the declared env vars; they do not instruct reading unrelated files or exfiltrating data to third-party endpoints.
Install Mechanism
No risky install steps or external downloads. Dependency is requests (pip), declared in requirements.txt and metadata; instruction-only install behavior is low risk.
Credentials
The skill requires an app ID and app secret (IMOU_APP_ID, IMOU_APP_SECRET) and a base URL. Those are necessary for Imou Open API access and proportionate, but IMOU_APP_SECRET is a sensitive credential—store it securely. There is a minor inconsistency: metadata/README sometimes treats IMOU_BASE_URL as required while code provides a default base URL; this is a documentation mismatch, not an indication of extra privilege.
Persistence & Privilege
always:false and no code writes or modifies other skills or system settings. The skill does not request permanent platform-wide privileges.
Assessment
This skill appears to do what it says: configure Imou / lechange devices via the official Open API. Before installing, make sure you: (1) only provide IMOU_APP_ID and IMOU_APP_SECRET that are scoped to a developer account you control, store them in a secure environment (avoid pasting them into third-party UIs), (2) verify IMOU_BASE_URL points to the official Imou endpoint for your region (the code will use a default if omitted), (3) review the included scripts yourself if you need higher assurance (they are plain Python and call only the documented API endpoints), and (4) run the tool in a least-privileged environment since it controls device privacy/motion settings. If you are uncomfortable providing your app secret, do not install or run the skill.

Like a lobster shell, security has layers — review code before you run it.

Runtime requirements

⚙️ Clawdis
EnvIMOU_APP_ID, IMOU_APP_SECRET, IMOU_BASE_URL
Primary envIMOU_APP_ID
latestvk9726jqv3mr4p2z6aw53d39qfh83pez6
185downloads
0stars
3versions
Updated 1mo ago
v1.0.2
MIT-0

Imou Device Config(乐橙设备配置)

Manage device channel security configuration: motion detection plan, motion detection sensitivity, and privacy mode (close camera) enable/disable. Supports both PaaS devices (productId empty) and IoT thing-model devices (productId non-empty). For thing-model devices, the skill prioritizes reading the product thing model and completes all device-related configuration based on that model definition (Property get/set, Service invoke).

Search Aliases

  • imou
  • Imou
  • 乐橙
  • lechange
  • easy4ip
  • imou-device-config
  • 乐橙设备配置
  • 乐橙动检计划
  • 乐橙隐私模式
  • 乐橙物模型

Quick Start

Install dependency:

pip install requests

Set environment variables (required):

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):

RegionData CenterBase URL
Mainland Chinahttps://openapi.lechange.cn
OverseasEast Asiahttps://openapi-sg.easy4ip.com:443
OverseasCentral Europehttps://openapi-fk.easy4ip.com:443
OverseasWestern Americahttps://openapi-or.easy4ip.com:443

Run (PaaS devices, productId empty):

# Get motion detection plan for a channel
python3 {baseDir}/scripts/device_config.py plan get DEVICE_SERIAL CHANNEL_ID

# Set motion detection plan (rules: period, beginTime, endTime)
python3 {baseDir}/scripts/device_config.py plan set DEVICE_SERIAL CHANNEL_ID --rules '[...]'

# Set motion detection sensitivity (1-5, 1=lowest, 5=highest)
python3 {baseDir}/scripts/device_config.py sensitivity set DEVICE_SERIAL CHANNEL_ID 3

# Get privacy mode (closeCamera) status
python3 {baseDir}/scripts/device_config.py privacy get DEVICE_SERIAL CHANNEL_ID

# Set privacy mode on/off
python3 {baseDir}/scripts/device_config.py privacy set DEVICE_SERIAL CHANNEL_ID on
python3 {baseDir}/scripts/device_config.py privacy set DEVICE_SERIAL CHANNEL_ID off

IoT thing-model devices (productId not empty) – read product model first, then configure by model:

# Step 1: Read product thing model (required; get Property/Service refs from model)
python3 {baseDir}/scripts/device_config.py iot model PRODUCT_ID [--verbose] [--json]

# Step 2: Property get/set and service invoke based on model definition
# Get Property values (refs from model)
python3 {baseDir}/scripts/device_config.py iot property-get PRODUCT_ID DEVICE_SERIAL '["3301","3302"]' [--json]

# Set Property values
python3 {baseDir}/scripts/device_config.py iot property-set PRODUCT_ID DEVICE_SERIAL '{"3301":1,"3302":2}'

# Invoke Service (event/command)
python3 {baseDir}/scripts/device_config.py iot service PRODUCT_ID DEVICE_SERIAL SERVICE_REF [--content '{}']

Capabilities

  1. Motion detection plan: Get or set alarm plan per channel (PaaS). Rules include period (Monday–Sunday), beginTime, endTime (HH:mm:ss).
  2. Motion detection sensitivity: Set sensitivity level 1–5 for a channel (PaaS).
  3. Privacy mode: Get or set closeCamera enable (privacy mode) per channel (PaaS).
  4. IoT thing-model: For devices with productId: read product thing model first, then property query (get by refs from model), property set (set ref->value per model), event/command (invoke Service by ref from model, with input content per model). Configuration is driven by the thing model definition; refs and capabilities must be resolved from the model.

Device Types and Configuration Strategy

  • productId empty (PaaS): Use enable APIs (getDeviceCameraStatus / setDeviceCameraStatus), deviceAlarmPlan, modifyDeviceAlarmPlan, setDeviceAlarmSensitivity. Only devices with accessType=PaaS support these.
  • productId not empty (thing-model device): Prioritize reading the product thing model first (iot model PRODUCT_ID). All device configuration (property query/set, event/command dispatch) is then performed based on the thing model definition: use Property refs and Service refs from the model for iot property-get, iot property-set, and iot service. Do not assume refs or capabilities; always resolve them from the product model.

Request Header

All requests to Imou Open API must include the header Client-Type: OpenClaw for platform identification.

API References

APIDoc
Dev spechttps://open.imou.com/document/pages/c20750/
Get accessTokenhttps://open.imou.com/document/pages/fef620/
Enable definitionhttps://open.imou.com/document/pages/389c19/
Set enablehttps://open.imou.com/document/pages/8214a7/
Get enablehttps://open.imou.com/document/pages/2e535e/
Get alarm planhttps://open.imou.com/document/pages/4d571d/
Set alarm planhttps://open.imou.com/document/pages/542ccc/
Set alarm sensitivityhttps://open.imou.com/document/pages/83f1b4/
IoT thing model overviewhttps://open.imou.com/document/pages/1acdf4/
Get product modelhttps://open.imou.com/document/pages/2a238c/
Get IoT Propertyhttps://open.imou.com/document/pages/919bcf/
Set IoT Propertyhttps://open.imou.com/document/pages/532cdf/
IoT Servicehttps://open.imou.com/document/pages/fa0726/

See references/imou-config-api.md for request/response formats.

Tips

  • Token: Fetched automatically per run; valid 3 days. Do not cache across runs unless you implement expiry handling.
  • Enable types: Privacy mode uses closeCamera (channel scope). Motion enable uses motionDetect (channel). See enable definition doc for full list.
  • Alarm plan rules: Each rule has period (e.g. "Monday" or "Monday,Wednesday,Friday"), beginTime, endTime (HH:mm:ss).
  • Thing-model first: For productId non-empty devices, always read the product thing model first (iot model PRODUCT_ID); then use the model's Property/Service definitions (refs, dataTypes, inputData/outputData) for all get/set and service invoke. Do not hardcode refs across products.
  • IoT refs: Property and Service refs are strings (e.g. "3301") from the model. For bool properties use 0/1 in set. Service content is input params by ref per model; use {} when the service has no input.

Data Outflow

DataSent toPurpose
appId, appSecretImou Open APIObtain accessToken
accessToken, deviceId, channelId, productId, etc.Imou Open APIGet/set plan, sensitivity, enable; IoT model, property get/set, service invoke

All requests go to the configured IMOU_BASE_URL. No other third parties.

Comments

Loading comments...