Entity Card with Custom Text Data

Hi,

Is there any way to have a custom state for the unit in an entity card?

Basically… I would like to show when a state was last updated, but a secondary card does not exist for the standard entity (it does in entities) - so instead I was going to change the unit to be the last updated state.

This is what I was after, but it doesnt look like this is possible:
IMG 1

This is what is happening when I try:
IMG 2

type: entity
entity: sensor.pure_gym_attendance
state_color: false
icon: mdi:weight-lifter
name: Pure Gym
unit: >
  {{ states.sensor.pure_gym_attendance.last_changed }}

This is what I was trying to accomplish with the above (im aware that the above is timestamped, not minutes ago - it was just a test):
IMG 3

Sorry i’ve has to upload the images this way…
a new member can only upload 1 picture…

image

Any help would be greatly appreciated.

I think you should look for a card that does what you need, rather than trying to shoehorn a different value into the units field. If you’re using HACS, there’s cards available for everything you can imagine, they just might be hard to find. For example “template-entity-row” (only works on an entities card though) or “button-card”. Alternatively you could use a markdown card containing whatever you want.