Entity value different depending on card used

I am using grid-card with 4 entity cards for status of our tumble-dryer.
I have my dashboard on Googe Nest Hub so display is quite small and I find the layout of Entity-card good because the sensor values are represented in big typefaces. Makes the relevant information very readable on small screen.

I am using a sensor value for when the process is ready.
The sensor value seems to contain date and time. In more or less ALL cards I have tried it then prints out how much time that is remaining (like 45 minutes) instead of printing out the date and time. However in the standard Entity card which has the only layout I’m satisfied with it prints out date and time.

Any idea why the Entity card is showing value totally different from all the other cards?

See image for example:


Cards used in my example from top to bottom

  • Tile
  • Entities
  • Entity
  • Overview
  • Mushroom Entity

The entity is presumably a timestamp, and its state is an ISO time string. You can configure how it is shown in the Entities card, and possibly others:

The Entity card appears not to have that flexibility.

Thanks for this. Basically the only card showing it wrong (for me) I can’t change :frowning:

Been trying to tinker a bit with card-mod to maybe find a suitable solution for some other card. The layout of Entity was perfect for my needs so feels like a bummer to need to tweek some other card.

Do you have some suggestion of some card that maybe are included in some other mod (like mushroom)?

A few options:

  1. Mushroom template
  2. custom:button-card

Example for button-card. layout: icon_state_name2nd is not quite what you want but button-card is full customisable where you can set up your own grid for display. Check out the doco for more.

type: custom:button-card
entity: input_datetime.both_date_and_time
section_mode: true
show_label: true
label: |
  [[[
    return helpers.relativeTime(entity.state, true)
  ]]]
layout: icon_state_name2nd
size: 20%
grid_options:
  rows: 2
  columns: full

Many thanks.
I will look into this and see if I can format it as I want.