Please help with template for last motion

Hi there,
thanks for sharing this discussion. Your solution works really good also in my case using Fibaro Z-Wave sensors.

However, I tried to convert the outcome from seconds to hours and days, using other templates of the forum (Convert seconds to days, hours, minutes). Unfortunately I can’t get the output to state anything other than “Less then a minute”. I of course adjusted the divisor, sensor name, etc.

Have you maybe had any luck with that question in the meanwhile?

Thanks!