Home Assistant projects
All projects

Tempo Card

Lovelace card · Home & energy
v1.0.0 · Nov 13, 2026 HA 2024.8.0+ Marketplace

The EDF Tempo colour of today and tomorrow, the current period and the cost of the day.

Cards for the French EDF Tempo tariff: blue, white or red for today and tomorrow, the days left of each colour in the season, the off-peak or peak period with its countdown, and the estimated cost of the day and the month from your meter indexes.

Highlights

  • Colour of today and tomorrow, Tempo days running from 06:00 to 06:00
  • Animated scene: a pylon feeding a house under the sky of the period
  • Current off-peak or peak period, with a countdown and the price per kWh
  • Days left of each colour in the season
  • Estimated cost of the day and the month, per colour and period
  • RTE Tempo, Tarif EDF, EDF Tempo, Linky TIC or ZLinky entities found automatically
  • Mini card with a detail button showing the full card

Works with

Cards

tempo-cardtempo-mini-card
type: custom:tempo-card

Install

  1. 1Open the repository in the Marketplace with the Add to Marketplace button above, or addgithub.com/juju35/ha-tempo-card as a custom repository (category Dashboard).
  2. 2Download it from the Marketplace.
  3. 3Reload the browser and add the card from the dashboard editor.

Documentation

From the README

Features

