Skip to content

Commit

Permalink
Explain time entity support in time condition (home-assistant#33217)
Browse files Browse the repository at this point in the history
  • Loading branch information
silamon authored Nov 26, 2024
2 parents d40330b + 3aae1c7 commit f7bbcfe
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion source/_docs/scripts/conditions.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand All @@ -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
```
Expand Down

0 comments on commit f7bbcfe

Please sign in to comment.