Xiaomi Home Assistant Integration Skill for Openclaw

A secure integration skill for monitoring and controlling Xiaomi smart home devices through Home Assistant with real-time status updates and intelligent suggestions.

zorionginn
v1.0.4
Feb 23, 2026
0
0
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install xiaomi-home-assistant-skill

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install xiaomi-home-assistant-skill using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is Xiaomi Home Assistant Integration Skill?

The Xiaomi Home Assistant Skill is a specialized tool designed to bridge the gap between Xiaomi's vast ecosystem and Home Assistant. By leveraging this integration within Openclaw Skills, developers and homeowners can gain a centralized view of their smart environment. It prioritizes privacy by processing all data in-memory, ensuring that sensitive home activity logs or device histories are never persisted to disk.

This skill is built for those who value both automation and security. It allows for seamless interaction with lights, humidifiers, sensors, and XiaoAi speakers. By integrating this into Openclaw Skills, you can transform your AI agent into a proactive home manager that identifies device anomalies and provides instant maintenance suggestions.

Xiaomi Home Assistant Integration Skill Use Cases

  • Querying the real-time status of lights, switches, and humidifiers.
  • Checking pet hydration systems for filter life or low battery levels.
  • Monitoring room humidity and temperature via smart environmental sensors.
  • Executing natural language commands to control smart appliances quickly.
  • Receiving instant maintenance alerts when devices go offline or require attention.

How Xiaomi Home Assistant Integration Skill Works

  1. The skill establishes a secure connection to the Home Assistant API using a Long-Lived Access Token.
  2. It fetches the current state of specified entity IDs defined in the configuration files.
  3. Natural language inputs are parsed and mapped to specific device commands or status queries.
  4. The skill logic analyzes real-time data to detect anomalies such as extreme humidity or low battery levels.
  5. Status reports and intelligent suggestions are returned to the user, with all processing occurring in-memory for security.

Xiaomi Home Assistant Integration Skill Setup

To get started with this skill in Openclaw Skills, follow these steps:

# Navigate to your skill directory
cd xiaomi-home-assistant-skill

# Install the required Python dependencies
pip install requests
  1. Copy the config.json and homeassistant_auth.json templates to your working directory.
  2. Open homeassistant_auth.json and replace the placeholders with your actual Home Assistant URL and Long-Lived Access Token.
  3. Update config.json with your specific device entity IDs to enable natural language mapping.
  4. Ensure that your Openclaw Skills environment has the necessary network:http and read:files permissions configured.

Xiaomi Home Assistant Integration Skill Data Schema & Taxonomy

The skill organizes its operations through a structured set of JSON configurations and Python handlers:

File Name Purpose
config.json Maps natural language commands to specific Home Assistant entity IDs.
homeassistant_auth.json Stores sensitive API credentials including the URL and access token.
manifest.json Defines the skill metadata and restricted permission scope.
handlers/ Contains logic for monitoring, natural commands, and environmental analysis.

Xiaomi Home Assistant Integration Skill Advanced Features

  • Privacy-first architecture that avoids persisting sensitive device history to disk.
  • Minimal privilege design requiring only essential network and file read access.
  • Real-time anomaly detection for pet care devices and environmental safety triggers.
  • Extensible handler system for adding new types of smart home devices to Openclaw Skills.
  • Support for multi-device status aggregation to provide comprehensive home health snapshots.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*