Skip to content

HAEO forecast card

The HAEO forecast card is a custom Lovelace card that renders HAEO forecast attributes as a fast interactive SVG chart. It is designed for fixed-horizon data and uses a MobX state model so hover and timeline updates stay responsive.

What the card shows

The card reads forecast attributes from HAEO output sensors. It automatically groups series into lanes (power, price, soc, shadow, other). Power and price series are drawn with step-post semantics. State-of-charge series are drawn as continuous lines. A buffer is drawn as a dotted line in the state-of-charge lane. A line your batteries' combined charge should stay above, such as a reserve, is red, and one it should stay below, such as headroom, is purple. A buffer held by a single battery is listed under that battery in the legend.

An input that reads its windows from a calendar is drawn as a tinted band across the chart wherever a window is open, with a strip in the element's color along the top. The tooltip lists the windows open at the hovered time.

Times, dates and numbers follow the localization settings in your Home Assistant profile. The time format sets the clock on the time axis and in the tooltip, the date format orders the tooltip date, the number format sets the decimal and thousands separators, and the time zone setting chooses between your own time zone and the server's.

Prerequisites

You must already have the HAEO integration installed and running. At least one HAEO output sensor must expose a forecast attribute.

Card resources

There is nothing to add by hand. The integration serves its cards and registers them with the Home Assistant frontend when Home Assistant starts.

If you added a Lovelace resource for /haeo-static/haeo-forecast-card.min.js under an older release, remove it from Settings -> Dashboards -> Resources. That URL no longer serves the card, and a cached copy loaded beside the current card can stop the card from appearing.

Basic card config

type: custom:haeo-forecast-card
title: HAEO forecast
hub_entry_id: <your_haeo_hub_config_entry_id>

Use the visual card editor to select a HAEO hub. Forecast entities for that hub are discovered automatically at runtime.

Configuration options

  • type: Must be custom:haeo-forecast-card.
  • title: Optional card title.
  • hub_entry_id: Required HAEO hub config entry ID (chosen via the visual editor).
  • entities: Optional list of forecast sensor entities. When omitted, the card discovers forecast sensors for the selected hub.
  • height: Optional chart height in pixels.
  • power_display_mode: opposed or overlay. Default is opposed.
  • default_horizon: Initial horizon slider value. One of full, 15m, 30m, 1h, 2h, 4h, 8h, 12h, 1d, 2d, or 3d. Default is full. Shorter values are used automatically when the forecast horizon is shorter than the configured value.
  • tooltip_visible: Whether the information panel below the chart is shown initially. Default is true.

Interaction features

  • Hover crosshair with nearest-point value snapping.
  • Tooltip with per-series values and per-lane totals.
  • Legend hover highlighting.
  • Automatic scaling based on card dimensions.
  • Chart updates when forecast data changes from Home Assistant.

Network topology card

The integration also registers custom:haeo-topology-card as a separate frontend resource. It reads the topology attribute from a HAEO optimization status sensor and renders the LP network as an interactive SVG graph.

Basic topology card config

type: custom:haeo-topology-card
title: HAEO network topology
hub_entry_id: <your_haeo_hub_config_entry_id>

Use the visual card editor to select a HAEO hub. The card resolves the hub's optimization status sensor at runtime.

Batteries that hold a reserve buffer show a 🛡 marker, and those that keep a headroom buffer show ⤒. Hover over an element to see which buffers it holds or is counted in. A connection between two parts of one element is drawn inside that element's box.

Topology card options

  • type: Must be custom:haeo-topology-card.
  • title: Optional card title.
  • hub_entry_id: Required HAEO hub config entry ID (chosen via the visual editor).

Troubleshooting

If the card shows an empty state:

  • Configure a HAEO hub: Open the card editor and select a hub.
  • The selected HAEO hub no longer exists: Your hub was removed or recreated. Open the card editor and choose the current hub again.
  • No forecast data yet / No optimization status sensor: HAEO is still starting up or has not finished its first optimization run.

For forecast data issues, also confirm:

  • Each forecast entity has a populated forecast attribute.
  • No Lovelace resource for /haeo-static/haeo-forecast-card.min.js is left over from an older release.

Next steps