Add Date card - #52994
Conversation
|
There is also this #28866 |
|
Adding date to clock card makes more sense in my opinion. You have date options for regular clocks and watches. Rarely do you get a date something, more usually a calendar which HA has already. |
Thanks for pointing that out, I missed it
I agree, since I hadn't seen the date addition to the clock card and found a FR in discussions for a date card, I wanted to give it a try because date was, and is still, missing from the clock card, and I thought this card would be a nice complement to the clock card. Let's keep this PR for now to see what happens, I also notice that the PR #28866 do not progress for a while |
# Conflicts: # src/panels/lovelace/cards/types.ts
timmo001
left a comment
There was a problem hiding this comment.
Now we have date added to the clock card, we should be consistent if we want to add this too, so the new UiClockDateFormatSelector should be used here too
Still pending UX review whether to add or not
|
Please take a look at the requested changes, and use the Ready for review button when you are done, thanks 👍 |
Done, I also refactored clock branded components as they are no more related only to the clock card. Please also let me know if the default date format is fine because date formats may vary depending on your locale. |
There is no way in Home Assistant to view the current date big on your dashboard, in the same esthetical style as the clock. You can work around it with Picture Elements, but it does all kind of weird layout on different systems while a official clock/date follows the original UI layout for consistency. Also the entity -card who has the biggest view has it's limitations for displaying the date as big and clean as possible, like the clock can. Also tried it with markdown, but it remains a work-around not in style with the quality of the clock card. |
would be nice to have a date only option for the clock card, now HA 2026.8 landed the date option (really sweet that is, thanks for that) and have best of both worlds ? |
IMO hiding the clock in the clock card doesn't make sense. If the need is to display only the date, I think that a dedicated card makes more sense. |
|
makes no sense is a bit strong. also the styles are already there, so no effort either. and tbh, if you only want a date in a card, just use Markdown. the clock card seems the ideal card to add that 1 small option. |
The markdown card uses a different font, appears differently/impossible to match exact card-hight/style beside the clock card in one row. And also does not offer transparancy like te clock card does, which is nice as a big header on top of your cards/ in the corner of your dashboard. Time left and date right in esthetically pleasing match. |
sure, for some styling you'd need 3d party stuff but don't forget markdown can be styled very easily, as I am all in for the clock card with a date only variant. other than that will keep out of this convo. |
|
Hi @timmo001, Sorry to ping you, but I'd like to know if you still request changes from my side. Let me know please, note that I'll not be able to make any updates before the beginning of September, so nothing urgent for me, this is only to clarify the status of this PR. |
|
I took a short look, there are likely changes, but we should wait for UX before making any final technical changes |
Proposed change
Adds a new "Date" card for showing the current date. It's a sibling to the existing Clock card: same visual style and configuration approach, but for dates.
Screenshots
Type of change
Additional information
src/common/datetime/format_date.tswas extended with an optionaltimeZoneOverrideparameter on the formatters the Date card uses, so the card's time zone setting can display a date in a specific zone regardless of the user's profile setting. The parameter is additive and optional, so all existing callers keep working unchanged.Checklist
If user exposed functionality or configuration variables are added/changed:
To help with the load of incoming pull requests: