Weekday Name Sensor

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.

Open your Home Assistant instance and show the blueprint import dialog with a specific blueprint pre-filled.

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}}"
3 Likes

Template Blueprints are currently (2025.05) only available through YAML configuration. You can find more details about how to use them at: HA Docs - Templates - Using Blueprints

Once you have installed the blueprint, you should be able to paste any of the following configurations into your configuration.yaml file to create a working sensor or use them as examples to design your own.


Weekday Names Configurations:

English (Default)
template:
  - name: Weekday Name
    unique_id: sensor_weekdays_english_0001
    use_blueprint: 
      path: Didgeridrew/weekday-name-sensor.yaml
Español
template:
  - name: Día Actual
    unique_id: sensor_weekdays_espanol_0002
    use_blueprint: 
      path: Didgeridrew/weekday-name-sensor.yaml
      input:
        weekday_names: 
         - lunes
         - martes
         - miércoles
         - jueves
         - viernes
         - sábado
         - domingo

Alternative Use Examples:

Since this blueprint provides a specific value for each weekday, it can also be used for other weekday-based use cases. Keep in mind that the values do not need to be unique.



  • This Post has been set to Wiki Mode. Please feel free edit this post to add configurations for other languages or use cases.