Home assistant

Digital clock on Home Assistant

TL;DR: Install the ‘digital-clock’ custom card via HACS in Home Assistant to easily add a digital clock to your dashboard, customizing its appearance and format.

Frequently Asked Questions

What is HACS and why is it needed for the digital clock?

HACS (Home Assistant Community Store) is a custom integration that allows you to easily discover, install, and manage custom cards and integrations for Home Assistant. It’s necessary for the digital-clock card because it’s not part of the core Home Assistant software, and HACS provides a streamlined way to add it to your system.

AliExpress
How do I add the digital-clock card to my Home Assistant dashboard?

After installing the digital-clock custom card via HACS, navigate to your Home Assistant dashboard, enter edit mode, click ‘Add Card’, and then select ‘custom:digital-clock’ from the list of available custom cards. You can then configure its appearance and format.

Can I customize the appearance of the digital clock?

Yes, the digital-clock custom card is highly customizable. You can adjust the date and time formats, including specifying the weekday, day, month, hour, and minute displays. The documentation on GitHub provides detailed options for personalization.

Is it possible to display the time in my local language?

Yes, the digital-clock custom card supports localization. You can use the ‘locale’ option within the card’s configuration to set the display language according to your preferences, ensuring the clock shows dates and times in a format you understand.

So you want to have a nice digital clock on your system! It’s only logical.
Easiest way to do it is with HACS + digital-clock custom card.

Let’s get to it:

  1. Go to HACS
  2. Go to Frontend tab
  3. Click on the button – Explore & Add repositories
  4. Search for digital-clock
  5. Install and refresh when asked to
  6. Go to your dashboard -> edit
  7. Add a new card
  8. Select custom:digital-clock
  9. Adjust to your liking by the documentation. You can use locale to display it in your language and format.
type: 'custom:digital-clock'
dateFormat:
  weekday: 'long'
  day: '2-digit'
  month: 'short'
timeFormat:
  hour: '2-digit'
  minute: '2-digit'

Read more on Github

Leave a Reply

Your email address will not be published. Required fields are marked *

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.