Select WEEKDAY as an option for automation trigger

option to select weekday (monday, tuesday… etc.) as a trigger for automation to start.

we have trigger options time and calendar for specific time and dates, but we don’t have weekdays.

usecases: activate scene or action on specific weekday, like every monday 7 o’clock. activate scene every workday, monday through friday. activate automation every other day…

The point is to make it simpler and easier to create automations and use Home assistant. Now I find out many things by people telling me tricks to do this and that and I find it unconventional and hard to use.

As a work-around until this is added (if it ever is) there’s the schedule helper. You can select the days you want (graphically or in YAML) then trigger when the schedule turns on.

1 Like

Thanks! I created a schedule in the helpers. But I don’t see a way to use it in the automation. I can add it as an entity, but from that point onwards I have no idea what I should do to make it work as it has so many parameters.

It would be nice if we had a simple option in the automation creation view to just select the weekdays.

The point is to make it simpler and easier to create automations and use Home assistant. Now I find out many things by people telling me tricks to do this and that and I find it unconventional and hard to use.

It is as simple as:

triggers:
  - trigger: state
    entity_id: schedule.your_schedule_here
    from: 'off'
    to: 'on'
1 Like

Perhaps the workday integration would help. Then you can take into account holidays too, if you want. Workday - Home Assistant

1 Like

I believe if you had worded this the other way around then it would have worked for you in the GUI.

activate scene or action 7 o’clock every monday

triggers:
  - trigger: time
    at: "07:00:00"
conditions:
  - condition: time
    weekday:
      - mon
    after: "06:59:00"
2 Likes

thanks, workday doesn’t take into account people are working on weekends and it doesn’t even mention what days it counts as workdays. There’s only mention about holidays for specific regions. kinda useful in some cases though, but doesn’t count all the possible usecases here.

Thanks, I don’t see option in the GUI to select weekday. if that’s possible with YAML then nice. but that still makes it hard to use. not everyone wants to use yaml. which I stated in my point earlier. point of the feature request is to make the home assistant easier to use for everyone.

1 Like

Ah ok it’s in the “And if”, but why not in the “When”? It sounds like I need the “When” ALSO to make it work. now you need to set the time many times… You see it’s getting complicated. My logic doesn’t go looking for that in the “And if”.
But thanks for the help.

I just tested. You don’t need the time (before/after), they are optional.

Because then it will trigger when it becomes Monday, meaning at midnight.

No, where?