Multiple actions one switch

Been thinking about creating one switch that would do the following:

Turn off all lights
Set Nest to away
Set house alarm to away
Close all garage doors

Can someone explain the best way to go about this? thx

Automation should work, lots of examples here or in the cookbooks.

trigger on the one switch use service to set a whole group to off for the lights.

may need to set conditional for the light to be on or doors open.

https://www.home-assistant.io/cookbook/

Other can help you more than I can (fairly new to Hassio still). But I often look at how others have done something similar in the cookbook. Start with that and modify to meet my needs.

as an example of an automation with multiple actions:

alias: Doorbell
initial_state: 'on'
trigger:
  - platform: event
    event_type: click
    event_data:
      entity_id: binary_sensor.switch_15xxxxxxxx3ede
      click_type: single
action:
  - service: switch.turn_on
    entity_id: switch.amp_mute
  - service: media_player.media_pause
  - delay: '00:00:01'
  - service: xiaomi_aqara.play_ringtone
    data:
      gw_mac: 34cexxxxxxx5
      ringtone_id: 10
      ringtone_vol: 20
  - service: notify.NotifyLoungeTV
    data:
      title: "Front Door"
      message: "Someone is at the front door"

but you can pretty much do whatever you want using multiple services etc.