スキル一覧に戻る
racurry

home-assistant

by racurry

Claude code marketplace

0🍴 0📅 2025年12月27日
GitHubで見るManusで実行

SKILL.md


name: home-assistant description: Guidance for Home Assistant configurations. Use when writing automations, dashboards, or service calls for HA.

Home Assistant Skill

Fetch official docs for current syntax - HA evolves rapidly:

Quality Checklist

  • Use modern service syntax: target: + data:, not entity_id: at root
  • Automations have unique id and explicit mode
  • Secrets via !secret, never hardcoded
  • Templates tested in Developer Tools → Template
  • Check entity availability for unreliable devices

Common Pitfalls

Legacy Syntax

Claude may generate deprecated patterns. Use modern syntax:

# Wrong: deprecated
service: homeassistant.turn_on
entity_id: light.porch

# Right: modern
service: light.turn_on
target:
  entity_id: light.porch

Automations need id and mode:

automation:
  - id: porch_light_sunset
    alias: "Porch light at sunset"
    mode: single  # or restart, queued, parallel
    trigger:
      - platform: sun
        event: sunset
    action:
      - service: light.turn_on
        target:
          entity_id: light.porch

Missing Availability Checks

Unreliable devices need guards:

action:
  - choose:
      - conditions:
          - condition: template
            value_template: >
              {{ states('light.unreliable_bulb') not in ['unavailable', 'unknown'] }}
        sequence:
          - service: light.turn_on
            target:
              entity_id: light.unreliable_bulb

Trigger Spam

State triggers fire on every change. Use thresholds or debounce:

# Threshold: only fires when crossing
trigger:
  - platform: numeric_state
    entity_id: sensor.temperature
    above: 75

# Debounce: must stay in state
trigger:
  - platform: state
    entity_id: sensor.temperature
    for:
      minutes: 5

Hardcoded Values

Use templates for dynamic content:

# Bad
message: "Front door opened"

# Good
message: "Front door opened at {{ now().strftime('%I:%M %p') }}"

スコア

総合スコア

50/100

リポジトリの品質指標に基づく評価

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

0/10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

レビュー

💬

レビュー機能は近日公開予定です