Add support for multiple time triggers in automations (#14035)

This commit is contained in:
Franck Nijhof 2020-08-03 14:53:53 +02:00 committed by GitHub
parent cbbd5082e5
commit accbc276de
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -313,6 +313,17 @@ automation:
at: "15:32:00" at: "15:32:00"
``` ```
Or at multiple specific times:
```yaml
automation:
trigger:
platform: time
at:
- "15:32:00"
- "20:30:00"
```
### Time pattern trigger ### Time pattern trigger
With the time pattern trigger, you can match if the hour, minute or second of the current time matches a specific value. You can prefix the value with a `/` to match whenever the value is divisible by that number. You can specify `*` to match any value (when using the web interface this is required, the fields cannot be left empty). With the time pattern trigger, you can match if the hour, minute or second of the current time matches a specific value. You can prefix the value with a `/` to match whenever the value is divisible by that number. You can specify `*` to match any value (when using the web interface this is required, the fields cannot be left empty).