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:
akasma74 2020-03-17 17:36:55 +00:00 committed by GitHub
parent b30feb926f
commit 4b24fd82dc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -235,7 +235,9 @@ condition:
```
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'>