Update conditions.markdown (#18725)

This commit is contained in:
Kiril Peyanski 2021-10-26 17:40:58 +03:00 committed by GitHub
parent dc5810daf9
commit 275de96f26
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -323,6 +323,15 @@ condition:
after_offset: "-01:00:00"
```
This is an example of 1 hour offset after sunset.
```yaml
condition:
- condition: sun
after: sunset
before: sunrise
```
This is 'when dark' - equivalent to a state condition on `sun.sun` of `below_horizon`.
```yaml