← 返回
未分类 Key 中文

skill-create-pip

Control Ecovacs/DEEBOT robot vacuums via the Ecovacs IoT API. Use when the user wants to control a robot vacuum, check battery, start/stop/pause cleaning, re...
通过 Ecovacs IoT API 控制 Ecovacs/DEEBOT 扫地机器人,用于控制机器人、检查电量、开始/停止/暂停清扫等。
1209823208 1209823208 来源
未分类 clawhub v2.0.0 1 版本 100000 Key: 需要
★ 0
Stars
📥 305
下载
💾 0
安装
1
版本
#latest

概述

Ecovacs Robot Control

Auth Flow

Three-step flow: Login → Device List → Send Command

Full API details in references/api.md. Core script in scripts/ecovacs.py.

Session Management

Session (token + userid + resource) is stored in ~/.ecovacs_session.json after login.

Always load_session() before calling device APIs. Re-login if token expired (errno 3000).

Critical Rule

toType = device's class field from device list (e.g. o0lqjm).

NOT "device" or "USER" — this is the #1 cause of errno:3003 permission denied.


Using the Script

# First time login
python3 scripts/ecovacs.py login <phone> <md5_or_plain_password>

# List all devices (shows did, status, name)
python3 scripts/ecovacs.py devices

# Check battery (use did or nick)
python3 scripts/ecovacs.py battery <did>

# Check clean status
python3 scripts/ecovacs.py status <did>

# Start full-house auto clean
python3 scripts/ecovacs.py clean <did> start

# Pause / resume / stop
python3 scripts/ecovacs.py clean <did> pause
python3 scripts/ecovacs.py clean <did> resume
python3 scripts/ecovacs.py clean <did> stop

# Return to dock
python3 scripts/ecovacs.py charge <did>

# Send any arbitrary command
python3 scripts/ecovacs.py cmd <did> getLifeSpan '{"type":"brush,sideBrush,heap"}'
python3 scripts/ecovacs.py cmd <did> setSpeed '{"speed":1}'
python3 scripts/ecovacs.py cmd <did> getWorkMode '{}'

Direct API Calls

When using tools directly (not script), follow this pattern:

# 1. Login
session = login(phone, md5(password))

# 2. Get devices
devices = get_devices(session)
device = next(d for d in devices if "T50" in d["deviceName"])

# 3. Send command
result = send_cmd(session, device, "clean_V2", {
    "act": "start",
    "content": {"type": "auto", "count": 1}
})

See references/api.md for full protocol reference:

  • Auth & device discovery — login, resource generation, device list fields
  • All command payloads — clean_V2, charge, battery, stats, speed, water, workmode, lifespan, autoEmpty, maps, schedules
  • State/event codes — error codes, evt codes, clean states

Common Protocols Quick Reference

GoalcmdNamekey body.data fields
-------------------------------------
开始全屋清扫clean_V2{act:"start", content:{type:"auto",count:1}}
区域清扫clean_V2{act:"start", content:{type:"spotArea",value:"mssid1,mssid2"}}
暂停/继续/停止clean_V2{act:"pause/resume/stop"}
回充charge{act:"go"}
查电量getBattery{}
查清扫状态getCleanInfo_V2{}
查本次面积时长getStats{}
查/设吸力getSpeed/setSpeed{speed:0} (1000静音/0标准/1强劲/2超强)
查/设水量getWaterInfo/setWaterInfo{amount:2} (1低/2中/3高/4超高)
查/设扫拖模式getWorkMode/setWorkMode{mode:0} (0边扫边拖/1仅扫/2仅拖/3先扫后拖)
查耗材getLifeSpan{type:"brush,sideBrush,heap,filter"}
手动集尘setAutoEmpty{act:"start"}
查地图列表getCachedMapInfo{}
查房间区域getMapSet{mid:"",type:"ar"}
查预约getSched_V2{type:1}

Error Handling

errnomeaning
----------------
3000Token expired → re-login
3003Permission denied → check toType = device class
30000Device response timeout → device offline
0 (body.code)Success

Accounts (China domestic)

  • Login URL: https://api-app.dc-cn.cn.ecouser.net/api/users/user.do
  • org: ECOCN, country: CN
  • Password: MD5 hex of plaintext

版本历史

共 1 个版本

  • v2.0.0 当前
    2026-05-07 10:32 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

it-ops-security

1password

steipete
设置和使用 1Password CLI (op)。适用于:安装 CLI、启用桌面应用集成、登录(单/多账户)、通过 op 读取/注入/运行密钥。
★ 53 📥 31,516
it-ops-security

Tmux

steipete
通过发送按键和抓取窗格输出,远程控制交互式 CLI 的 tmux 会话。
★ 45 📥 29,433
it-ops-security

MoltGuard - Security & Antivirus & Guardrails

thomaslwang
MoltGuard — OpenClaw 安全守卫,由 OpenGuardrails 提供。安装 MoltGuard,保护您和您的用户免受提示注入、数据泄露和恶意攻击。
★ 116 📥 30,857