Skip to content

Sun path ​

custom:sun-path-card-pro draws today's sun as a curve: where it is now, sunrise and sunset, and dawn, solar noon and dusk below. Hover or tap the curve for the time and the sun's height. For the next sunrise or sunset as one large value, use a poster of the sun kind.

The curve ​

The card needs only its type. The times are computed from the location set in Home Assistant, so no sensor is needed. Home Assistant's card editor shows a form for every option.

Edit

Title and colours ​

title and icon add a header. day_color colours the curve and the part of the day that has passed, night_color the time below the horizon, and sun_color the sun. Any colour value works.

Edit

Labels ​

The five labels follow the language of your profile. labels replaces any of them: sunrise, sunset, dawn, noon and dusk. show_dawn_dusk: false drops the row with dawn, solar noon and dusk.

Edit

Reference ​

KeyDefaultDescription
title–The header's text. Leave it out for no header.
icon–The header's icon.
show_dawn_dusktrueThe row with dawn, solar noon and dusk.
show_tooltiptrueThe time and the sun's height when you hover or tap the curve.
day_colorlight-blueThe curve and the day.
night_colorindigoThe time below the horizon.
sun_coloramberThe sun.
labelsin your languageYour own words for sunrise, sunset, dawn, noon (Solar noon) and dusk.

The curve spans 24 hours around solar noon. Dawn and dusk are civil (the sun 6° below the horizon).

The card takes 12 columns (at least 6) and sizes its height to its content; given more height, the curve fills it. It also takes Home Assistant's grid_options, visibility, view_layout, layout_options, card_mod and uix, and fill_height: false keeps its own height beside a taller card (Filling the height).

Released under the MIT License.