Unable to get dashboard to show 12 hour

hey all,

for some time now i have been using entitys and such on my d ashboard and they are all set to 24 hour, i have tried to change the language and profile settings (the profile is set to show 12 hour format but nothing seems to change) so im just wondering if anyone could help me get my date/time etities and such to show in 12 hour

to be more specific i have an entity on my dashboard to tell me when my 3d printer will finish the current print
image
image
image

i would like this, along with other entities like this to show in a 12 hour format
any help is appreciated

You can make a time helper and an automation which sets the helper to the 12h time after it calculated the right value.
Another solution is to make a timer and set it with an automation.
Another one is to make a template card like from mushroom to display the format.
This is not the most elegant solution but maybe some else comes up with a better one.

1 Like

Here is some timestamp value:
image

which is presented in more-info as
image

Could you post a screenshot from Dev tools → State for this “printer end time” entity?

1 Like



this is all i could get to show idk if there is any more info hidden anywhere

Is it a template sensor or provided by some integration?
It has no device_class=duration.
Try adding it via “customize” in yaml (or as a part of a sensor definition if this is a template sensor).

its part of the Bambu lab printer integration, ii am not in any way fluent with templates so i am unaware how to really use them

OK, add this to your configuration.yaml:

homeassistant:
  customize:
    sensor.xxx:
      device_class: timestamp

Note:

  1. Replace “xxx” with entity_id of your sensor.
  2. If your configuration.yaml already contains “homeassistant” key - just add “customize” inside it.
1 Like

I think you probably want timestamp, not duration?

That’s not a valid format for duration, durations are a decimal number only, not a string timestamp.

1 Like

Correct, typo, my bad.
Edited my post, thank you.

1 Like

it has kind of worked it says in how many hours it will end but I’m looking to see the date and time in am/pm if possible?

image

What card are you using?
Entities card has a “format” option.

1 Like

its a tile card inside a horizontal stack because thats the only way i could fit all the inyfo in to the space ill try out an entity card again now though

edit: it definatly wont fit
image

but it does work (it shows the long date which i dont really care about but might be an issue trying to get it to fit idk)

The huge card is Entity card.
I talked about Entities card with “format” option.

1 Like

ahhhhh i see i dont quite know where the format option is though?

Never ever use UI for customizing staff if you want to succeed))).
Read Docs for this card!

1 Like

ok the format wasn’t at all as confusing as thought it would be but do you have any tips/advice on you to change the layout to look like a tile card? so i can fit it as i have with the 3 cards horizontally?

Try custom button-card, it allows to present a state as you like.

1 Like

ahhhh i feel im so close i just have no idea how to format it to show the short date!! i found something to do with helpers but i have no idea what I’m to do there

This is a proper place to ask all button-card-related questions:

1 Like

For the record:

1 Like