Help with entity display

Hi all,

is there something I could do in here…

To make this…
Screenshot 2026-03-31 at 12.20.29 pm

Read like “Total Since 31-03-2026 at 12:20”

?

You need to create a template sensor with this template:

{{ states('sensor.pool_room_tomtal_timestamp') | timestamp_custom("%d-%m-%Y at %H:%I")}}

If the state actually is a timestamp.

Thanks

I tried a template with that code(spelling mistake corrected) but get an error in the template editor and ‘unavailable’ in the front-end…

ValueError: Template error: timestamp_custom got invalid input ‘2026-03-31T12:16:23.497000+00:00’ when rendering template ‘{{ states(‘sensor.pool_room_total_timestamp’) | timestamp_custom(“%d-%m-%Y at %H:%I”)}}’ but no default was specified

Any ideas - i’ve not used templates before

Found it - this works perfectly, thanks

{{as_local(as_datetime(states('sensor.pool_room_total_timestamp'))).strftime('%d-%m-%Y at %H:%M') }}