An iOS-inspired clock and weather card for Home Assistant dashboards, available through the Home Assistant Community Store.
Shown in the iOS Dark Mode Dark Green theme from lovelace-ios-themes by Bas Nijholt.
- A header you compose yourself - arrange the clock, date, current weather, any entity, icons and text in rows of segments.
- Hourly and daily forecasts - a horizontally scrolling strip and a list with temperature bars, each showing hours or days independently.
- Beautiful, animated weather icons - Meteocons in four styles:
line,fill,flatandmonochrome. Shout-out to the creator Bas! - Any forecast attribute - show wind speed, humidity, UV index or any other numeric attribute in the strip or as bars.
- Sunrise and sunset - marked in the hourly strip.
- Fully customizable - set your own color gradient for the forecast bars, pick icon styles and sizes per section, tune row heights, bar thickness, font sizes and alignment, choose date and time formats, and show or hide every section.
- Localized - Dozens of languages, locale-aware date, time and number formats, any time zone, and Celsius or Fahrenheit.
- Visual editor - set the card up in the dashboard UI, no YAML required.
The card is installed through HACS:
-
Make sure HACS is installed.
-
Open the card in HACS and install it:
Or search for Clock Weather Card in HACS. If the button shows "not found", enable the My Home Assistant integration.
-
Reload your browser. HACS registers the card as a dashboard resource automatically.
-
Add the card to your dashboard (see Configuration).
If you manage your dashboards in YAML mode, add the resource yourself in configuration.yaml:
lovelace: resources: - url: /hacsfiles/clock-weather-card/clock-weather-card.js type: module
Edit your dashboard, click Add card and pick Clock Weather Card. Every option below can be set in the dashboard's visual card editor: pick the weather entity, toggle and tune each section, build the header rows from segments and adjust the forecast list's color gradient. The editor only writes options that differ from their defaults, so the resulting YAML stays minimal. The code editor remains available for those who prefer YAML.
type: custom:clock-weather-card entity: weather.home
The animation at the top of this page shows this configuration, with a lighter precipitation color for its green theme:
type: custom:clock-weather-card entity: weather.home sections: forecast_strip: attribute_color: "#BBDEFB"
From a single temperature to a wall tablet, an air quality chart or a world clock: each example highlights a few options, shown in a different community theme. See the tables after them for every option.
A larger header icon with fill icons and only the temperature in large letters.
type: custom:clock-weather-card entity: weather.home weather_icon_type: fill sections: header: weather_icon_size: 10rem rows: - font_size: 5rem alignment: center segments: - type: weather attribute: temperature forecast_strip: hide: true forecast_list: hide: true
Large header rows, and font_size scales the forecast strip and list for reading across the room; the strip labels show only the hour and drop the precipitation row.
type: custom:clock-weather-card entity: weather.home weather_icon_type: flat sections: header: rows: - font_size: 1.3rem segments: - type: weather attribute: temperature - type: spacer - type: weather - font_size: 5.5rem alignment: center segments: - type: time - font_size: 1.3rem alignment: center segments: - type: date forecast_strip: count: 6 time_pattern: H hide_attribute: true font_size: 1.3rem forecast_list: count: 3 font_size: 1.3rem
A custom header above an hourly forecast list with taller rows, slim bars and temperatures to the decimal (round_temperatures: false).
type: custom:clock-weather-card entity: weather.home round_temperatures: false sections: header: rows: - font_size: 4.5rem segments: - type: time time_pattern: HH:mm - segments: - type: date date_pattern: EEE, d MMM - type: spacer - type: icon icon: mdi:water-percent - type: weather attribute: humidity - type: icon icon: mdi:thermometer - type: weather attribute: temperature forecast_strip: hide: true forecast_list: forecast_type: hourly count: 6 time_pattern: HH:mm row_height: 36px bar_thickness: 6px
A badge with an AQI sensor in the color of its US AQI band, above a list charting the AQI forecast in the same colors.
type: custom:clock-weather-card entity: weather.home sections: header: rows: - alignment: center segments: - type: icon icon: mdi:leaf - type: text text: Air quality - font_size: 3rem alignment: center segments: - type: badge entity_id: sensor.air_quality_index background_color: 0: "#00E400" 51: "#FFFF00" 101: "#FF7E00" 151: "#FF0000" 201: "#8F3F97" 301: "#7E0023" - alignment: center segments: - type: weather - type: weather attribute: temperature forecast_strip: hide: true forecast_list: attribute: aqi gradient: 0: "#00E400" 50: "#FFFF00" 100: "#FF7E00"
The strip shows any forecast attribute, here the wind speed with your own icon and color next to monochrome icons.
type: custom:clock-weather-card entity: weather.home weather_icon_type: monochrome sections: header: hide: true forecast_strip: forecast_type: daily attribute: wind_speed attribute_icon: mdi:weather-windy attribute_color: "#0288D1" forecast_list: hide: true
The balcony sensor replaces the provider's temperature (additional_sensors), an icon follows the state of the front door, a template describes it and an entity shows the next calendar event.
type: custom:clock-weather-card entity: weather.home additional_sensors: temperature: sensor.balcony_temperature sections: header: rows: - font_size: 4rem alignment: center segments: - type: time - alignment: center segments: - type: icon icon: mdi:thermometer - type: weather attribute: temperature - type: icon entity_id: binary_sensor.front_door - type: template template: "Door {{ 'open' if is_state('binary_sensor.front_door', 'on') else 'closed' }}" - alignment: center segments: - type: icon icon: mdi:calendar-clock - type: entity entity_id: sensor.next_appointment forecast_strip: hide: true forecast_list: hide: true
A title, another time_zone and locale turn the card into the weather back home or at your next destination.
type: custom:clock-weather-card entity: weather.tokyo title: Tokyo locale: ja time_zone: Asia/Tokyo sections: forecast_strip: forecast_type: daily count: 5 forecast_list: hide: true
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
entity |
string | yes | - | Entity ID of your weather provider |
title |
string | no | null |
Title displayed at the top of the card |
sun_entity |
string | no | sun.sun |
Entity ID of the sun entity, used to determine day/night icons |
weather_icon_type |
fill | flat | line | monochrome |
no | line |
Visual style of the weather icons (meteocons). Applies to all sections; each section can override it with its own weather_icon_type. |
time_zone |
string | no | Home Assistant profile time zone | IANA time zone name (e.g. Europe/Berlin) used for all times and dates on the card (clock, date, forecast times, sunrise/sunset). When unset, follows the time zone setting in the user's Home Assistant profile: the browser's time zone if set to local, otherwise the time zone configured in Home Assistant. |
locale |
string | no | Home Assistant language | Language tag (e.g. en-GB, de, pt-BR) used for date/time formatting and translated text. When unset, falls back to the language configured in Home Assistant. Numbers follow the number format of your Home Assistant profile; its "Auto" setting uses this locale. |
temperature_unit |
celsius | fahrenheit |
no | Home Assistant unit system | Unit all temperatures are shown in (header, forecast strip, forecast list). Values from the weather entity and from entity segments with a °C/°F unit are converted. When unset, falls back to the temperature unit of the Home Assistant unit system. |
round_temperatures |
boolean | no | true |
When true, temperatures are rounded to the nearest integer in every section. Set to false to show fractional values (if the weather provider has fractionals). Each section can override it with its own round_temperatures. |
tap_action |
object | no | more-info |
Action to run when the card is tapped, e.g. navigate, url, more-info (of entity) or perform-action. Set action: none to make the card not clickable. |
additional_sensors |
object | no | - | Sensors that replace values of the weather entity. See Additional Sensors Options. |
sections |
object | no | - | Per-section configuration. See Sections Options. |
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
temperature |
string | no | - | Entity ID of a temperature sensor (unit °C or °F) that replaces the weather entity's current temperature everywhere the card shows it: the temperature weather segment, the forecast list's current temperature dot and the "Now" entry of the hourly forecast strip. Values are converted to temperature_unit, shown in the header with the sensor's display precision when one is set in Home Assistant (regardless of round_temperatures), and otherwise rounded per section by round_temperatures (at most one decimal when not rounded). While the sensor is unavailable or unknown, the current temperature is hidden and the strip shows the forecast value. |
additional_sensors: temperature: sensor.outdoor_temperature
Sections render top to bottom in the order header, forecast_strip, forecast_list.
Renders the current-weather icon next to the configurable rows of segments (clock, date, current weather, entities, icons) at the top of the card. By default the icon is as tall as the rows, but at least 9rem, and takes at most about 35% of the card width. weather_icon_size overrides this and is not capped. Spare width is spread evenly around the icon and the rows.
| Option | Type | Required | Default | Description |
|---|---|---|---|---|
hide |
boolean | no | false |
Hide the header section. |
animated_icons |
boolean | no | true |
Whether the large weather icon should be animated. |
weather_icon_type |
fill | flat | line | monochrome |
no | top-level weather_icon_type |
Visual style for the large weather icon. Falls back to the card's main weather_icon_type when unset. |
weather_icon_size |
string | no | height of the rows, at least 9rem |
CSS length for the height of the large weather icon. It is not capped, so a large value leaves less width for the rows. Accepts px, rem, em, vh, vw, % (relative to half the card width). |
round_temperatures |
boolean | no | top-level round_temperatures |
When true, the temperatures of weather segments (temperature, apparent_temperature, dew_point and values with a °C/°F unit_attribute) are rounded to the nearest integer. The display precision of additional_sensors.temperature takes precedence when set. |
rows |
list | no | See Default Header Rows | List of rows to display. See Row Options. |
Renders a horizontally scrolling strip of upcoming hours (forecast_type: hourly, default) or days (forecast_type: daily) below the header. Each column shows a label, weather icon, temperature and one additional forecast attribute (precipitation probability by default, see attribute). Attribute columns without a value, or with a precipitation amount or probability of 0, stay blank; the row keeps its height even when every column is blank. Enabled by default.
In hourly mode, the first column is labeled "Now" and is sourced from the most recent forecast entry whose timestamp is at or before the current time. Subsequent columns are the upcoming forecast hours.
In daily mode, the first column is labeled "Today" (localized) and the others show the weekday. Each column shows the day's high temperature with the low below it.
In hourly mode, when the next sunrise or sunset (taken from sun_entity) falls within the visible hours, an extra column with its exact time and an up (sunrise) or down (sunset) arrow is inserted at the matching position. These columns count toward count.
When the configured columns do not fit the card width, the strip scrolls horizontally (swipe, trackpad, Shift + mouse wheel, or the thin scrollbar below the strip).
| Option | Type | Required | Default | Description |
|---|---|---|---|---|
hide |
boolean | no | false |
Hide the forecast strip section. |
weather_entity |
string | no | top-level entity |
Weather entity whose forecast is displayed. Falls back to the card's main entity when not set. |
forecast_type |
hourly | daily |
no | hourly |
Forecast data shown in the strip. |
count |
number | no | 24 |
Maximum number of columns to render, including the leading "Now"/"Today" entry and any sunrise/sunset columns. Fewer are shown if the provider returns less. |
animated_icons |
boolean | no | false |
Whether the strip's weather icons should be animated. Defaults to false to keep the strip lightweight. |
round_temperatures |
boolean | no | top-level round_temperatures |
When true, temperatures in the strip are rounded to the nearest integer. |
weather_icon_type |
fill | flat | line | monochrome |
no | top-level weather_icon_type |
Visual style for the icons in the forecast strip. Falls back to the card's main weather_icon_type when unset. |
hide_sunrise_sunset |
boolean | no | false |
Hide the sunrise/sunset columns. Only supported with forecast_type: hourly. |
font_size |
string | no | 1rem |
CSS length scaling the strip's text and weather icons together, e.g. 1.5rem. Accepts px, rem, em, vh, vw, %. |
hide_attribute |
boolean | no | false |
Hide the attribute row, including the space it reserves. attribute, attribute_icon, attribute_unit and attribute_color are ignored while it is true. |
time_pattern |
string | no | t |
Luxon format pattern for the hourly and sunrise/sunset column labels. The default t is the localized short time, e.g. 15:00 or 3:00 PM depending on the locale and the time format in your Home Assistant profile; H shows only the hour. |
attribute |
string | no | precipitation_probability |
Any numeric forecast attribute provided by the weather entity (e.g. wind_speed, humidity, uv_index), shown in the row below the temperature. See Forecast attributes. |
attribute_icon |
string | no | mdi:water if attribute is unset, otherwise none |
Icon shown before each attribute value. |
attribute_unit |
string | no | resolved unit (see Forecast attributes) | Unit shown after each attribute value, overriding the resolved one. Values are not converted. Set to "" to show no unit. |
attribute_color |
string | no | #3988EF if attribute is unset, otherwise the theme's info color (text color with weather_icon_type: monochrome) |
CSS color of the attribute row, e.g. "#4a90d9" or var(--warning-color). Applies regardless of weather_icon_type. |
Renders a vertical list of upcoming days (forecast_type: daily, default) or hours (forecast_type: hourly) below the forecast strip. Each row shows a label, a weather icon, a low and high temperature, and a horizontal temperature bar. All bars share a single axis from the lowest low to the highest high across the visible rows, and each bar's gradient covers the configured color ramp clipped to that row's range.
In daily mode, each row spans the day's low and high. Today's row is labeled "Today" (localized) and shows a dot indicator at the current temperature on its bar.
In hourly mode, the first row is labeled "Now" and the others show the time (see time_pattern). Each row's bar spans from the previous hour's temperature to this hour's; the "Now" row starts from the current temperature and shows the current-temperature dot.
| Option | Type | Required | Default | Description |
|---|---|---|---|---|
hide |
boolean | no | false |
Hide the forecast list section. |
weather_entity |
string | no | top-level entity |
Weather entity whose forecast is displayed. Falls back to the card's main entity when not set. |
forecast_type |
daily | hourly |
no | daily |
Forecast data shown in the list. |
count |
number | no | 5 |
Maximum number of rows to render, starting from today (daily) or the current hour (hourly). Fewer are shown if the provider returns less. |
row_height |
string | no | 28px |
CSS length controlling the height of each day row. Drives both the icon size and the row's minimum height. Accepts px, rem, em, vh, vw, %. |
bar_thickness |
string | no | 60% |
CSS length controlling the thickness of the temperature bar. A percentage is relative to row_height (so the bar scales with the row); absolute units (px, rem, em, vh, vw) set a fixed thickness. The current-temperature dot scales with it. Thicker bars reduce the visible gap between adjacent rows. |
font_size |
string | no | 1rem |
CSS length scaling the list's text, e.g. 1.5rem. When set, the weather icons grow with the text unless row_height is larger. Accepts px, rem, em, vh, vw, %. |
hide_current_temp_indicator |
boolean | no | false |
When true, the dot showing the current temperature on today's row (daily) or the "Now" row (hourly) is not rendered. |
time_pattern |
string | no | t |
Luxon format pattern for the hourly row labels. The default t is the localized short time, e.g. 15:00 or 3:00 PM depending on the locale and the time format in your Home Assistant profile; H shows only the hour. |
animated_icons |
boolean | no | false |
Whether the list's weather icons should be animated. Defaults to false to keep the section lightweight. |
round_temperatures |
boolean | no | top-level round_temperatures |
When true, the low and high temperatures are rounded to the nearest integer. |
weather_icon_type |
fill | flat | line | monochrome |
no | top-level weather_icon_type |
Visual style for the icons in the forecast list. Falls back to the card's main weather_icon_type when unset. |
attribute |
string | no | temperature |
Forecast attribute shown in the list: temperature or any numeric forecast attribute (see Forecast attributes). For any attribute other than temperature, each row shows a single value right of its bar, which runs from 0 to the row's value; all bars share one axis spanning 0 and every visible value. The current-temperature dot is only shown for temperature. |
attribute_unit |
string | no | resolved unit (temperature_unit for temperature, see Forecast attributes) |
Unit shown after each value, overriding the resolved one. Values are not converted. Set to "" to show no unit. |
gradient |
map | no | built-in ramp (see below) | Map of value → hex (#rgb, #rrggbb) or rgb() color used to colorize the bars. For temperature, keys are in °C regardless of the weather entity's unit; for other attributes, keys are in the attribute's own unit. Colors are linearly interpolated between adjacent stops. |
The built-in gradient is:
gradient: -10: "#78A2CC" # darker blue 0: "#A4C3D2" # light blue 10: "#79D2B3" # turquoise 20: "#FCF570" # yellow 30: "#FF964F" # orange 40: "#FFC09F" # red-ish
forecast_strip.attribute and forecast_list.attribute accept any numeric attribute of the weather entity's forecast entries, shown as provided (no rounding, except that the strip rounds precipitation_probability to the nearest 10 and leaves precipitation and precipitation_probability blank at 0); non-numeric values are treated as missing. If no forecast entry has the configured attribute, the section renders an inline warning instead (the strip's default precipitation_probability is exempt and simply leaves the row blank). The unit is resolved the same way as for the weather segment (e.g. wind_speed_unit for wind_speed, % for humidity, otherwise the entity's <attribute>_unit attribute).
Each header row is a horizontal line of segments.
| Option | Type | Required | Default | Description |
|---|---|---|---|---|
segments |
list | yes | - | List of segments in this row |
font_size |
string | no | inherited | CSS font-size (e.g. 14px, 3rem) |
alignment |
left | center | right |
no | start of the row | Horizontal position of the row's segments. Always refers to the physical side, also in right-to-left languages. Has no effect when the row contains a spacer. |
Displays the current time, auto-updating every second.
| Option | Type | Required | Default | Description |
|---|---|---|---|---|
type |
string | yes | - | time |
time_pattern |
string | no | t |
Luxon time format pattern. The default t is the localized short time, e.g. 15:27 or 3:27 PM depending on the locale and the time format in your Home Assistant profile. |
Displays the current date.
| Option | Type | Required | Default | Description |
|---|---|---|---|---|
type |
string | yes | - | date |
date_pattern |
string | no | DDD |
Luxon date format pattern. The default DDD is the localized full date (e.g. 27 April 2026 for en-GB, April 27, 2026 for en-US). |
Displays the current weather state (localized) or a specific weather entity attribute.
| Option | Type | Required | Default | Description |
|---|---|---|---|---|
type |
string | yes | - | weather |
attribute |
string | no | - | Weather entity attribute (e.g. temperature, humidity). If omitted, shows the localized weather state text. |
show_unit |
boolean | no | true |
When attribute is set, append unit if configured, otherwise the attribute's known unit (the card's temperature_unit for temperature/apparent_temperature/dew_point, whose values are converted to it, pressure_unit, wind_speed_unit for wind_speed/wind_gust_speed, visibility_unit, precipitation_unit, % for humidity/cloud_coverage/precipitation_probability, ° for wind_bearing), otherwise the <attribute>_unit attribute. |
unit |
string | no | - | Hard-coded unit appended verbatim to the attribute value (include a leading space if wanted), overriding the resolved unit. Useful for attributes without a known unit. Ignored when show_unit is false. |
unit_attribute |
string | no | - | Weather entity attribute the unit is read from, replacing the resolved unit described under show_unit; must exist on the entity. Values with a °C/°F unit are converted to the card's temperature_unit. |
Displays a Home Assistant entity's state and unit. A numeric state is rounded to the entity's display precision when one is set in Home Assistant.
| Option | Type | Required | Default | Description |
|---|---|---|---|---|
type |
string | yes | - | entity |
entity_id |
string | yes | - | Entity ID (e.g. sensor.temperature) |
attribute |
string | no | - | Entity attribute to display; must exist on the entity. If omitted, shows the entity state + unit. |
show_unit |
boolean | no | true |
Append the unit to the displayed value. Values with a °C/°F unit are converted to the card's temperature_unit. |
unit |
string | no | - | Hard-coded unit appended verbatim to the value (include a leading space if wanted), overriding the resolved unit. Ignored when show_unit is false. |
unit_attribute |
string | no | unit_of_measurement |
Entity attribute the unit is read from; must exist on the entity. |
Displays an entity's state or attribute like the entity segment, on a background whose color depends on that value, e.g. an air quality index in the color of its band. Takes all options of the entity segment, plus:
| Option | Type | Required | Default | Description |
|---|---|---|---|---|
type |
string | yes | - | badge |
background_color |
map | yes | - | Thresholds mapping the lowest value of each band to its color (hex #rgb, #rrggbb or rgb()). The badge takes the color of the highest band the value reaches; colors don't blend. Below the lowest band or for a non-numeric value, the value shows without a background. |
text_color |
string | no | black or white | Text color on the background. By default black or white, whichever reads better. |
The value is compared as the entity reports it, without unit conversion. To color by a computed value, create a template sensor.
# Air quality index with the colors of the US AQI bands - type: badge entity_id: sensor.air_quality_index background_color: 0: "#00E400" 51: "#FFFF00" 101: "#FF7E00" 151: "#FF0000" 201: "#8F3F97" 301: "#7E0023"
Displays a fixed MDI icon, or the current icon of an entity.
| Option | Type | Required | Default | Description |
|---|---|---|---|---|
type |
string | yes | - | icon |
icon |
string | unless entity_id is set |
- | MDI icon name (e.g. mdi:thermometer, mdi:calendar). Must not be combined with entity_id. |
entity_id |
string | no | - | Entity whose current icon is shown, resolved like Home Assistant does (custom icon, state-based icons of the integration or device class), e.g. sensor.season for a leaf in autumn and a snowflake in winter |
Displays an MDI icon matching the current state of a weather entity (e.g. mdi:weather-rainy when it rains). Uses night variants for sunny and partlycloudy while the sun entity is below the horizon.
| Option | Type | Required | Default | Description |
|---|---|---|---|---|
type |
string | yes | - | weather_icon |
entity_id |
string | no | card entity |
Weather entity whose state drives the icon |
Displays static text.
| Option | Type | Required | Default | Description |
|---|---|---|---|---|
type |
string | yes | - | text |
text |
string | yes | - | Text to display |
Displays the result of a Home Assistant template, re-rendered by Home Assistant whenever an entity it references changes.
| Option | Type | Required | Default | Description |
|---|---|---|---|---|
type |
string | yes | - | template |
template |
string | yes | - | Template to render, e.g. {{ states('binary_sensor.front_door') }} |
A flexible spacer that fills the remaining horizontal space, pushing the segments before and after it apart. To position a whole row, use the row's alignment instead.
| Option | Type | Required | Default | Description |
|---|---|---|---|---|
type |
string | yes | - | spacer |
# Temperature on the left, weather state on the right - segments: - type: weather attribute: temperature - type: spacer - type: weather
When no sections.header.rows are configured, the header displays the following default layout:
rows: - segments: - type: icon icon: mdi:thermometer - type: weather attribute: temperature - type: spacer - type: weather - font_size: 4rem alignment: center segments: - type: time - alignment: center segments: - type: icon icon: mdi:calendar - type: date
Why don't I see the current day in my weather forecast?
Some weather providers do not include today's weather in their forecast data. If this happens, try switching to a different provider. Open Meteo is the default weather integration in Home Assistant and includes today's weather.
What do the forecast bars represent?
type: custom:clock-weather-card entity: weather.home sections: header: hide: true forecast_strip: hide: true
The bars visualize the temperature range for each day relative to the overall forecast range.
- The full bar spans the overall low to overall high across all forecast days (10° to 24° in the example above).
- The colored portion represents the temperature range for that specific day (e.g. 15° to 24° today).
- The circle marks the current temperature (e.g. 21°).
This makes it easy to see the weather trend for the upcoming days at a glance.
Thanks to @deprecatedcoder for this explanation from #143.
- Bugs - something is broken or behaves differently than documented: open an issue.
- Feature requests and changes - start a discussion in Feature requests, where others can upvote and discuss them. Once an idea is agreed on, it becomes an issue for implementation.
- Questions and configuration help - ask in Help & Configuration.
Issues that aren't bugs are moved to Discussions.
Contributions are welcome. See CONTRIBUTING.md for the development setup, testing requirements and how to add translations.
- Weather icons: Meteocons by Bas Milius (MIT License).
This project is licensed under the MIT License.








