sun trigger - Link fix, wording tweak (#4937)

Fixed the link to the actual sun trigger. Tried to add some clarity to the wording over offsets, but I think that needs expansion.
This commit is contained in:
DubhAd 2018-03-16 18:05:04 +00:00 committed by Franck Nijhof
parent 698b8e2aa0
commit d1510bdfb8

View File

@ -119,13 +119,13 @@ condition:
The sun condition can test if the sun has already set or risen when a trigger occurs. The `before` and `after` keys can only be set to `sunset` or `sunrise`. They have a corresponding optional offset value (`before_offset`, `after_offset`) that can be added, similar to the [sun trigger][sun_trigger].
[sun_trigger]: /getting-started/automation-trigger/#sun-trigger
[sun_trigger]: /docs/automation/trigger/#sun-trigger
```yaml
condition:
condition: sun
after: sunset
# Optional offset value
# Optional offset value - in this case it must from -1 hours relative to sunset, or after
after_offset: "-1:00:00"
```