From 4b24fd82dca4a6dab486898441c4746ad802f376 Mon Sep 17 00:00:00 2001 From: akasma74 Date: Tue, 17 Mar 2020 17:36:55 +0000 Subject: [PATCH] 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. --- source/_docs/scripts/conditions.markdown | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source/_docs/scripts/conditions.markdown b/source/_docs/scripts/conditions.markdown index 561b59a4eb1..e0fcdde6c3d 100644 --- a/source/_docs/scripts/conditions.markdown +++ b/source/_docs/scripts/conditions.markdown @@ -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.