Document using sensor for time trigger (#15544)

This commit is contained in:
Paulus Schoutsen 2020-11-09 14:51:15 +01:00 committed by GitHub
parent 6a37537958
commit 4f9b70c010
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -373,7 +373,7 @@ which will evaluate to `True` if `YOUR.ENTITY` changed more than 300 seconds ago
### Time trigger
The time trigger is configured to fire once a day at a specific time, or at a specific time on a specific date. There are two allowed formats:
The time trigger is configured to fire once a day at a specific time, or at a specific time on a specific date. There are three allowed formats:
#### Time String
@ -425,6 +425,20 @@ automation:
{% endraw %}
#### Sensors of datetime device class
The Entity ID of a [sensor](/integrations/sensor/) with the "datetime" device class.
```yaml
automation:
- trigger:
platform: time
at: sensor.phone_next_alarm
action:
service: light.turn_on
entity_id: light.bedroom
```
#### Multiple Times
Multiple times can be provided in a list. Both formats can be intermixed.