← 返回
开发者工具 Key

Meross Smart

Control Meross cloud plugs via local CLI commands. Use for discovery, state checks, and switch on/off actions.
使用本地 CLI 命令控制 Meross 云插座,实现设备发现、状态查询和开关操作。
powtac
开发者工具 clawhub v1.0.27 3 版本 99851.6 Key: 需要
★ 1
Stars
📥 653
下载
💾 7
安装
3
版本
#iot#latest#meross#plug#smart#smarthome

概述

Meross Skill (CLI)

Use local node dist/cli.js only.

Do not use plugin APIs.

Do not invent device mappings.

Hard Gates

  • Require MEROSS_EMAIL and MEROSS_PASSWORD before cloud commands.
  • MEROSS_REGION is optional.
  • In new/runtime-reset environments, ensure build exists: npm install && npm run build.
  • If registry metadata conflicts with runtime behavior, trust runtime behavior.
  • Never write credentials to devices.json or other files.
  • Before every set-device command, show exact deviceId, capability, and value to the user and get explicit confirmation.

Device Resolution Rules

  • Resolve target by exact deviceId first.
  • Fallback to alias from devices.json.
  • If multiple matches or no match: stop and return ambiguity/missing-target guidance.
  • Only switch capability is valid.

Registry Rules

  • Registry path: local devices.json in skill root.
  • Refresh registry with:
node dist/cli.js setup-once '{}'
  • setup-once rewrites device set to normalized entries:
  • deviceId=plug_
  • channel=0
  • capabilities=["switch"]

Command Interface

node dist/cli.js <command> '<json-input>'

Supported commands:

  1. list-devices
  2. get-state
  3. set-device
  4. discover-cloud-devices
  5. setup-once

Core patterns:

node dist/cli.js list-devices '{}'
node dist/cli.js get-state '{"deviceId":"plug_abc"}'
node dist/cli.js set-device '{"deviceId":"plug_abc","capability":"switch","value":"on","confirmation":{"userConfirmed":true,"deviceId":"plug_abc","capability":"switch","value":"on"}}'
node dist/cli.js set-device '{"deviceId":"plug_abc","capability":"switch","value":"off","confirmation":{"userConfirmed":true,"deviceId":"plug_abc","capability":"switch","value":"off"}}'
node dist/cli.js discover-cloud-devices '{}'
node dist/cli.js setup-once '{}'

Delayed Actions

For delayed switch commands:

  • Show exact deviceId, capability, value, and absolute user-timezone timestamp before scheduling.
  • Schedule only after explicit user confirmation.
  • Include the same confirmation object in the scheduled set-device payload.
  • Tell the user how to list and cancel the pending one-shot job before ending the turn.

Error Contract

  • Success: JSON on stdout
  • Failure: JSON on stderr, non-zero exit
  • Relevant error codes: DEVICE_NOT_FOUND, DEVICE_OFFLINE, AUTH_FAILED, MEROSS_API_ERROR, INVALID_INPUT, REGISTRY_ERROR, AMBIGUOUS_DEVICE, CONFIRMATION_REQUIRED, INTERNAL_ERROR

版本历史

共 3 个版本

  • v1.0.27 当前
    2026-05-09 16:18 安全 安全
  • v1.0.26
    2026-03-29 19:18 安全
  • v1.0.21
    2026-03-11 17:04

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

developer-tools

Gog

steipete
Google Workspace 命令行工具,支持 Gmail、日历、云端硬盘、通讯录、表格和文档。
★ 921 📥 185,926
productivity

Buy Me a Pie

powtac
读取和修改Buy Me a Pie列表。非官方第三方技能,与Buy Me a Pie无关联。用于列表、物品、购买状态、分享等功能。
★ 1 📥 487
developer-tools

CodeConductor.ai

larsonreever
AI驱动平台,提供快速全栈开发、智能体、工作流自动化及低代码AI集成的可扩展产品创建。
★ 68 📥 180,473