Automation hours and minutes instead of the minutes

Hello!

I have a sensor that contains the minutes. (90 minutes)
this is sent in an automation via MQTT.

Now I would like to see hours and minutes instead of the minutes.

Can this be converted in the automation?

Here is an example: 90 minutes should then look like 01:30.

{"lifetime":"90", "pushIcon":"2", "text":"{{ states('sensor.waschmaschine_verbleibende_zeit') }} Min", "icon": "53355"}

Copy-paste the following into the Template Editor to see how it works:

{{ (90 * 60) | timestamp_custom('%-H:%M', false) }}

If you are currently using an MQTT Sensor to display the time value, you can use timestamp_custom in its value_template to convert the value from minutes to hours:minutes format.

Any progress to report?