Added duration to state trigger example (#23958)

This commit is contained in:
Danny Tsang 2022-08-31 15:41:09 +01:00 committed by GitHub
parent 4e684a1528
commit b6dc397435
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -346,6 +346,11 @@ automation:
from: "not_home"
# Optional
to: "home"
# If given, will trigger when the condition has been true for X time; you can also use days and milliseconds.
for:
hours: 0
minutes: 1
seconds: 0
```
It's possible to give a list of `from` states or `to` states: