This card is not available on HACS.
- Download the
simple-clock-card.js
file. - Add it to your
www
Home-Assistant folder. - Add the ressource to your Home-Assistant via the GUI.
/local/simple-clock-card.js
- Do not hesitate to clear your cache.
- Download the new
simple-clock-card.js
file. - Replace the old one in your
www
Home-Assistant folder.
/local/simple-clock-card.js?v=x
- Change the x value by anything to force your browser to reload it.
In order to add the clock in your dashboard, create a manual card and add this :
type: custom:simple-clock
Parameter | Required | Description | Type | Default value |
---|---|---|---|---|
type | Yes | Name of the card | string | none |
no_background | No | Hide the background card | boolean | false |
hour_font_size | No | Define hour font size | string | 5em |
hour_bold_text | No | Put time in bold | boolean | false |
show_seconds | No | Show seconds | boolean | false |
date_font_size | No | Define date font size | string | 2em |
date_capitalize | No | Capitalize date (day and month) | boolean | false |
weekday_format | No | Put the weekday in short or long format | string | long |
month_format | No | Put the month in short or long format | string | long |
show_year | No | Show year | boolean | false |
locale_date | No | Define locale for date | string | en-US |