Français

Carte Solaire — Home Assistant card

Solar, battery, grid and home energy flows in one animated Home Assistant card, designed mobile-first.

Available on requestEnergyMinimum Home Assistant 2023.9.0

Available on request. This card is not published on HACS, but you can get it: write to me to ask for it. Request this card

Carte Solaire Home Assistant card screenshot (1/2)

Overview

Carte Solaire (Solar Card) shows the energy flows of an installation: solar panels, batteries, grid or generator, and home. The diagram stays compact on a phone; details are kept in tabs (Solar, Batteries, Home, Grid, Inverter).

Glowing pulses follow the lines, more numerous and faster as power rises. The card computes self-sufficiency, the share of each source, the estimated time to full battery or to minimum SOC, and supports one or two inverters.

Features

  • Mobile-first: compact diagram with details in tabs
  • Animated flows whose count, width and speed follow the power
  • One or two inverters, several strings, batteries and loads
  • Self-sufficiency, source breakdown, time to full battery or minimum SOC
  • Home Assistant Energy dashboard colors, light or dark theme
  • Configurable tap and hold actions, element by element
  • Visual editor; a single dependency-free JS file, animations paused off-screen

Configuration

type: custom:carte-solaire
solar:
  power: sensor.pv_power
batteries:
  - soc: sensor.battery_soc
    power: sensor.battery_power
    capacity: 10          # kWh, pour l'énergie stockée et l'heure de fin
grid:
  power: sensor.grid_power
home:
  power: sensor.load_power

Options

OptionTypeDefaultDescription
titleTitle shown at the top.
detailstabstabs, all (all sections stacked) or none (diagram only).
default_tab1ᵉʳ disposolar, battery, home, grid or inverter.
autonomytrueSelf-sufficiency indicator (1 − import/consumption). Accepts false or an entity (%).
kw_threshold1000Threshold (W) above which the value is shown in kW.
decimals1Number of decimals in kW.
min_flow10Below this power (W), the flow is not animated.
max_flow5000Power (W) that gives the maximum animation speed.
depthtrueDepth effect: gradients, drop and inner shadows, inset tabs, raised tiles. false for a flat look.
ring_stylearcCircular gauges: arc (continuous arc) or leds (36 rectangular LED segments, lit with a glow and bright core, VU-meter style).
bar_stylebarLinear gauges (strings, loads, inverter load, battery icons): bar (solid bar), glass (glass capsule with a reflection) or segments (LED segments; the inverter load gauge goes from green to red following severity.load).
ring_segments36Number of LEDs per ring with ring_style: leds (12 to 72).
bar_segments20Number of segments per bar with bar_style: segments (5 to 40). The inverter load gauge uses half (4 to 12); the battery icon keeps 5 cells.
severityvoir ci-dessousGreen / orange / red color thresholds.
animationtruefalse disables the animated pulses: active lines stay colored. Animation is also turned off when the system asks for reduced motion.
colorsOverrides the colors: solar, battery_in, battery_out, grid_in, grid_out, home, inverter.
tap_action, hold_actionDefault actions of all elements, for tap and hold (see Actions).

Screenshots

Carte Solaire Home Assistant card screenshot (2/2)

More cards