Hi,
I want to modifiy a tile so it states the end time for my washing mashine in the format of 13:37 for example.
The tile is working so far:
type: tile
entity: sensor.waschmaschine_endzeit_des_programms
name: Fertig um
icon: mdi:washing-machine
show_entity_picture: true
state_content: sensor.waschmaschine_endzeit_des_programms # <-- to be replaced
grid_options:
rows: 1
columns: 9
I want to replace it with the value of the sensor:
{{states('sensor.waschmaschine_endzeit_des_programms')}} --> 2025-01-18T15:59:00+00:00
I can get it to show hours:min with
{{ states('sensor.waschmaschine_endzeit_des_programms') | as_timestamp | timestamp_custom('%H:%M') }} --> 13:37
Now the code for the tile requires a string, how do I format it properly?
From https://www.home-assistant.io/dashboards/tile/ :

Templates are not allowed as values for that key, or most other keys in core cards. If you want to use templating you will likely want to use a custom card like a Mushroom Template card.
Another option would be to create a Template Sensor to hold your %H:%M
formatted value, then use that entity in a Tile card.
Like this?
- platform: template
sensors:
waschmaschine_fertig_um:
friendly_name: Fertig um
unit_of_measurement: 'on'
value_template: "{{ states('sensor.waschmaschine_endzeit_des_programms') | as_timestamp | timestamp_custom('%H:%M') }}"
Can you tell me where to insert it? Thanks so far!
Set it up as a Template Helper. That way, all you need to do is type in the name and paste the template into the “State template” field. You should leave “Unit of Measurement”, “Device Class”, and “State Class” blank.