mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-19 07:17:14 +00:00
✏️ Tweak
This commit is contained in:
parent
aec551668f
commit
a3b76fb3ed
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user