A comprehensive architectural guide for building robust Home Assistant custom integrations and HACS components.
The fastest way to install a skill directly from the registry.
npx clawhub@latest install ha-integration-patterns
Copy the skill folder to one of these locations
~/.openclaw/skills/ <project>/skills/ Priority: Workspace > Local > Bundled
Copy this prompt to OpenClaw to install it automatically.
Help me install ha-integration-patterns using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).
Get the raw skill files in a ZIP archive.
This skill provides a technical blueprint for architecting Home Assistant custom integrations, serving as a vital resource within the Openclaw Skills ecosystem. It focuses on the transition from legacy fire-and-forget services to modern, data-rich service responses and authenticated HTTP views. By following these established patterns, developers can build more reliable bridges between AI agents and smart home hardware, ensuring that integrations are future-proof and compliant with official developer standards.
Integrating with Home Assistant requires a deep understanding of its event loop and internal registries. This guide synthesizes best practices for service registration, persistent storage via the Store API, and the implementation of custom HTTP views. It is designed to help developers avoid common pitfalls, such as using unstable private APIs, which often lead to integration failure during core updates.
Ensure your development environment has access to a Home Assistant instance. Follow these steps to initialize your integration structure:
# Create the directory structure for your integration
mkdir -p custom_components/your_domain
# Initialize the core files
touch custom_components/your_domain/__init__.py
touch custom_components/your_domain/manifest.json
touch custom_components/your_domain/services.yaml
To enable service responses, register your service in your component's initialization logic:
# In your Python integration code
from homeassistant.helpers.service import SupportsResponse
hass.services.async_register(
domain,
"get_data",
handle_service_call,
supports_response=SupportsResponse.ONLY
)
The skill follows the standard Home Assistant directory and metadata taxonomy for custom components. Data is organized as follows:
| Component | File/Path | Description |
|---|---|---|
| manifest.json | Root | Metadata, dependencies, and versioning info |
| services.yaml | Root | Formal definition of service calls and schemas |
| Storage API | .storage/ | Versioned JSON files for persistent settings |
| config_flow.py | Root | Logic for the UI-based configuration wizard |
| init.py | Root | Core setup and entry point for the integration |
Loading
A comprehensive Model Context Protocol server providing AI agents with instant access to over 80 web scraping and data retrieval tools.

An AI-driven tool for generating high-conversion re-engagement copy to win back inactive ecommerce users.

An AI-powered copywriting agent specialized in generating high-conversion e-commerce content and VIP promotional materials.

A specialized AI copywriting tool designed to generate high-quality, scenario-based marketing content for e-commerce applications.

A technical blueprint detailing the constraints and workarounds for building iOS custom keyboard extensions, specifically for audio and AI features.

A Python-powered utility for generating and decoding NEAR Protocol QR codes for addresses and payment requests.








































