mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-16 22:06:50 +00:00
Document using sensor for time trigger (#15544)
This commit is contained in:
parent
6a37537958
commit
4f9b70c010
@ -373,7 +373,7 @@ which will evaluate to `True` if `YOUR.ENTITY` changed more than 300 seconds ago
|
|||||||
|
|
||||||
### Time trigger
|
### 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
|
#### Time String
|
||||||
|
|
||||||
@ -425,6 +425,20 @@ automation:
|
|||||||
|
|
||||||
{% endraw %}
|
{% 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
|
||||||
|
|
||||||
Multiple times can be provided in a list. Both formats can be intermixed.
|
Multiple times can be provided in a list. Both formats can be intermixed.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user