Features

  • Two cards: a full Tempo Card (custom:tempo-card) and a compact Tempo Mini Card (custom:tempo-mini-card)
  • Color of today and tomorrow, with the date of each Tempo day (a Tempo day runs from 06:00 to 06:00); tomorrow shows Not yet known until RTE publishes it
  • Animated scene: a pylon feeds a house under the sky of the period, the current flows faster as the day gets dearer, and a warning flashes on a red day at peak hours (see Animations)
  • Current period (off-peak or peak hours) with its hours, a progress bar and a countdown to the next change, the current price per kWh and the price of the next period (with tomorrow's color when the next period starts the next Tempo day)
  • Days left of each color in the season (1 September to 31 August: 22 red, 43 white, the rest blue), with bars
  • Estimated cost of today and of the month, per color and period, from the long-term statistics of the six Tempo meter indexes and a price grid (EDF regulated prices by default, numbers or price entities), with an optional monthly subscription
  • Header icon and status chip in the color of the day; the chip tells the current period
  • Collapsible sections (period, season, cost): click a section title to fold or unfold it, a click elsewhere folds them back
  • Detail button on the mini card (top right): it switches the mini card to the full card's content and back; a click anywhere outside the card brings the compact view back
  • Click any value to open its Home Assistant history (more-info dialog)
  • Visual editor in the dashboard UI for both cards (no YAML needed)
  • Light and dark mode, English, French, German, Spanish, Serbian (Cyrillic and Latin), Italian, Dutch, European Portuguese, Polish, Romanian, Danish, Swedish, Bulgarian, Russian, Ukrainian, Hungarian, Slovak, Czech, Slovenian, Latvian and Greek
  • Single file, no external dependency

Supported integrations

Supported integrations

Integration What the cards read
RTE Tempo (custom, rtetempo) Color of today and tomorrow, days left of each color, off-peak flag and next off-peak change
Tarif EDF (custom, tarif_edf, Tempo contract) Color of today and tomorrow (its calendar-day sensors, read as Tempo days: before 06:00, yesterday's and today's), Tempo prices of the six periods (used as the price grid)
EDF Tempo (custom, tempo) Color of today and tomorrow and current period (attributes of its sensor)
Linky TIC (custom, linkytic) Historic mode: the six Tempo indexes (BBRHCJB … BBRHPJR), current period (PTEC) and tomorrow's color (DEMAIN); standard mode: indexes EASF01-EASF06, the tariff label (LTARF) and the colors of today and tomorrow from the status register (STGE)
ZLinky_TIC in Zigbee2MQTT (mqtt) Indexes current_tier1-6_summ_delivered, current period (active_register_tier_delivered / current_price) and tomorrow's color (tomorrow_color)
Any other entity Set today_entity, tomorrow_entity, offpeak_entity, indexes, prices or days_left (templates, utility meters, other integrations…)

When several integrations provide the same information, the Tempo services come first (RTE Tempo, Tarif EDF, EDF Tempo), then the meter. The cost needs meter indexes recorded in the long-term statistics (energy sensors with a state_class, as all of the above are). Details in How it works.

Prerequisites

Prerequisites

Home Assistant 2024.8 or later, with at least one of the supported integrations configured, or entities of your own giving the Tempo colors.

Configuration

Configuration

Card types#

Card Type
Tempo Card custom:tempo-card
Tempo Mini Card custom:tempo-mini-card

Visual editor#

Edit a dashboard, click Add card and search for Tempo Card or Tempo Mini Card. The entities found are used as they are; pick others if you wish, set the off-peak hours, the sections to display, the meter indexes, the price grid, the subscription and the language. The preview updates live, and options left at their default are kept out of the generated YAML.

Minimal#

type: custom:tempo-card
type: custom:tempo-mini-card

Full options#

type: custom:tempo-card
title: Tempo
today_entity: sensor.rte_tempo_couleur_actuelle
tomorrow_entity: sensor.rte_tempo_prochaine_couleur
offpeak_entity: binary_sensor.rte_tempo_heures_creuses
offpeak_hours: "22:00-06:00"
show_period: true
show_season: true
show_cost: true
collapsed:
  - cost
days_left:
  blue: sensor.rte_tempo_cycle_jours_restants_bleu
  white: sensor.rte_tempo_cycle_jours_restants_blanc
  red: sensor.rte_tempo_cycle_jours_restants_rouge
indexes:
  blue_hc: sensor.linky_index_tempo_blue_days_off_peak_hours
  blue_hp: sensor.linky_index_tempo_blue_days_peak_hours
  white_hc: sensor.linky_index_tempo_white_days_off_peak_hours
  white_hp: sensor.linky_index_tempo_white_days_peak_hours
  red_hc: sensor.linky_index_tempo_red_days_off_peak_hours
  red_hp: sensor.linky_index_tempo_red_days_peak_hours
prices:
  blue_hc: 0.1356
  blue_hp: 0.1654
  white_hc: 0.1536
  white_hp: 0.1921
  red_hc: 0.1615
  red_hp: sensor.tarif_rouge_tempo_heures_pleines_ttc
subscription: 15.80
currency: EUR
language: fr
type: custom:tempo-mini-card
title: Tempo
zoom: true
language: fr

Options reference#

Option Card Default Description
title both EDF Tempo (translated) Card title
show_title both true Show the title in the header
show_subtitle both true Show the subtitle (current price) under the title
today_entity both Discovered Entity giving today's color: any state or spelling the supported integrations use (Bleu, BLANC, red, HPJR, HC BLEU…)
tomorrow_entity both Discovered Entity giving tomorrow's color (BLEU/BLAN/ROUG, ---- or inconnu while unknown)
offpeak_entity both Discovered Binary sensor on during off-peak hours, or an entity giving the tariff period (HC/HP, HCJB, HP ROUGE…)
offpeak_hours both 22:00-06:00 Off-peak hours, one range or several ("12:30-14:30, 23:00-07:00" or a list), for the period bounds and the countdown (and the period itself without offpeak_entity)
zoom mini true Detail button at the top right of the mini card: it shows the full card's content (with the same options) and switches back; a click outside the card also brings the compact view back. false removes the button
show_period full true Current period: hours, progress, countdown, current and next price
show_season full true Days left of each color in the season (needs days left entities, RTE Tempo)
show_cost full true Estimated cost of today and of the month (needs meter indexes)
collapsed full [] Sections folded by default, among period, season and cost
days_left both Discovered Entities of the days left: blue, white, red
indexes both Discovered Meter indexes (kWh, Wh or MWh, recorded in the statistics): blue_hc, blue_hp, white_hc, white_hp, red_hc, red_hp
prices both EDF regulated prices Price per kWh of each period, same keys as indexes: a number or a price entity. Without it, Tarif EDF's prices when installed, otherwise the EDF regulated Tempo prices incl. VAT of 1 August 2026 (0.1356 / 0.1654 blue, 0.1536 / 0.1921 white, 0.1615 / 0.7295 red, off-peak / peak, CRE deliberation 2026-147); a price entity that is unavailable falls back to these
subscription both — Monthly subscription, added to the month's cost (and its daily share to today's)
currency both EUR Currency of the prices
language both Auto Force language: fr, en, de, es, sr, sr-Latn, it, nl, pt, pl, ro, da, sv, bg, ru, uk, hu, sk, cs, sl, lv or el (auto-detects from HA settings)

