ワンクリックで
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.