mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-22 08:46:51 +00:00
Update conditions.markdown (#14248)
Seems 'when light' and 'when dark' were mixed up, corrected that.
This commit is contained in:
parent
561f2b8b88
commit
2194975b83
@ -242,7 +242,7 @@ condition:
|
||||
after_offset: "-01:00:00"
|
||||
```
|
||||
|
||||
This is 'when light' - equivalent to a state condition on `sun.sun` of `above_horizon`.
|
||||
This is 'when dark' - equivalent to a state condition on `sun.sun` of `below_horizon`.
|
||||
|
||||
```yaml
|
||||
condition:
|
||||
@ -251,7 +251,7 @@ condition:
|
||||
before: sunset
|
||||
```
|
||||
|
||||
This is 'when dark' - equivalent to a state condition on `sun.sun` of `below_horizon`.
|
||||
This is 'when light' - equivalent to a state condition on `sun.sun` of `above_horizon`.
|
||||
|
||||
We cannot use both keys in this case as it will always be `false`.
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user