Device layer elements¶
Device Layer elements are the user-configured components that represent physical devices in your energy system. Each Device Layer element composes one or more Model Layer elements to achieve its behavior.
Overview¶
Device Layer elements transform user configuration into Model Layer elements. Each element type composes one or more Model Layer elements to achieve its specific behavior. See individual element pages for composition details.
Composition pattern¶
Device Layer elements use an adapter pattern to transform user configuration into Model Layer elements:
Configuration → Model (model_elements): Transforms user configuration into Model Layer element specifications.
Called during network construction before optimization.
Model → Devices (outputs): Transforms optimization results into device-specific outputs with user-friendly names.
Called after optimization to populate sensors.
Implicit connections¶
Many Device Layer elements create implicit connections automatically as part of their model composition. These implicit connections simplify configuration—users specify their configuration needs, and the adapter handles connection creation with appropriate parameters. See individual element pages for details on which connections are created.
Sub-element naming¶
When adapters create multiple model elements or devices, they use a colon-separated naming convention:
- Main element:
{name}(e.g.,Battery) - Sub-elements:
{name}:{subname}(e.g.,Battery:connection,Battery:discharge)
This prevents naming collisions and groups related components visually in Home Assistant.
Next steps¶
-
Battery
Energy storage modeling with SOC regions.
-
Deferrable load
Calendar-scheduled energy requirements with priced shortfall.
-
EV
Trip-aware electric vehicle modeling with public charging.
-
Grid
Bidirectional utility connection with pricing.
-
Inverter
Bidirectional DC/AC power conversion with DC bus.
-
Solar
Solar generation with optional curtailment.
-
Load
Power consumption modeling.
-
Buffer
Energy or empty space held across batteries over a window of time.
-
Battery section
Direct access to model layer Battery element.
-
Junction
Electrical bus where connected power must balance.
-
Node
Point that can produce or consume unlimited power.
-
Connection
Explicit one-way power flow path between two elements.