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

How to convert or format sensor "last_boot" into plain text?

$
0
0

I have a sensor called sensor.last_boot which shows me the values in this format

2021-06-05T13:41:30+00:00

I would like to convert it for display in lovelace in 2 strings 05.06.2021 and time 13:41

It is no text cause I could not extract the characters so it might be a datetime object.

value_template: "{{ states ('sensor.last_boot') }}"

I found just solutions for the other way around converting a string into a date time object which i do not need, just simple plain text cause I will need it in 2 different cases.
Any ideas or examples?

thx a lot !

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 107881


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