mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-24 09:46:59 +00:00
Update conditions.markdown (#18725)
This commit is contained in:
parent
dc5810daf9
commit
275de96f26
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user