From b6dc397435921d43e4f27346b36013b61a6a1f18 Mon Sep 17 00:00:00 2001 From: Danny Tsang <567982+dannytsang@users.noreply.github.com> Date: Wed, 31 Aug 2022 15:41:09 +0100 Subject: [PATCH] Added duration to state trigger example (#23958) --- source/_docs/automation/trigger.markdown | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/source/_docs/automation/trigger.markdown b/source/_docs/automation/trigger.markdown index 5e3ac66ebb9..92510eeac6d 100644 --- a/source/_docs/automation/trigger.markdown +++ b/source/_docs/automation/trigger.markdown @@ -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: