Help with weekdays automation

I have the following code to open a switch in workdays at 21:45. Is there a way to add in the same automation to open the switch at 23:00 o’clock at the weekend or should I add a new one?

#Bed Heat
- id: Bed Heat
  alias: Bed Heat
  trigger:
    platform: time
    at: '21:45:00'
  condition:
    condition: time
    weekday:
      - mon
      - tue
      - wed
      - thu
      - fri
  action:
    - service: switch.turn_on
      entity_id: switch.sonoff_10001baf48

Make another one for the weekend.

1 Like