ha-energy

ha-energy is a skill for Claude Code from nodnarbnitram/claude-code-extensions. It costs 66 tokens per session (3,438 once invoked), scanned A, original, MIT.

A Home Assistant skill for setting up energy monitoring, including dashboards, solar production, grid use, household consumption, and device tracking. Home Assistant is software for managing and monitoring smart-home devices.

In plain words
What is it for?
Creating energy sensors, utility meters, solar and grid tracking, battery-related monitoring, and Home Assistant energy dashboards.
Why use it?
It helps configure energy sensors and meters with the settings needed for reliable statistics and dashboards. It also addresses common mismatches between consumption, solar, battery, and grid data.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Good fit Creating energy sensors, utility meters, solar and grid tracking, battery-related monitoring, and Home Assistant energy dashboards.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/nodnarbnitram/claude-code-extensions/ha-energy
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add nodnarbnitram/claude-code-extensions --skill ha-energy
Clone the repo
git clone --depth 1 https://github.com/nodnarbnitram/claude-code-extensions

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for ha-energy

README.md
[![agentmods](https://agentmods.dev/badge/skills/nodnarbnitram/claude-code-extensions/ha-energy/github.svg)](https://agentmods.dev/skills/nodnarbnitram/claude-code-extensions/ha-energy)
Your own site
<a href="https://agentmods.dev/skills/nodnarbnitram/claude-code-extensions/ha-energy"><img src="https://agentmods.dev/badge/skills/nodnarbnitram/claude-code-extensions/ha-energy/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for ha-energy

Your own site · 80×15
<a href="https://agentmods.dev/skills/nodnarbnitram/claude-code-extensions/ha-energy"><img src="https://agentmods.dev/badge/skills/nodnarbnitram/claude-code-extensions/ha-energy.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 66 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,438 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00066 $0.03438
Opus 5.5 $0.00026 $0.01375
Sonnet 5.5 $0.00013 $0.00688
Haiku 4.5 $0.00007 $0.00344

Measured 3mo ago against content hash 99681520f8c7, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

ha-energy scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/skills/ha-energy/SKILL.md · 451 lines

How it starts

The opening of the file, as written. The whole thing — 451 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Home Assistant Energy Skill

Configure Home Assistant energy monitoring with dashboards, solar, grid, and device tracking.

Before You Start

This skill prevents 8 common errors and saves ~45% tokens.

Metric Without Skill With Skill
Setup Time 45+ min 15 min
Common Errors 8 0
Token Usage ~10000 ~5500

Known Issues This Skill Prevents

  1. Incorrect state_class values (must be total, total_increasing, or measurement)
  2. Missing device_class: energy on energy sensors
  3. Wrong state_class for utility_meter entities (must be total_increasing)
  4. Using unit_of_measurement: kWh without state_class (breaks statistics)
  5. Forgetting to enable statistic collection in configuration.yaml
  6. Configuring solar sensors without battery tracking for self-consumption
  7. Grid monitoring with mismatched sensor pairs (consumption vs return)
  8. Utility meter cycle settings that don't align with billing periods

Quick Start

Step 1: Configure Energy Sensors

# configuration.yaml
template:
  - sensor:
      - name: "Total Energy Consumed"
        unique_id: total_energy_consumed
        unit_of_measurement: kWh
        device_class: energy
        state_class: total_increasing
        state: "{{ (states('sensor.energy_meter') | float(0)) }}"

      - name: "Solar Production"
        unique_id: solar_production
        unit_of_measurement: kWh
        device_class: energy
        state_class: total_increasing
        state: "{{ (states('sensor.solar_meter') | float(0)) }}"

Why this matters: Proper state_class enables Home Assistant to automatically create statistics and energy dashboard integration. Without it, your sensors won't appear in the energy dashboard.

Step 2: Set Up Utility Meter for Billing Cycles

# configuration.yaml
utility_meter:
  daily_energy:
    source: sensor.total_energy_consumed
    cycle: daily
    offset: [hours: 0]

  monthly_energy:
    source: sensor.total_energy_consumed
    cycle: monthly
    offset: [days: 0]

  daily_solar:
    source: sensor.solar_production
    cycle: daily
    offset: [hours: 0]

Read the full file on GitHub · 451 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3mo ago First seen · 451 lines · 66 tokens per session scan A 99681520f8c7

Subscribe to this mod's changes

ha-energy is a skill published in the GitHub repository nodnarbnitram/claude-code-extensions (19 stars, last pushed 7mo ago), licensed MIT. It adds 66 tokens to every session and 3,438 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

ha-energy compared with skills from other repositories

ha-energy next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
ha-energynodnarbnitram/claude-code-extensionsSkill197mo agoMITA66Claude Code
gke-compute-classesgoogle/skillsSkill25kyesterdayApache-2.0A83Claude Code, Codex
jetson-diagnosticNVIDIA/skillsSkill4.3ktodayApache-2.0A30Claude Code, Codex
holoscan-install-wheelNVIDIA/skillsSkill4.3ktodayApache-2.0A34Claude Code, Codex
offensive-z-waveSnailSploit/Claude-RedSkill12k15d agoMITA113Claude Code, Codex
hsb-flashNVIDIA/skillsSkill4.3ktodayApache-2.0B94Claude Code
jetson-validate-imageNVIDIA/skillsSkill4.3ktodayApache-2.0B50Claude Code, Codex