Duration selector with defaul

Hi,

i creat a script with a fields and defined on as duration, but it shows always 0:00:00:

script_timer_time:
      required: false
      default: '00:10:00'
      selector:
        duration:

How to define an optional duration field with a default value?

Thanks, Steffen

1 Like

Did you ever figure this out? I’m running into the same problem.

EDIT: I just figured it out. You need to use the “expanded” mapping like so.

default:
  hours: 0
  minutes: 10
  seconds: 0
1 Like