Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 106348

Get strint from timestamp

$
0
0

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?

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 106348

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>