ha-energy

Configure Home Assistant energy monitoring with sensors, utility meters, solar, and grid tracking.

Updated Jun 11, 2026
One-click install
npx skills add https://github.com/brillianodhiya/VisionScript --skill ha-energy-brillianodhiya
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: ha-energy
Source: https://github.com/brillianodhiya/VisionScript/tree/main/.agents/skills/ha-energy
Command: npx skills add https://github.com/brillianodhiya/VisionScript --skill ha-energy-brillianodhiya

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) and assets (resource) components.

What problem does it solve? Setting up Home Assistant energy monitoring is error-prone: missing state_class values, misconfigured utility meters, and incorrect recorder settings cause blank energy dashboards and missing statistics. This Skill provides validated YAML patterns and troubleshooting guidance to configure energy sensors, billing-cycle meters, solar, and grid tracking correctly the first time. ## Core Features & Use Cases - Energy Sensor Configuration: Template sensors with proper device_class, state_class, and units so they appear in the energy dashboard and generate long-term statistics. - Utility Meter & Solar Setup: Daily/monthly/yearly utility meters with billing-cycle offsets, plus solar production, battery charge/discharge, and separate grid consumption/return sensors. - Use Case: You installed a smart meter and solar inverter and want the Home Assistant energy dashboard to show consumption, solar production, and self-consumption. Use this Skill to generate the correct template sensors, utility meters, and recorder configuration, then troubleshoot any missing statistics. ## Quick Start Ask the AI to configure Home Assistant energy sensors and utility meters for your grid consumption and solar production so they appear in the energy dashboard.

Frequently Asked Questions about ha-energy

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I configure energy sensors for the Home Assistant energy dashboard?▼

Create template sensors with device_class: energy, state_class: total_increasing, and unit_of_measurement: kWh. These attributes let Home Assistant generate statistics and list the sensors in the energy dashboard configuration.

How to set up a utility meter in Home Assistant for monthly billing?▼

Add a utility_meter entry in configuration.yaml with your energy sensor as the source, cycle set to monthly, and an offset aligned to your billing start day. The meter resets automatically at each cycle boundary.

Why does my Home Assistant energy dashboard show no data?▼

Missing or incorrect state_class on sensors is the most common cause; cumulative meters need total_increasing. Also verify the sensors are included in the recorder configuration and wait several minutes after restart for statistics to generate.

Can I convert a power sensor in watts to energy in kWh in Home Assistant?▼

Yes, use the Riemann sum integration with your power sensor as the source, unit_prefix: k, and unit_time: h. This integrates instantaneous power over time into an energy value suitable for the energy dashboard.

Why is solar self-consumption not tracking in Home Assistant?▼

Self-consumption requires separate battery charge and discharge sensors, each with device_class: energy and state_class: total_increasing. Then assign both sensors in the battery section of the energy dashboard configuration.

When should I not use this Home Assistant energy skill?▼

Avoid it for general automations, device pairing, Lovelace dashboard UI design, or non-energy sensor configuration. It focuses specifically on energy sensors, utility meters, statistics, and energy dashboard troubleshooting.