✏️ Tweak

This commit is contained in:
Klaas Schoute 2019-05-30 00:10:30 +02:00 committed by GitHub
parent aec551668f
commit a3b76fb3ed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -119,7 +119,9 @@ condition:
``` ```
### {% linkable_title Sun condition %} ### {% linkable_title Sun condition %}
#### {% linkable_title Sun state condition %} #### {% linkable_title Sun state condition %}
The sun state can be used to test if the sun has set or risen. The sun state can be used to test if the sun has set or risen.
```yaml ```yaml
@ -137,6 +139,7 @@ condition:
``` ```
#### {% linkable_title Sun elevation condition %} #### {% linkable_title Sun elevation condition %}
The sun elevation can be used to test if the sun has set or risen, it is dusk, it is night etc. when a trigger occurs. The sun elevation can be used to test if the sun has set or risen, it is dusk, it is night etc. when a trigger occurs.
For an in depth explanation of sun elevation see [sun elevation trigger][sun_elevation_trigger]. For an in depth explanation of sun elevation see [sun elevation trigger][sun_elevation_trigger].
@ -159,6 +162,7 @@ condition:
``` ```
#### {% linkable_title Sunset/sunrise condition %} #### {% linkable_title Sunset/sunrise condition %}
The sun condition can also 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]. The sun condition can also 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]: /docs/automation/trigger/#sun-trigger [sun_trigger]: /docs/automation/trigger/#sun-trigger