Note

Check the default prices against your bill: they change a few times a year, and other suppliers sell Tempo-like offers at other prices.

How it works

How it works

The cards read the Home Assistant entity registry: every entity of a supported integration is recognized by its integration and its translation_key (Linky TIC), its entity id ending (Zigbee2MQTT) or its fixed name (RTE Tempo and Tarif EDF name their entities in French, without translation keys). Colors are read in every spelling these integrations use — Bleu, blanc, ROUGE, BLEU/BLAN/ROUG (DEMAIN), HCJB…HPJR (PTEC), HC BLEU (LTARF), Bleu HP, blue, 1-3 or the colored emoji — so an entity of your own (a template, say) works as long as its state is one of them.

Period and countdown#

The current period comes from offpeak_entity (or the integration's flag), otherwise from offpeak_hours. The bounds, the progress and the countdown come from offpeak_hours, in the time zone of Home Assistant; when the entity disagrees with them (other off-peak hours), the countdown follows the integration's own next change time if it has one (RTE Tempo), and is left out otherwise. The next period's price uses tomorrow's color when it starts with the next Tempo day (at 06:00).

Season#

A Tempo season runs from 1 September to 31 August with 22 red days (1 November to 31 March, weekdays), 43 white days and the rest blue (300, or 301 in a season with a 29 February). The days left come from RTE Tempo's Cycle Jours restants sensors (or days_left).

Cost estimation#

The energy of each index is read from the long-term statistics (recorder/statistics_during_period, daily change since the first day of the month), refreshed every five minutes: today's energy is the change since midnight, the month's the change since the first day. Each index is multiplied by the price of its color and period, and the monthly subscription (optional) is added to the month (its daily share to today). Index units in Wh or MWh are converted to kWh by Home Assistant. The result is an estimate: it uses the current prices for the whole month and leaves out taxes billed apart.

Support

Support

If you find this project useful, you can support its development:

Buy Me a Coffee

Changelog

CHANGELOG.md

1.0.0Nov 13, 2026Latest

Features

  • Tempo Card (custom:tempo-card): colors of today and tomorrow (animated), current off-peak / peak period with its hours, progress and countdown, current and next price per kWh, days left of each color in the season, and estimated cost of the day and of the month from the meter indexes and a configurable price grid (optional monthly subscription).
  • Tempo Mini Card (custom:tempo-mini-card): today and tomorrow as two colored pills and the current period, with a detail button that switches to the full card's content and back (a click elsewhere brings the compact view back).
  • Animated scene: a pylon feeds a house under the sky of the period (turning sun at peak hours, moon and twinkling stars off-peak), the current flows faster as the day gets dearer, a warning bolt flashes on a red day at peak hours; today's disc ripples (blue), shimmers (white) or pulses (red) and tomorrow's turns while its color is not published. Everything stops with prefers-reduced-motion.
  • Entities found automatically from the entity registry: RTE Tempo, Tarif EDF, EDF Tempo, Linky TIC and a ZLinky_TIC in Zigbee2MQTT; every entity can also be set in the options.
  • Estimated cost from the long-term statistics of the six Tempo indexes; default price grid of the EDF regulated Tempo prices of 1 August 2026, prices can be numbers or price entities.
  • Collapsible sections (period, season, cost) folding back on a click elsewhere, visual editor for both cards, light and dark themes.
  • 22 languages: English in the bundle, every other language in its own file loaded on demand.