Does anyone know how the entity type does the conversion from a timestamp?
For me, the entity type in the UI says something like “In 1h”, but if I read the entity myself I only have the complete timestamp. I would like to have exactly the same output in my template card, but I don’t find the magic logic of how this happens:
IMHO changing a device_class is smth like “changing a nature of data on a low level”; if some issue may be easily solved by a different presentation - then it should be done on a Frontend side.
No. Iam looking for a solution for “custom:mushroom-template-card”. And in your example I see not the same result, what I am looking for. Currently I play with “timestamp_custom” around
Exact timestamp when the program ended (in future).
I still find it interesting that the entity card with device class timestamp displays it like this and not just the date and time or something like that
That’s what device_class does, it lets the frontend (and other aspects of HA) know what to do with the entities state. The filter/function relative_time does not work with future datetimes. Probably something that should be updated.