From 59d24cc2c348d7d918ac9676553a5e126527f9e8 Mon Sep 17 00:00:00 2001 From: DubhAd Date: Sat, 11 Aug 2018 21:13:12 +0100 Subject: [PATCH] Adding warning here about the use of now() (#5995) 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 edccbd457b8..e682a20c389 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.