mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-07 17:36:50 +00:00
Explain time entity support in time condition
This commit is contained in:
parent
9f24997943
commit
3aae1c75f6
@ -563,7 +563,7 @@ A better weekday condition could be by using the [Workday Binary Sensor](/integr
|
||||
|
||||
</div>
|
||||
|
||||
For the `after` and `before` options a time helper (`input_datetime` entity)
|
||||
For the `after` and `before` options a time helper (`input_datetime` entity), a `time` entity,
|
||||
or another `sensor` entity containing a timestamp with the "timestamp" device
|
||||
class, can be used instead.
|
||||
|
||||
@ -574,6 +574,9 @@ condition:
|
||||
after: input_datetime.house_silent_hours_start
|
||||
before: input_datetime.house_silent_hours_end
|
||||
|
||||
- alias: "Example referencing a time entity"
|
||||
before: time.dnd_start
|
||||
|
||||
- alias: "Example referencing another sensor"
|
||||
after: sensor.groceries_delivery_time
|
||||
```
|
||||
|
Loading…
x
Reference in New Issue
Block a user