Explain time entity support in time condition (#33217)

This commit is contained in:
Simon Lamon 2024-11-26 15:43:01 +01:00 committed by GitHub
commit f7bbcfe188
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -560,7 +560,7 @@ Time condition windows can span across the midnight threshold if **both** `after
A better weekday condition could be by using the [Workday Binary Sensor](/integrations/workday/).
{% endtip %}
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.
@ -571,6 +571,9 @@ conditions:
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
```