Carte Solaire — Home Assistant card
Solar, battery, grid and home energy flows in one animated Home Assistant card, designed mobile-first.
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
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
| Option | Type | Default | Description |
|---|---|---|---|
title | Title shown at the top. | ||
details | tabs | tabs, all (all sections stacked) or none (diagram only). | |
default_tab | 1ᵉʳ dispo | solar, battery, home, grid or inverter. | |
autonomy | true | Self-sufficiency indicator (1 − import/consumption). Accepts false or an entity (%). | |
kw_threshold | 1000 | Threshold (W) above which the value is shown in kW. | |
decimals | 1 | Number of decimals in kW. | |
min_flow | 10 | Below this power (W), the flow is not animated. | |
max_flow | 5000 | Power (W) that gives the maximum animation speed. | |
depth | true | Depth effect: gradients, drop and inner shadows, inset tabs, raised tiles. false for a flat look. | |
ring_style | arc | Circular gauges: arc (continuous arc) or leds (36 rectangular LED segments, lit with a glow and bright core, VU-meter style). | |
bar_style | bar | Linear 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_segments | 36 | Number of LEDs per ring with ring_style: leds (12 to 72). | |
bar_segments | 20 | Number 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. | |
severity | voir ci-dessous | Green / orange / red color thresholds. | |
animation | true | false disables the animated pulses: active lines stay colored. Animation is also turned off when the system asks for reduced motion. | |
colors | Overrides the colors: solar, battery_in, battery_out, grid_in, grid_out, home, inverter. | ||
tap_action, hold_action | Default actions of all elements, for tap and hold (see Actions). |
Screenshots