--- title: "Workday Binary Sensor" description: "Steps to configure the binary workday sensor." logo: home-assistant.png ha_category: - Utility ha_iot_class: Local Polling ha_release: 0.41 ha_qa_scale: internal --- The `workday` binary sensor indicates, whether the current day is a workday or not. It allows specifying, which days of the week counts as workdays and also uses the python module [holidays](https://pypi.python.org/pypi/holidays) to incorporate information about region-specific public holidays. ## Setup Check the [country list](https://github.com/dr-prodigy/python-holidays#available-countries) for available province. ## Configuration To enable the `workday` sensor in your installation, add the following to your `configuration.yaml` file: ```yaml # Example configuration.yaml entry binary_sensor: - platform: workday country: DE ``` {% configuration %} name: description: A name for this sensor. required: false type: string default: Workday Sensor country: description: > Country code according to [holidays](https://pypi.org/project/holidays/) notation. required: true type: string province: description: Province code according to [holidays](https://pypi.org/project/holidays/) notation. required: false type: string workdays: description: List of workdays. required: false type: list default: "[mon, tue, wed, thu, fri]" excludes: description: List of workday excludes. required: false type: list default: "[sat, sun, holiday]" days_offset: description: Set days offset (e.g., -1 for yesterday, 1 for tomorrow). required: false type: integer default: 0 add_holidays: description: "Add custom holidays (such as company, personal holidays or vacations). Needs to formatted as `YYYY-MM-DD`." required: false type: list {% endconfiguration %} Days are specified as follows: `mon`, `tue`, `wed`, `thu`, `fri`, `sat`, `sun`. The keyword `holiday` is used for public holidays identified by the holidays module.