#wait for template timeout

1 messages · Page 1 of 1 (latest)

spiral scaffold
#

Just wondering how can I set the timeout on this.

I was reading the documentation written here : https://www.home-assistant.io/docs/scripts/#wait-for-a-template

But I can't find an example using the timeout value, on my particular case I have this:

wait_template: "{{ (not switch_on and light_on) or (light_dim and (absence or illuminance)) }}"
continue_on_timeout: true
timeout: "90"

The visual editor shows just a input text field so I don't know if this "90" value is in seconds/milliseconds/etc or I have to put it like "00:01:30" or something similar

Any clues?

Thank in advance

heavy kettle
#

Just the number is seconds. Otherwise, use 'xx:yy:zz'

spiral scaffold
#

Thank you so much!

spiral scaffold
#

Excuse me one more question is there a possible way to know if the template passed by timeout or by matching the conditions after it runs?

#

sorry, just read the wait.completed part in the documentations nevermind