This blueprint will help you create sensors whose states are the current weekday name or any weekday-related value you want.
You can input a list of weekday names in your language or a list of abbreviated names if you don’t want to use the default English names.
There are other methods to get and use weekdays for automation:
blueprint:
author: Didgeridrew
homeassistant:
min_version: 2025.5.0
name: Weekday Sensor
description: Creates a sensor which holds a value related to the current weekday.
domain: template
input:
weekday_names:
name: Weekday Names
description: |
If you want the names in a language other than English, or you want to use abbreviations, list them from Monday to Sunday.
selector:
text:
multiple: true
default: |
{{['Monday','Tuesday','Wednesday','Thursday','Friday','Saturday','Sunday']}}
variables:
weekday_names: !input weekday_names
trigger:
- trigger: homeassistant
event: start
- trigger: time_pattern
hours: /12
sensor:
state: "{{ weekday_names[now().weekday()] }}"
availability: "{{true}}"