ClawKit Logo
ClawKitReliability Toolkit
Back to Registry
Official Verified

aqara-open-api-local

Route Aqara Open API requests across device, space, and automation skills with a relationship-first router, shared CLI contract, and structured handoff contract. Supports AQARA_OPEN_API_TOKEN and AQARA_ENDPOINT_URL through environment variables or AQARA CLI config.

skill-install — Terminal

Install via CLI (Recommended)

clawhub install openclaw/skills/skills/aqara/aqara-open-api-local
Or

Aqara Open API Skill

This file is the single entry router for the Aqara Open Platform HTTP API skill package.

Read this file first. Use it to do four things:

  1. Classify whether the user request lands in device, space, or automation.
  2. Preserve the shared request envelope, credential rules, and non-guessing rules.
  3. Build a structured handoff contract instead of forwarding raw user prose.
  4. Decide whether the next step may use cache-first execution or must upgrade to stricter validation.

Child skills:

  • aqara-open-api-local/device/SKILL.md
  • aqara-open-api-local/space/SKILL.md
  • aqara-open-api-local/automation/SKILL.md

Quick Route Table

Use this table before reading any child skill in depth.

User asks forFinal intentNext file
list devices, count devices, read state, control a devicedeviceaqara-open-api-local/device/SKILL.md
list spaces, create or rename spaces, move devices between spacesspaceaqara-open-api-local/space/SKILL.md
create automation, inspect automation, update automation config, enable or disable automation, delete automationautomationaqara-open-api-local/automation/SKILL.md
room-scoped device query such as "what lights are in the living room"deviceconfirm room identity, then query devices from data/devices.json
room-related automation such as "turn on the light when someone is in the living room"automationresolve room and device evidence first, then enter automation

Language Policy

  • user-facing explanations, routing notes, and clarification questions should use Chinese Simplified
  • Open API request types, field names, file paths, enums, and code examples must keep exact English identifiers
  • do not mix Chinese and English in one rule sentence unless an exact identifier must be quoted

Package Model

Treat the three business entities as related, not isolated:

  • space is the container and grouping scope for devices
  • device is the concrete instance that can be queried, counted, and controlled
  • automation is the orchestration layer that references rooms, devices, and device traits

Route by the final action target, not by keyword count alone.

Important relationship rule:

  • for room-scoped device queries, space is the filter key and device is the answer source
  • GetSpacesRequest confirms that a room exists or resolves spaceId; it does not answer which devices are inside the room
  • the actual room-to-device result must come from data/devices.json by filtering devices whose room membership matches the resolved room

Examples:

  • "what devices are in the living room" -> final intent is device
  • "move all lights from the master bedroom to the second bedroom" -> final intent is space
  • "create an automation that turns on the light when someone is in the living room" -> final intent is automation

Shared Runtime Contract

Runti...

Metadata

Author@aqara
Stars4473
Views0
Updated2026-05-01
View Author Profile
AI Skill Finder

Not sure this is the right skill?

Describe what you want to build — we'll match you to the best skill from 16,000+ options.

Find the right skill
Add to Configuration

Paste this into your clawhub.json to enable this plugin.

{
  "plugins": {
    "official-aqara-aqara-open-api-local": {
      "enabled": true,
      "auto_update": true
    }
  }
}
Safety NoteClawKit audits metadata but not runtime behavior. Use with caution.

Related Skills

aqara-agent

aqara-agent is an official Aqara Home AI Agent skill. It supports natural-language home and space management, device inquiry, device control, device configuration (firmware/OTA upgrade only - not supported: rename devices, move devices between rooms or positions, or other device record edits outside firmware), device logs, scene management (query, execute, create, snapshot, and logs), automation management (create, query, detail, toggle, and logs), and energy / electricity-cost statistics (by device, room, or home). Examples: "How many lights are at home?", "Switch to my other home.", "Turn off the living room AC.", "What are the temperature and humidity in the bedroom?", "Upgrade the bedroom camera firmware.", "Upgrade firmware for the hub.", "Show device logs for this device.", "Run the Movie scene.", "Recommend a bedtime setup for the bedroom.", "Create a good-night scene in the bedroom.", "Capture a scene snapshot of how things are now.", "Which scenes use the kitchen lights?", "When it is sunset in Haidian District, Beijing, turn off the security alarm.", "Create an automation to turn off the bedroom lights every day at 10:30pm.", "Five minutes after the living room motion sensor detects someone, turn on the hallway lights.", "At 7am on weekdays, run the Good Morning scene.", "If outdoor temperature drops below 5 degrees C, send me a notification.", "What automations do I have?", "Turn off the morning routine automation.", "What triggers the Leave Home automation?", "What was last month's electricity bill at home?", "How much power did the bedroom use this week?", "Check automation execution in the bedroom for the last three days.", "Show scene run history for the Movie scene."

aqara 4473