mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-27 19:26:50 +00:00
add note about time (#12411)
Similar to https://github.com/home-assistant/home-assistant.io/pull/12236 I think it's worth to make it clear how before and after keys work together and separately.
This commit is contained in:
parent
b30feb926f
commit
4b24fd82dc
@ -235,7 +235,9 @@ condition:
|
|||||||
```
|
```
|
||||||
|
|
||||||
Valid values for `weekday` are `mon`, `tue`, `wed`, `thu`, `fri`, `sat`, `sun`.
|
Valid values for `weekday` are `mon`, `tue`, `wed`, `thu`, `fri`, `sat`, `sun`.
|
||||||
Time condition windows can span across the midnight threshold. In the example above, the condition window is from 3pm to 2am.
|
Note that if only `before` key is used, the condition will be `true` *from midnight* until the specified time.
|
||||||
|
If only `after` key is used, the condition will be `true` from the specified time *until midnight*.
|
||||||
|
Time condition windows can span across the midnight threshold if **both** `after` and `before` keys are used. In the example above, the condition window is from 3pm to 2am.
|
||||||
|
|
||||||
<div class='note tip'>
|
<div class='note tip'>
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user