From e79db724de76a2a0f80e449fa0d0ff97f70bcacc Mon Sep 17 00:00:00 2001 From: DubhAd Date: Sun, 27 Jan 2019 20:08:35 +0000 Subject: [PATCH] Note about time trigger, and tidy up (#8292) Removed the out of context block about the sun, under the time pattern. It doesn't appear to fit anywhere, and appeared in the RC merge. Added warning about `00` and so on --- source/_docs/automation/trigger.markdown | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/source/_docs/automation/trigger.markdown b/source/_docs/automation/trigger.markdown index 33f3a34c6ec..090c754ede4 100644 --- a/source/_docs/automation/trigger.markdown +++ b/source/_docs/automation/trigger.markdown @@ -208,8 +208,9 @@ automation 3: minutes: '/5' ``` -As mentioned in the Sun trigger section, sunrise is a different day than any time prior to midnight. If you want to trigger an action with a large enough amount of time before sunrise that it precedes midnight, this must be accounted for properly. One way is to convert the sunrise time to a timestamp (seconds since 1 Jan 1970). Then do the same for the offset desired (in seconds). This is done with the _as_timestamp_ method explained in the [Templating - Home Assistant template extensions](/docs/configuration/templating/#home-assistant-template-extensions) section. - +

+ Do not prefix numbers with a zero - using `'00'` instead of '0' for example will result in errors. +

### {% linkable_title Webhook trigger %}