Elements¶
Elements are the building blocks of your HAEO energy network. Each element represents a physical device or logical component in your energy system.
Elements and devices¶
When you configure an element, HAEO may create multiple devices in Home Assistant. Elements can create one or more devices depending on their configuration. Each device has its own set of sensors showing optimization results.
This composition allows HAEO to represent complex physical systems with multiple operational modes while keeping configuration simple. See individual element pages for which devices and sensors each element creates.
Elements vs Home Assistant Entities
In HAEO documentation:
- Element = A component you configure (battery, grid, solar, etc.)
- Device = A Home Assistant device created by an element (may be one or more per element)
- Sensor = A Home Assistant sensor entity on a device
See individual element pages for which devices and sensors each element creates.
For the mathematical details of how elements are modeled, see the Modeling Documentation.
How elements work together¶
Elements work together once you connect them to match your real-world wiring. HAEO balances available energy, expected consumption, and any limits you set so the total system stays within bounds. In a typical home system, solar may feed a common junction, the grid can import or export, and a battery shifts energy between time periods.
Example layout:
graph TD
Solar[Solar] --> Net[Junction]
Grid[Grid] <--> Net
Net --> Battery[Battery]
Battery --> Load[Load]
This layout lets HAEO decide when to store solar, rely on the grid, or draw from a battery while keeping every connection within the limits you configured. See the modeling documentation for the underlying mathematics.
Configuration approach¶
When configuring elements:
- Start simple: Begin with just a grid and one other element
- Add gradually: Introduce complexity one element at a time
- Verify each step: Check that optimization produces reasonable results
- Use realistic values: Base constraints on actual device specifications
Pricing power flows¶
Power policies price energy by where it comes from and where it goes, for example cheap solar to your loads but paid solar to export. See the power policies walkthrough for how to set them up.
Raw model elements¶
The hub's Expose raw model elements setting adds lower-level element types to the list when you add an element. They are low-level building blocks you connect manually, for deliberately building the optimization model yourself. Most users should leave this setting off and use the standard elements, which connect themselves. Each element's page says whether it needs the setting.
See the configuration guide for details on enabling the setting.
Next steps¶
Explore detailed configuration for each element type:
-
Battery configuration
Energy storage with SOC tracking and efficiency modeling.
-
Deferrable load configuration
Scheduled loads that must absorb set energy within calendar windows.
-
EV configuration
Electric vehicle with calendar-driven trip planning and V2G.
-
Grid configuration
Import/export with dynamic or fixed pricing.
-
Solar configuration
Solar generation with curtailment options.
-
Load configuration
Power consumption with constant or forecast-based patterns.
-
Inverter configuration
Conversion between a DC bus for batteries and solar and your AC network.
-
Buffer configuration
Energy kept in your batteries for a grid outage, or empty space for the generation that is coming.
-
Junction configuration
Points where connections meet and power balances.
-
Node configuration
Points that produce or consume unlimited power.
-
Battery section configuration
A single battery range you configure and connect yourself.
-
Connection configuration
Explicit power flow paths between elements.
-
Power policies
Price energy by where it comes from and where it goes.