Helper with formatting capabilities

Hi,

Just curious if there is any functionality in Helper (say takes an input number) but in UI formats it for better readability. For example:

input number = 5 (UI shows 5 seconds in UI)
input number = 65 (UI shows 1 minute 5 seconds)
input number = 2147 (UI shows 2 hours 17 minutes and 54 seconds)

I am using helpers in my automations and putting these on a separate UI tab for access, it gets little confusing to see “2147” and do the math to “2 hours 17 minutes and 54 seconds” in head to make a decision.
Its not just about display, also need the functionality in the UI to be able to change values (like a helper).

Any suggestions?

You could use an Input Datetime with has_time true and has_date false. Its timestamp attribute will be its numeric value (i.e., hours*3600 + mintues+60 + seconds.) It will show in the UI as a time. The only problem is it doesn’t show the seconds, only the hours & minutes. Although, you can set seconds (and the rest) via a service call.