Generic Energy Control Dashboard with Circuit Monitoring, Cost Tracking and Load Warnings

Hi everyone :waving_hand:

I’ve created a reusable energy monitoring and control dashboard for Home Assistant, and I’m sharing it publicly for testing, feedback, and contributions.

GitHub:

The goal is to provide a clear overview of whole-building and individual-circuit electricity use without tying the dashboard to one specific meter brand or integration.

Each circuit is configured with explicit Home Assistant entities, so sensors from different manufacturers and integrations can be combined in the same interface.

Main features

The dashboard can display:

  • Live power consumption in watts
  • Accumulated energy in kWh
  • Current in amperes
  • Voltage
  • Hourly, monthly, and yearly energy use
  • Hourly, monthly, and yearly electricity cost
  • Current electricity price
  • Configured circuit limits
  • Whole-home load compared with the main supply limit
  • High-load warning styling
  • Optional meter refresh buttons
  • Sensor availability and connection status
  • Sorting by load or circuit name

Only a power entity is required for a basic circuit card.

Energy, current, voltage, price, and refresh entities are optional, depending on which features are needed.

Hardware independent

The project is not tied to one particular power sensor.

It can be adapted to sensors from:

  • Shelly
  • ESPHome
  • Zigbee
  • Z-Wave
  • Tuya
  • DIN-rail energy meters
  • Smart plugs
  • Modbus meters
  • MQTT devices
  • Mixed installations using several different integrations

Each circuit is defined separately:

{
  name: "Kitchen appliances",
  icon: "🍳",
  limitA: 16,
  power: "sensor.kitchen_power",
  energy: "sensor.kitchen_energy",
  current: "sensor.kitchen_current",
  voltage: "sensor.kitchen_voltage",
  refresh: null
}

This avoids relying on device-specific naming patterns such as a base entity followed by _power, _energy, or _current.

Whole-home summary

The dashboard includes summary cards for:

  • Combined live wattage
  • Energy used during the current hour
  • Monthly energy use
  • Yearly energy use
  • Current-hour electricity cost
  • Monthly cost
  • Yearly cost
  • Average measured voltage
  • Current electricity price

A load bar compares the measured whole-home current with the configured service limit.

When no whole-home current sensor is available, the dashboard can estimate the total by adding the configured circuit-current sensors.

Circuit overview

Each circuit receives its own card showing the available measurements and its configured current limit.

The cards make it easy to see:

  • Which loads are currently active
  • Which circuit is using the most power
  • How close a circuit is to its configured load limit
  • Whether a meter or sensor is unavailable
  • How much accumulated energy the circuit has recorded

The interface can be sorted either by live load or alphabetically.

Responsive dashboard

The included standalone HTML dashboard works on both desktop and mobile.

The responsive layout:

  • Changes to one column on narrow screens
  • Keeps controls inside their cards
  • Wraps long values safely
  • Prevents entity names from overflowing
  • Keeps circuit measurements readable on phones and tablets

A populated demo is included so users can inspect the interface before connecting it to their own Home Assistant installation.

Easy adoption with AI or manual setup

To adapt the project, users can open:

Home Assistant → Developer Tools → States

Then collect the exact entity IDs for the measurements they have available:

  • Power sensors
  • Energy sensors
  • Current sensors
  • Voltage sensors
  • Electricity-price sensors
  • Optional whole-home current sensor
  • Optional refresh buttons

The repository includes an entity worksheet and a prepared AI customization prompt.

Users can fill in the worksheet, attach the example files to an AI assistant, and ask it to generate a customized dashboard and relevant YAML using only the supplied entities.

There is also a manual setup guide for users who prefer to configure everything themselves.

Possible residential uses

The project can be useful for:

  • Finding unexpected standby consumption
  • Comparing large appliances
  • Monitoring heating loads
  • Tracking washing machines and tumble dryers
  • Watching kitchen appliance demand
  • Estimating the cost of individual circuits
  • Identifying simultaneous high-power loads
  • Monitoring voltage and sensor availability

Possible commercial use

The same structure could be adapted to buildings with many independently monitored circuits or areas.

Possible examples include:

  • Hotels
  • Apartment buildings
  • Offices
  • Shops and shopping centres
  • Schools and universities
  • Sports halls and stadiums
  • Warehouses
  • Workshops
  • Industrial facilities

For example, a hotel could group circuits by floor, guest-room section, kitchen, laundry, ventilation, heating, and common areas.

A stadium could group them by lighting zones, kitchens, hospitality areas, technical rooms, heating, ventilation, media systems, and outdoor installations.

Home Assistant could then provide an approachable supervisory dashboard for operators, maintenance personnel, or building owners.

A commercial installation would naturally require proper electrical engineering, certified meters, access control, redundancy, alarm handling, cybersecurity, and compliance with local regulations.

This dashboard must not replace breakers, fuses, certified protection devices, or a professional building-management system where one is legally or technically required.

Future energy control

The current project mainly focuses on monitoring and visualization, but the same information can support future control features such as:

  • Peak-load limiting
  • Automatic load shedding
  • Electricity-price-aware operation
  • Scheduled appliance operation
  • EV charging management
  • Heating and hot-water prioritization
  • Solar-surplus control
  • Battery charging and discharging
  • Notifications when circuits exceed expected consumption
  • Detection of appliances left running
  • Demand-response operation

Any automatic switching should use suitable contactors, relays, interlocks, and safety logic rather than relying only on the dashboard.

To do: AI control

A future goal is to integrate AI-based control and analysis through voice and text commands.

Examples:

  • “Which circuit is using the most electricity?”
  • “How much has the kitchen cost this month?”
  • “Why is the total load unusually high?”
  • “Notify me if the main load exceeds 50 amperes”
  • “Reduce non-essential loads during expensive hours”
  • “Show me all unavailable energy sensors”
  • “Which appliances were active overnight?”
  • “Turn off approved non-essential loads if the building approaches its supply limit”

The AI should interpret requests, summarize measurements, and explain system status, while Home Assistant automations remain responsible for permissions, safety rules, and actual switching.

Roadmap and ideas

Some features I would like to explore:

  • Native three-phase support
  • Per-phase load visualization
  • Historical charts
  • Daily and weekly cost comparisons
  • Peak-demand tracking
  • Solar and battery integration
  • EV charger integration
  • Automatic anomaly detection
  • Configurable warning thresholds
  • Notifications and alarm history
  • Peak-load limiting
  • Electricity-price-aware load control
  • Easier dashboard generation
  • Blueprint or package-based installation
  • HACS-compatible packaging

Feedback wanted

I would especially appreciate feedback on:

  • Support for different meter integrations
  • Three-phase calculations
  • Dashboard usability
  • Cost calculations
  • Commercial and large-building use cases
  • Peak-load management
  • Solar, battery, and EV integration
  • Better ways to package the configuration
  • Safe automatic load-control strategies

Issues, suggestions, pull requests, testing, and screenshots from other installations are very welcome.

Thanks for taking a look :high_voltage:

This seems interesting; I may give it a try.