How to toggle multiple automations by one button

There’s a request for this to be leveraged with the groups functionality.

There’s no kill switch like in webcore where you can disable them all at once. You would have to build the switch to do it for you.

I’ve had to spend WAY too much time doing this the hard way by leveraging input booleans to control my automations. Sometimes I just want to turn off all automations for one room (I don’t want anything to change) and sometimes I want to kill the majority of automations like when the house cleaners come. You can simplify this way down for your needs but it will show you how to do it:

alias: Automation Controls
description: ''
trigger:
  - platform: state
    entity_id:
      - input_boolean.bedroom_automations
    to: 'off'
  - platform: state
    entity_id:
      - input_boolean.bedroom_automations
    to: 'on'
  - platform: state
    entity_id:
      - input_boolean.bedroom_2_automations
    to: 'off'
  - platform: state
    entity_id:
      - input_boolean.bedroom_2_automations
    to: 'on'
  - platform: state
    entity_id:
      - input_boolean.office_automations
    to: 'off'
  - platform: state
    entity_id:
      - input_boolean.office_automations
    to: 'on'
  - platform: state
    entity_id:
      - input_boolean.stairway_automations
    to: 'off'
  - platform: state
    entity_id:
      - input_boolean.stairway_automations
    to: 'on'
  - platform: state
    entity_id:
      - input_boolean.laundry_room_automations
    to: 'off'
  - platform: state
    entity_id:
      - input_boolean.laundry_room_automations
    to: 'on'
  - platform: state
    entity_id:
      - input_boolean.living_room_automations
    to: 'off'
  - platform: state
    entity_id:
      - input_boolean.living_room_automations
    to: 'on'
  - platform: state
    entity_id:
      - input_boolean.kitchen_automations
    to: 'off'
  - platform: state
    entity_id:
      - input_boolean.kitchen_automations
    to: 'on'
  - platform: state
    entity_id:
      - input_boolean.Dining_room_automations
    to: 'off'
  - platform: state
    entity_id:
      - input_boolean.Dining_room_automations
    to: 'on'
  - platform: state
    entity_id:
      - input_boolean.media_room_automations
    to: 'off'
  - platform: state
    entity_id:
      - input_boolean.media_room_automations
    to: 'on'
  - platform: state
    entity_id:
      - input_boolean.2nd_floor_bathroom_automations
    to: 'off'
  - platform: state
    entity_id:
      - input_boolean.2nd_floor_bathroom_automations
    to: 'on'
  - platform: state
    entity_id:
      - input_boolean.downstairs_bathroom_automations
    to: 'off'
  - platform: state
    entity_id:
      - input_boolean.downstairs_bathroom_automations
    to: 'on'
  - platform: state
    entity_id:
      - input_boolean.front_entryway_automations
    to: 'off'
  - platform: state
    entity_id:
      - input_boolean.front_entryway_automations
    to: 'on'
  - platform: state
    entity_id:
      - input_boolean.garage_entryway_automations
    to: 'off'
  - platform: state
    entity_id:
      - input_boolean.garage_entryway_automations
    to: 'on'
  - platform: state
    entity_id:
      - input_boolean.den_automations
    to: 'off'
  - platform: state
    entity_id:
      - input_boolean.den_automations
    to: 'on'
  - platform: state
    entity_id:
      - input_boolean.garage_automations
    to: 'off'
  - platform: state
    entity_id:
      - input_boolean.garage_automations
    to: 'on'
  - platform: state
    entity_id:
      - input_boolean.ring_announcements
    to: 'off'
  - platform: state
    entity_id:
      - input_boolean.ring_announcements
    to: 'on'
  - platform: state
    entity_id:
      - input_boolean.all_automations
    to: 'off'
  - platform: state
    entity_id:
      - input_boolean.all_automations
    to: 'on'
