Time template wait

How do I get this to work ?

wait_template: '00:00:{{ range(10, 20)|random }}'

The wait template waits until the template changes from false to true. It does not wait for a time to expire.

https://www.home-assistant.io/docs/scripts#wait-template

If you just want a random delay… use a delay.

delay: '00:00:{{ range(10, 20)|random }}'
1 Like

Thanks - easy if you know it :slight_smile: