I have a number of Tasmota plugs which have energy monitoring. The HA Entities include Total energy use and an entity to show the date/time the energy monitoring started. The default layout for this last entity is 2021-09-24T08:40:52.
I would like to reformat the display in Lovelace to only show the date.
Other than that, the standard set of Lovelace cards don’t provide a way to reformat a sensor’s value. That’s why you need to create a new entity, such as a Template Sensor, to serve as an intermediary.
The only standard Lovelace card that supports templating is the Markdown card. You could use the template I posted above directly within the Markdown card without the need of the Template Sensor.
Please consider marking my post above with the Solution tag. It will automatically place a check-mark next to the topic’s title which signals to other users that this topic has been resolved. This helps users find answers to similar questions. For more information, refer to guideline 21 in the FAQ.