I’ve got a sensor which gives me the last date I went for a walk.
Activitity - {{ states('sensor.strava_0_0') }}
the result: 2021-09-22 15:21:39
But I only want to display the date. I don’t need timestamps. Can someone help with this?
/
Beside I’ve got another sensor which gives me the time elapsed of the activity.
The unit_of_measurement is saved in seconds but I want to see the minutes so for example: 45min
and if it is longer than an hour: 1:45 minutes
When I try this:
{{ states('sensor.strava_0_1') }}
I gives me the total of seconds like seen in the picture above.
You could write template sensor that will convert data from one sensor to the other sensor. For example display running time in hours, minutes and seconds.
The same is with first sensor. I would like to write you sensors for it but unfortunately I don’t know how.