Is there a way to show time?

Hi, is there any way to make it show time instead of “tomorrow”, or “in 5 hours”?

Yes, if you check Developer tools → states: sensor.home_next_sunrise has the time.

1 Like

Hi,
For entities card you can use format option. From docs:
format string (optional)
How the state should be formatted. Currently only used for timestamp sensors. Valid values are: relative, total, date, time and datetime.

Entities card

type: entities
entities:
  - entity: sensor.sun_next_dusk
    format: datetime

2 Likes

Thank you so much but this unfriendly shows the entire date, including year, and month. Is there a way to shorten it a bit?

Edit:
I figured it out - instead of datetime just type time

Well, what about making a card show the current date and time? How do you do that?

Well, :wink:

Use a markdown card and template.

Time: {{now().hour}}:{{now().minute}}
Date: {{now().day}}-{{now().month}}-{{now().year}}

## OR ##
{{now()}}

You can play with text font colors html code;

<font color="#000000">
</font>
1 Like