Speaker group want one player to be silent at certain times of the day

My situation is I have four google speakers throughout my house one of them being in our bedroom. When any door in the house is opened there is an announcement sent out to all the players. My home office is detached and I work late nights so I don’t want it to play in the bedroom where my wife is sleeping, but I still want to hear announcements if I’m anywhere else.

My thought is that I should make an action that mutes the bedroom speaker and then unmutes it after the announcement. I don’t want it to be completely shut off as I want to build in emergency announcements that would go through, the doorbell etc…

Can anyone think of another way or does that seem like the simplest solution? Thanks in advance for any assistance.

You can use an Input boolean and a Choose action:

action:
  - choose:
    - conditions:
        - condition: state
          entity_id: input_boolean.w_in_bed
          state: 'on'
      sequence:
        - service: notify.your_notify_service
          data:
            data:
              type: tts
            target:
              - media_player.kitchen
              - media_player.office
            message: "Door opened"
    default:
    - service: notify.your_notify_service
      data:
        data:
          type: tts
        target:
          - media_player.everywhere_group
        message: "Door opened" 

Cool thanks thats a good idea! I was thinking I would save steps with the mute thing, but this is probably better.