Skip to content

Commit 68aef96

Browse files
Disambiguate weekday from workday (home-assistant#28361)
1 parent e6afbb0 commit 68aef96

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

source/_integrations/workday.markdown

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,11 @@ ha_platforms:
1717
ha_integration_type: integration
1818
---
1919

20-
The `workday` binary sensor indicates whether the current day is a workday or not. It allows specifying which days of the week will count as workdays and also
21-
uses the Python module [holidays](https://pypi.org/project/holidays/) to incorporate information about region-specific public holidays.
20+
The `workday` binary sensor indicates whether the current day is a workday or not.
2221

23-
This can be used to make automations that act differently on weekdays vs weekends. For example, you could make your bedroom lights turn on (gently) at 7 in the morning if it is a weekday, but wait until 11 if it is a weekend day.
22+
It allows specifying which days of the week will count as workdays and also uses the Python module [holidays](https://pypi.org/project/holidays/) to incorporate information about region-specific public holidays.
23+
24+
This can be used to make daily automations that act differently on workdays than non-workdays. For example, you could make your bedroom lights turn on (gently) at 7 in the morning if it is a workday but wait until 11 if it is a non-working day.
2425

2526
## Setup
2627

@@ -33,7 +34,7 @@ The keyword `holiday` is used for public holidays identified by the holidays mod
3334

3435
<div class='note warning'>
3536

36-
Watch how the `holiday` keyword is used. Your first instinct might be adding it to the `exclude` configuration, thinking it means skipping the holidays. It means to exclude the days in the holiday list from the workdays. So, when you exclude `holiday` and a workday falls on that day, that workday is excluded, and the sensor will be **off**. If you want every workday flagged with no regard to holidays, ensure that there is something in your `Excludes` configuration _other_ than `holiday`.
37+
Take note of the `holiday` keyword. Your first instinct might be to add it to the `exclude` configuration, thinking it means skipping the holidays. But it is meant to exclude the days in the holiday list from the workdays. So, when you exclude `holiday` and a workday falls on that day, that workday is excluded, and the sensor will be **off**. If you want every workday flagged with no regard to holidays, ensure that there is something in your `Excludes` configuration _other_ than `holiday`.
3738

3839
</div>
3940

0 commit comments

Comments
 (0)