Condensing 3 automations to 1?

I want HA to change my Blue Iris profile based on alarm status. I have 3 basic scenarios:

HA Alarm Disarmed → BI Profile Disarmed
HA Armed Home → BI Profile Armed Home
HA Armed Away → BI Profile Armed Away

I know I can create 3 automations that trigger based on the alarm status, like this:

- id: '1640757348755'
  alias: Blue Iris Profile Change
  description: ''
  trigger:
  - platform: state
    entity_id: alarm_control_panel.home_alarm
    to: Armed night
  condition: []
  action:
  - service: switch.turn_on
    target:
      entity_id: switch.blueiris_profile_armed_home
  mode: single

Can I create one automation that just sets the BI profile based on what state the HA alarm is in?

Use the trigger id to and set up all triggers, then as actions have choose with trigger id.

Here is one thread with discussions on how to use trigger id.