Skip to content

Commit 60d706e

Browse files
Carlo CostanzoLandrash
Carlo Costanzo
authored andcommitted
Quick time window update (home-assistant#1479)
Added example of windo crossing midnight as per home-assistant/core#2158
1 parent 0e8ad94 commit 60d706e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

source/getting-started/scripts-conditions.markdown

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,14 +132,15 @@ The time condition can test if it is after a specified time, before a specified
132132
condition: time
133133
# At least one of the following is required.
134134
after: '15:00:00'
135-
before: '23:00:00'
135+
before: '02:00:00'
136136
weekday:
137137
- mon
138138
- wed
139139
- fri
140140
```
141141

142142
Valid values for `weekday` are `mon`, `tue`, `wed`, `thu`, `fri`, `sat`, `sun`.
143+
Time condition windows can span across the midnight threshold. In the example above, the condition window is from 3pm to 2am.
143144

144145
### {% linkable_title Zone condition %}
145146

0 commit comments

Comments
 (0)