Bỏ qua tới nội dung
TakoAPI
Quay lại kỹ năng

ha-integration-patterns

bởi usimic

Coding Agents & IDEs
826Lượt tải do clawskills.sh công bố
0Lượt xem
0 lượt thíchĐăng nhập để thích kỹ năng này
—Chưa có đánh giá
Đánh giá của bạn

Tóm tắt

Home Assistant custom integration patterns and architectural decisions.

Mô tả

Kỹ năng này làm gì

Reference patterns for building Home Assistant custom integrations and HACS components. Covers service response data, HTTP views, storage APIs, and integration architecture for HA 2023.7+.

Consolidates the specific API patterns and version-aware gotchas that aren't obvious from HA's scattered documentation, reducing trial-and-error when building integrations.

Khi nào nên dùng

  • Building a HACS custom integration from scratch
  • Adding service response data to an existing HA integration
  • Creating HTTP views to expose config data through the HA REST API
  • Migrating storage from internal underscore-prefixed APIs to public helpers
  • Setting up a config flow for a new custom component

Quy trình ví dụ

ĐẦU VÀO

User asks: how do I register a service that returns data in Home Assistant?

AGENT
  1. 1

    Identifies the HA version requirement (2023.7+) for service response support

  2. 2

    Shows the SupportsResponse.ONLY parameter in async_register call

  3. 3

    Provides the response handler function signature returning a dict

  4. 4

    Demonstrates the curl command with ?return_response flag to test it

ĐẦU RA

A working service registration pattern with response data support and a test command

Cài đặt

clawhub install usimic/ha-integration-patterns

Chạy lệnh CLI, hoặc dán prompt vào Claude Code, Cursor, Codex hay coding agent bạn đang dùng.

Liên kết