Hey there it is really simple but I don’t know how to get over it. It cannot be possible to have several lines of code every time you want to show a date in the shape you want.
You see I’m using the sensor.uptime
multiple times. The chips card is nice but I guess I will forget what all these values mean if it only says last month. That is why I wanted to create my own template and add some text. The problem here is that I have to use it as a state of the entity and as soon as I do this I get the timestamp returned and not the default localized date value as when I use the entity as such.
Why is it happening? How can I fix it? I know it would be possible to get the same value there with several lines of code but is it really necessary?
type: custom:mushroom-chips-card
chips:
- type: entity
entity: sensor.current_version
icon_color: blue-grey
use_entity_picture: false
- type: entity
entity: sensor.last_boot
icon_color: blue-grey
- type: entity
entity: sensor.uptime
icon_color: blue-grey
- type: template
content: Uptime {{ states.sensor.uptime.state }}
icon: mdi:clock
icon_color: blue-grey
picture: ''