Merge pull request #65 from CCOSTAN/patch-3

Quick note on days of the week
This commit is contained in:
Paulus Schoutsen 2015-09-21 08:32:49 -07:00
commit a6f89c7ebc

View File

@ -125,8 +125,8 @@ automation:
#### {% linkable_title Time trigger %} #### {% linkable_title Time trigger %}
Time can be triggered in many ways. The most common is to specify `after` and trigger at a specific Time can be triggered in many ways. The most common is to specify `after` and trigger at a specific
point in time each day. Alternatively, you can also match if the hour, minute or second of the current point in time each day. Alternatively, you can also match if the hour, minute or second of the current
time has a specifc value. For example, by only setting minutes in the config to 5 it will trigger every time has a specific value. For example, by only setting minutes in the config to 5 it will trigger every
hour when it is 5 minutes past whole. hour when it is 5 minutes past whole. You cannot use `after` together with hour, minute or second.
```yaml ```yaml
automation: automation:
@ -135,12 +135,19 @@ automation:
# All following are optional. # All following are optional.
# When 'after' is used, you cannot also match on hour, minute, seconds. # When 'after' is used, you cannot also match on hour, minute, seconds.
# Military time format. # Military time format.
after: "15:32:00" # after: "15:32:00"
hours: 10 hours: 0
minutes: 5 minutes: 5
seconds: 0 seconds: 0
weekday:
- sat
- sun
``` ```
You can use `weekday` to limit the trigger times to speific days as well (also available in conditions). Valid values for `weekday` are (sun, mon, tue, wed, thu, fri & sat)
The above example will trigger on Saturday and Sunday every hour on the 5 (2:05, 3:05, 4:05, etc).
### {% linkable_title Conditions %} ### {% linkable_title Conditions %}
Conditions are an optional part of an automation rule and be used to prevent an action from happening Conditions are an optional part of an automation rule and be used to prevent an action from happening
@ -192,7 +199,7 @@ automation:
#### {% linkable_title Time condition %} #### {% linkable_title Time condition %}
The time condition can test if it is after a specified time, before a specified time or if it is a The time condition can test if it is after a specified time, before a specified time or if it is a
certain day of the week. certain day of the week
```yaml ```yaml
automation: automation:
@ -207,6 +214,7 @@ automation:
- fri - fri
``` ```
Valid values for `weekday` are (sun, mon, tue, wed, thu, fri & sat)
### {% linkable_title Actions %} ### {% linkable_title Actions %}