How to enable/disable all automations in a group?

I have created a group of “Vacation Mode” automations. There are approximately 10 separate automations that I have created, which reside in this group. I also have a Vacation Mode boolean. Is there a way to enable/disable (or turn on/off - Not sure of the correct nomenclature) this entire group based on the boolean state?

Here’s an automation that sets group.vacation_mode to the same state as input_boolean.vacation.

- alias: 'control vacation automations'
  trigger:
  - platform: state
    entity_id: input_boolean.vacation
  action:
  - service_template: "homeassistant.turn_{{trigger.to_state.state}}"
    data:
      entity_id: group.vacation_mode

I assume you know that you can turn on/off group.vacation_mode directly. It appears in the UI with the same toggle switch as an input_boolean.

1 Like

Works perfectly! Thanks!