Add docs for dashboard time visibility condition (#41605)

This commit is contained in:
Aidan Timson 2025-11-12 17:03:14 +00:00 committed by GitHub
parent 0539b14d28
commit 281c7d567e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -220,6 +220,43 @@ locations:
type: list
{% 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
Specify that all conditions must be met.