condition: []
action:
  - if:
      - condition: state
        entity_id: input_boolean.bedroom_automations
        state: 'off'
    then:
      - service: automation.turn_off
        data: {}
        target:
          entity_id:
            - automation.bedroom_1_accent_lights_auto_on
            - automation.office_accent_lights_auto_on
            - automation.bathroom_1_auto_on
            - automation.office_curtains_auto_open
      - service: switch.turn_off
        data: {}
        target:
          entity_id:
            - switch.adaptive_lighting_bedroom_accent_lights
            - switch.adaptive_lighting_bedroom_house_lights
      - service: script.set_bedroom_air_filters_to_five
        data: {}
    else: []
  - if:
      - condition: state
        entity_id: input_boolean.bedroom_automations
        state: 'on'
    then:
      - service: automation.turn_on
        data: {}
        target:
          entity_id:
            - automation.bedroom_1_accent_lights_auto_on
            - automation.bathroom_1_auto_on
            - automation.office_accent_lights_auto_on
            - automation.office_curtains_auto_open
      - service: input_boolean.turn_off
        data: {}
        target:
          entity_id: input_boolean.nap_time
      - condition: time
        before: '21:45:00'
        after: '08:00:00'
      - service: switch.turn_on
        data: {}
        target:
          entity_id:
            - switch.adaptive_lighting_bedroom_accent_lights
            - switch.adaptive_lighting_bedroom_house_lights
      - service: media_player.media_pause
        data: {}
        target:
          device_id:
            - 2e67175ce4168783cc63481dd66a25a6
            - 782214079897c40cfc06c457b559de46
      - service: script.set_office_air_filter_to_auto_2
        data: {}
    else: []
  - if:
      - condition: state
        entity_id: input_boolean.bedroom_2_automations
        state: 'on'
    then:
      - service: automation.turn_on
        data: {}
        target:
          entity_id:
            - automation.bedroom_2_accent_lights_auto_on
            - automation.bathroom_2_accent_lights_auto_on
      - condition: time
        before: '21:45:00'
        after: '08:00:00'
      - service: switch.turn_on
        data: {}
        target:
          entity_id:
            - switch.adaptive_lighting_bedroom_2_accent_lights
            - switch.adaptive_lighting_bedroom_2_house_lights
    else: []
  - if:
      - condition: state
        entity_id: input_boolean.bedroom_2_automations
        state: 'off'
    then:
      - service: automation.turn_off
        data: {}
        target:
          entity_id:
            - automation.bedroom_2_accent_lights_auto_on
            - automation.bathroom_2_accent_lights_auto_on
      - service: switch.turn_off
        data: {}
        target:
          entity_id:
            - switch.adaptive_lighting_bedroom_2_accent_lights
            - switch.adaptive_lighting_bedroom_2_house_lights
    else: []
  - if:
      - condition: state
        entity_id: input_boolean.laundry_room_automations
        state: 'off'
    then:
      - service: automation.turn_off
        data: {}
        target:
          entity_id: automation.laundry_room_auto_on
  - if:
      - condition: state
        entity_id: input_boolean.laundry_room_automations
        state: 'on'
    then:
      - service: automation.turn_on
        data: {}
        target:
          entity_id: automation.laundry_room_auto_on
  - if:
      - condition: state
        entity_id: input_boolean.stairway_automations
        state: 'on'
    then:
      - service: automation.turn_on
        data: {}
        target:
          entity_id: automation.stairway_lights_auto_on_off
  - if:
      - condition: state
        entity_id: input_boolean.stairway_automations
        state: 'off'
    then:
      - service: automation.turn_off
        data: {}
        target:
          entity_id: automation.stairway_lights_auto_on_off
  - if:
      - condition: state
        entity_id: input_boolean.office_automations
        state: 'on'
    then:
      - service: automation.turn_on
        data: {}
        target:
          entity_id: automation.office_accent_lights_auto_on
  - if:
      - condition: state
        entity_id: input_boolean.office_automations
        state: 'off'
    then:
      - service: automation.turn_off
        data: {}
        target:
          entity_id: automation.office_accent_lights_auto_on
  - if:
      - condition: state
        entity_id: input_boolean.living_room_automations
        state: 'on'
    then:
      - service: automation.turn_on
        data: {}
        target:
          entity_id: automation.living_room_accent_lights_auto_on_2
      - service: switch.turn_on
        data: {}
        target:
          entity_id:
            - switch.adaptive_lighting_living_room_house_lights
            - switch.adaptive_lighting_living_room_accent_lights
  - if:
      - condition: state
        entity_id: input_boolean.living_room_automations
        state: 'off'
    then:
      - service: automation.turn_off
        data: {}
        target:
          entity_id: automation.living_room_accent_lights_auto_on_2
      - service: switch.turn_off
        data: {}
        target:
          entity_id:
            - switch.adaptive_lighting_living_room_house_lights
            - switch.adaptive_lighting_living_room_accent_lights
  - if:
      - condition: state
        entity_id: input_boolean.media_room_automations
        state: 'on'
    then:
      - service: automation.turn_on
        data: {}
        target:
          entity_id: automation.media_room_accent_lights_auto_on
      - service: switch.turn_on
        data: {}
        target:
          entity_id:
            - switch.adaptive_lighting_media_room_house_lights
            - switch.adaptive_lighting_media_room_accent_lights
  - if:
      - condition: state
        entity_id: input_boolean.media_room_automations
        state: 'off'
    then:
      - service: automation.turn_off
        data: {}
        target:
          entity_id: automation.media_room_accent_lights_auto_on
      - service: switch.turn_off
        data: {}
        target:
          entity_id:
            - switch.adaptive_lighting_media_room_house_lights
            - switch.adaptive_lighting_media_room_accent_lights
  - if:
      - condition: state
        entity_id: input_boolean.dining_room_automations
        state: 'off'
    then:
      - service: automation.turn_off
        data: {}
        target:
          entity_id: automation.dining_room_accent_lights_auto_on
      - service: switch.turn_off
        data: {}
        target:
          entity_id:
            - switch.adaptive_lighting_dining_room_accent_lights
            - switch.adaptive_lighting_dining_room_house_lights
  - if:
      - condition: state
        entity_id: input_boolean.dining_room_automations
        state: 'on'
    then:
      - service: automation.turn_on
        data: {}
        target:
          entity_id: automation.dining_room_accent_lights_auto_on
      - service: switch.turn_on
        data: {}
        target:
          entity_id:
            - switch.adaptive_lighting_dining_room_house_lights
            - switch.adaptive_lighting_dining_room_accent_lights
  - if:
      - condition: state
        entity_id: input_boolean.kitchen_automations
        state: 'on'
    then:
      - service: automation.turn_on
        data: {}
        target:
          entity_id: automation.kitchen_accent_lamps_auto_on
      - service: switch.turn_on
        data: {}
        target:
          entity_id:
            - switch.adaptive_lighting_kitchen_accent_lights
            - switch.adaptive_lighting_kitchen_house_lights
  - if:
      - condition: state
        entity_id: input_boolean.kitchen_automations
        state: 'off'
    then:
      - service: automation.turn_off
        data: {}
        target:
          entity_id: automation.kitchen_accent_lamps_auto_on
      - service: switch.turn_off
        data: {}
        target:
          entity_id:
            - switch.adaptive_lighting_kitchen_house_lights
            - switch.adaptive_lighting_kitchen_accent_lights
  - if:
      - condition: state
        entity_id: input_boolean.front_entryway_automations
        state: 'off'
    then:
      - service: automation.turn_off
        data: {}
        target:
          entity_id: automation.front_entryway_accent_lights_auto_on
  - if:
      - condition: state
        entity_id: input_boolean.front_entryway_automations
        state: 'on'
    then:
      - service: automation.turn_on
        data: {}
        target:
          entity_id: automation.front_entryway_accent_lights_auto_on
mode: parallel
max: 20

Every time one of my automation booleans changes to off or on, it will decide which automations to turn off. Another benefit is I can give a verbal command to Alexa to ‘turn off living room automations’ and before I can set foot into the room, it will turn them off to where they won’t fire (instant).

This also has my adaptive lighting turn on/offs connected but you can easily strip that out. That just ensures that adaptive lighting stops running when i tell the automations to be off and conversely when automations turn back on, to turn the adaptive lighting.