Skip to main content
The Daylight Calendar Card can pull current conditions and a daily forecast from any Home Assistant weather.* entity and display them alongside your events. Current conditions and today’s temperature appear in the card header, and per-day forecast icons appear in Month day cells and in the Agenda view.

Weather Forecast

header_weather_sensor
string
The entity ID of a Home Assistant weather.* entity. When set, the card:
  • Reads current conditions (state and temperature) directly from the entity for the header summary.
  • Subscribes to daily forecasts through Home Assistant’s live forecast API and renders an MDI weather icon plus high/low temperatures for each day.
Examples: weather.home, weather.openweathermap, weather.met_no.

Requirements

To display weather data you need:
  1. A weather integration installed and configured in Home Assistant — for example, Met.no, OpenWeatherMap, or AccuWeather.
  2. The weather.* entity must support the daily forecast type. Home Assistant exposes this as the FORECAST_DAILY feature on the entity. Most modern HA weather integrations support daily forecasts out of the box, but a few (especially radar-only or current-conditions-only integrations) do not.

Example

type: custom:daylight-calendar-card
title: Family Calendar
entities:
  - calendar.family
header_weather_sensor: weather.home
Popular weather integrations known to provide daily forecasts: Met.no (free, no sign-up), OpenWeatherMap, AccuWeather, Pirate Weather, and the built-in HA weather platform.
Weather icons in the card are rendered using MDI (Material Design Icons), not emoji. They scale crisply at any display size and automatically respect your card’s light or dark color scheme without any extra configuration.

Troubleshooting

Current conditions show but day-cell forecasts are empty. This usually means the weather.* entity does not advertise daily-forecast support. Verify by calling the weather.get_forecasts service in Home Assistant Developer Tools with type: daily. If the response is empty or errors out, switch to a weather integration that supports daily forecasts (Met.no is a good free option).
Forecasts stop updating after a while. The card maintains a live subscription to the weather entity’s forecast stream. If your weather integration is rate-limited or disconnected, forecasts may go stale. Reload the dashboard tab to re-establish the subscription, and check the integration’s status page in Home Assistant.

Live Time Display

In addition to weather, you can display a real-time clock in the card header by pointing the card at a Home Assistant time sensor.
header_time_sensor
string
The entity ID of a Home Assistant sensor that provides the current time as its state. The most common choice is sensor.time, which is provided by the Time & Date integration. When set, the current time is shown in the card header and updates automatically each minute.

Setting Up sensor.time

If you have not already added the Time & Date integration, enable sensor.time by adding the following to your configuration.yaml:
sensor:
  - platform: time_date
    display_options:
      - time
Then restart Home Assistant and use the sensor in the card:
type: custom:daylight-calendar-card
title: Family Calendar
entities:
  - calendar.family
header_time_sensor: sensor.time
header_weather_sensor: weather.home

Combined Example

The configuration below shows a card that displays both a live clock and a daily weather forecast in the header:
type: custom:daylight-calendar-card
title: Family Calendar
entities:
  - calendar.family
  - calendar.work
header_weather_sensor: weather.home
header_time_sensor: sensor.time
default_view: month
color_scheme: auto