mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-19 07:17:14 +00:00
Modify delay example to support decimals and large numbers (#5890)
* Modify delay example to support decimals and large numbers * Forgot quotation marks
This commit is contained in:
parent
b0d9ea036a
commit
4e39cba2ff
@ -75,7 +75,7 @@ Delays are useful for temporarily suspending your script and start it at a later
|
|||||||
```yaml
|
```yaml
|
||||||
# Waits however many minutes input_number.minute_delay is set to
|
# Waits however many minutes input_number.minute_delay is set to
|
||||||
# Valid formats include HH:MM and HH:MM:SS
|
# Valid formats include HH:MM and HH:MM:SS
|
||||||
- delay: "00:{{ '%02d' % (states('input_number.minute_delay')|int) }}:00"
|
- delay: "{{ states('input_number.minute_delay') | multiply(60) | timestamp_custom('%H:%M:%S',False) }}"
|
||||||
```
|
```
|
||||||
{% endraw %}
|
{% endraw %}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user