mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-19 15:26:59 +00:00
✏️ Tweak
This commit is contained in:
parent
aec551668f
commit
a3b76fb3ed
@ -119,7 +119,9 @@ condition:
|
||||
```
|
||||
|
||||
### {% linkable_title Sun condition %}
|
||||
|
||||
#### {% linkable_title Sun state condition %}
|
||||
|
||||
The sun state can be used to test if the sun has set or risen.
|
||||
|
||||
```yaml
|
||||
@ -137,6 +139,7 @@ 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.
|
||||
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 %}
|
||||
|
||||
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user