Hi,
For a bedtime routine automation i need to take the value of my phones ‘next alarm’ sensor to be modified and stored into a text helper.
Originally the sensor value looks like this: Fri Jun 10 06:45:00 GMT+02:00 2022
I would like to modify it to look like this: Friday 06:45
I’ve never done any templating and hope someone can help me with this
Hellis81
(Hellis81)
2
Doesn’t your next alarm sensor give you an attribute with the timestamp in UNIX?
It show’s the following attibutes.
Hellis81
(Hellis81)
4
You can use:
{{ (state_attr('sensor.note_20_next_alarm', 'Time in Milliseconds')/1000) | timestamp_custom("%A %H:%M")}}
Or you could have a look at: