mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-12-11 02:43:28 -06:00
Add docs for dashboard time visibility condition (#41605)
This commit is contained in:
parent
0539b14d28
commit
281c7d567e
@ -220,6 +220,43 @@ locations:
|
|||||||
type: list
|
type: list
|
||||||
{% endconfiguration %}
|
{% endconfiguration %}
|
||||||
|
|
||||||
|
### Time
|
||||||
|
|
||||||
|
Specify the visibility of the card based on the current time and day of the week.
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
condition: time
|
||||||
|
after: "08:00"
|
||||||
|
before: "17:00"
|
||||||
|
weekdays:
|
||||||
|
- mon
|
||||||
|
- tue
|
||||||
|
- wed
|
||||||
|
- thu
|
||||||
|
- fri
|
||||||
|
```
|
||||||
|
|
||||||
|
{% configuration %}
|
||||||
|
condition:
|
||||||
|
required: true
|
||||||
|
description: "`time`"
|
||||||
|
type: string
|
||||||
|
after:
|
||||||
|
required: false
|
||||||
|
description: Time in 24-hour format (HH:MM) after which the card should be visible.*
|
||||||
|
type: string
|
||||||
|
before:
|
||||||
|
required: false
|
||||||
|
description: Time in 24-hour format (HH:MM) before which the card should be visible.*
|
||||||
|
type: string
|
||||||
|
weekdays:
|
||||||
|
required: false
|
||||||
|
description: List of weekdays on which the card should be visible. Valid values are `mon`, `tue`, `wed`, `thu`, `fri`, `sat`, `sun`.
|
||||||
|
type: list
|
||||||
|
{% endconfiguration %}
|
||||||
|
|
||||||
|
At least one of `after` or `before` must be used for this condition to be valid. Both can be used together to define a time range as in the example above.
|
||||||
|
|
||||||
### And
|
### And
|
||||||
|
|
||||||
Specify that all conditions must be met.
|
Specify that all conditions must be met.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user