ClawKit Logo
ClawKitReliability Toolkit
Back to Registry
Official Verified

aqara-open-api

Query and control Aqara/Lumi Studio smart home devices and manage spaces via the Aqara Open Platform API (HTTP JSON). Use when the user asks to list Aqara devices, get device status, control lights/switches/sensors, or manage rooms/spaces. Requires AQARA_OPEN_API_TOKEN and AQARA_ENDPOINT_URL.

skill-install — Terminal

Install via CLI (Recommended)

clawhub install openclaw/skills/skills/aiot-f2e-team/aqara-open-api
Or

Aqara Open API Skill

This skill equips the agent to operate Aqara/Lumi Studio smart home devices via HTTPS requests to the Aqara Open Platform API. All operations are performed exclusively through curl commands, except GetAllDevicesWithSpaceRequest, which must be executed through bash scripts/fetch_all_devices.sh to refresh the local cache file data/devices.json.

This skill supports only:

  • device discovery and device type lookup
  • device state queries from cache
  • device control
  • space listing, creation, update, and device assignment

Configuration

The following environment variables are required:

  • AQARA_ENDPOINT_URL: The base URL
  • AQARA_OPEN_API_TOKEN: Your Long-Lived Access Token.

AI Quick Navigation (Read This First)

This section is a navigation and execution summary only. It does not add new rules or change existing constraints.

What This Skill Can Do

  • Device discovery: load all devices, space mappings, endpoints, functions, traits, and current values
  • Device type catalog: query all device types in the project with code and display name
  • Device queries: filter by type, name, room/space, or online status; read current trait values
  • Device control: send control requests using real deviceId, endpointId, functionCode, and traitCode from cache
  • Space management: list spaces, create spaces, update spaces, and assign devices to spaces

Intent to Fastest Path

  • List all devices / devices by type / devices in a room / device state
    • Check data/devices.json
    • If cache exists: read the file
    • If cache is missing: run bash scripts/fetch_all_devices.sh
  • Control a device
    • Ensure data/devices.json exists
    • Read deviceId + endpointId + functionCode + traitCode from cache
    • Then use bash + curl for ExecuteTraitRequest
  • What device types are there?
    • Use bash + curl for GetDeviceTypeInfosRequest
  • Refresh all device data
    • Only run bash scripts/fetch_all_devices.sh
  • List spaces
    • Use bash + curl for GetSpacesRequest
  • Create or update a space
    • First get the real spaceId from GetSpacesRequest
    • Then call CreateSpaceRequest or UpdateSpaceRequest
  • Assign devices to a space
    • First get the real spaceId from GetSpacesRequest
    • Read real deviceId values from data/devices.json
    • Then call AssociateDevicesToSpaceRequest

Six Highest-Priority Rules

Metadata

Stars4190
Views0
Updated2026-04-18
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-aiot-f2e-team-aqara-open-api": {
      "enabled": true,
      "auto_update": true
    }
  }
}
Safety NoteClawKit audits metadata but not runtime behavior. Use with caution.