mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-26 18:57:17 +00:00
Time condition can also accept an input_datetime Entity ID (#14404)
This commit is contained in:
parent
b1ab3752b7
commit
2ecb085eff
@ -350,6 +350,15 @@ A better weekday condition could be by using the [Workday Binary Sensor](/integr
|
|||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
For the `after` and `before` options a time helper (`input_datetime` entity) can be used instead.
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
condition:
|
||||||
|
condition: time
|
||||||
|
after: input_datetime.house_silent_hours_start
|
||||||
|
before: input_datetime.house_silent_hours_end
|
||||||
|
```
|
||||||
|
|
||||||
### Zone condition
|
### Zone condition
|
||||||
|
|
||||||
Zone conditions test if an entity is in a certain zone. For zone automation to work, you need to have set up a device tracker platform that supports reporting GPS coordinates.
|
Zone conditions test if an entity is in a certain zone. For zone automation to work, you need to have set up a device tracker platform that supports reporting GPS coordinates.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user