원클릭으로
homeassistant-energy-management
Guidance for using correct energy and power metrics in Home Assistant energy features
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Guidance for using correct energy and power metrics in Home Assistant energy features
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
How to create, update, and manage Changesets for release preparation in this repository
High-level Home Assistant integration best practices, quality scale cues, and testing/CI expectations for custom components
Patterns for Home Assistant config flows, discovery handlers, options flows, and reauth for custom components
Project-specific patterns for the Marstek integration (config flow, coordinator, scanner, entities, translations)
Practical test/CI playbook for Home Assistant custom components (config flow, coordinator, entities, diagnostics)
Repo-specific guidance for maintaining the Marstek integration (UDP Open API, polling, discovery/scanner) in a Home Assistant-friendly way
| name | homeassistant-energy-management |
| description | Guidance for using correct energy and power metrics in Home Assistant energy features |
This skill helps you choose and expose the correct metrics for Home Assistant energy features (Energy Dashboard, grid, and individual devices) to avoid incorrect graphs or totals.
total_increasing and device_class energy for kWh totals.measurement and device_class power for W values.| Concept | Correct Metric | Unit | Notes |
|---|---|---|---|
| Grid import | Total energy imported | kWh | Separate from export; total_increasing |
| Grid export | Total energy exported | kWh | Separate from import; total_increasing |
| Solar/production | Total energy produced | kWh | Must be total_increasing |
| Home consumption | Total energy consumed | kWh | Prefer derived if not provided |
| Instant grid power | Power at grid | W | Positive/negative must be consistent |
device_class=energy, state_class=total_increasing, native_unit_of_measurement=kWh.device_class=power, state_class=measurement, native_unit_of_measurement=W.