Adding warning here about the use of now() (#5995)

Adding the warning here, rather than just lurking in the templating docs.
This commit is contained in:
DubhAd 2018-08-11 21:13:12 +01:00 committed by Fabian Affolter
parent ed6d68a9ce
commit 59d24cc2c3

View File

@ -159,6 +159,10 @@ automation:
```
{% endraw %}
<p class='note warning'>
Rendering templates with time (`now()`) is dangerous as trigger templates only update based on entity state changes.
</p>
### {% 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.