From 958e18fe82a7c6605c686295bf943de71a03cac6 Mon Sep 17 00:00:00 2001 From: DubhAd Date: Sat, 11 Aug 2018 15:25:38 +0100 Subject: [PATCH] Adding warning here about the use of now() Adding the warning here, rather than just lurking in the templating docs. --- source/_docs/automation/trigger.markdown | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/_docs/automation/trigger.markdown b/source/_docs/automation/trigger.markdown index edccbd457b88..e682a20c3890 100644 --- a/source/_docs/automation/trigger.markdown +++ b/source/_docs/automation/trigger.markdown @@ -159,6 +159,10 @@ automation: ``` {% endraw %} +

+Rendering templates with time (`now()`) is dangerous as trigger templates only update based on entity state changes. +

+ ### {% linkable_title Time trigger %} Time can be triggered in many ways. The most common is to specify `at` and trigger at a specific point in time each day. Alternatively, you can also match if the hour, minute or second of the current time has a specific value. You can prefix the value with a `/` to match whenever the value is divisible by that number. You cannot use `at` together with hour, minute or second.