Ability to execute two actions from one automation and two triggers

Requesting the possibility of easily having one automation with two different triggers that execute two different actions.
For example, when a motion sensor starts detecting motion, it executes one type of action. However, when it stops detecting motion, it triggers a different type of action.

This setting will help reduce the number of automations and streamline functionality.

This is already possible. There are a few different ways to do, but one common method is to assign each trigger a Trigger ID then use a Choose action with Trigger conditions to branch your logic/actions.

There are currently a couple of ways to do this, mainly using trigger IDs, which are hidden in the GUI behind the trigger’s three-dot menu.

The easiest method is to use a IF or CHOOSE condition to run different actions based to the trigger.id value.

A more clever method for simpler actions looks like this:

alias: Turn on/off bedroom nightlight with sun
triggers:
  - id: turn_on
    event: sunset
    trigger: sun
  - id: turn_off
    event: sunrise
    trigger: sun
actions:
  - action: light.{{trigger.id}}
    data:
      entity_id: light.switch_nightlight