Lighting automations with other conditions

OK, this is what I’m trying to do with limited success.
I’m trying to make a automation that will turn my garage light on when the garage door, back door or motion is detected and only turn it off if both doors are closed and no motion is detected. What’s happening is I keep getting overlapping results.

I’m doing this with the visual editor as I don’t know how to edit code, but I was only able to copy the raw code to show what I did as shown below.

Any help is appreciated

alias: Garage light door automation
description: Turn on light when door is opened and off when closed
trigger:
  - platform: device
    device_id: 5423237e0abc2ec18b5ef90e4a3a0517
    domain: cover
    entity_id: 73faf1e4348595354a9882985ef5ecd4
    type: opening
    id: garage door opening
  - platform: device
    device_id: 5423237e0abc2ec18b5ef90e4a3a0517
    domain: cover
    entity_id: 73faf1e4348595354a9882985ef5ecd4
    type: closed
    for:
      hours: 0
      minutes: 1
      seconds: 30
    id: garage door closed
  - type: opened
    platform: device
    device_id: 7599f5938e99866ea477e34b8dbb8f85
    entity_id: 99b6c1906bd970264a824a948dae15c2
    domain: binary_sensor
    id: back door open
  - type: not_opened
    platform: device
    device_id: 7599f5938e99866ea477e34b8dbb8f85
    entity_id: 99b6c1906bd970264a824a948dae15c2
    domain: binary_sensor
    id: back door closed
    for:
      hours: 0
      minutes: 0
      seconds: 0
  - type: motion
    platform: device
    device_id: 0ce91f21afdb5699108aa390731a88f3
    entity_id: 26c20461235b00540aa9c40a21ad153b
    domain: binary_sensor
    id: Occupancy
  - type: no_motion
    platform: device
    device_id: 0ce91f21afdb5699108aa390731a88f3
    entity_id: 26c20461235b00540aa9c40a21ad153b
    domain: binary_sensor
    id: "no Occupancy "
condition: []
action:
  - choose:
      - conditions:
          - condition: trigger
            id:
              - garage door opening
              - back door open
              - Occupancy
        sequence:
          - service: light.turn_on
            data: {}
            target:
              device_id: e239dea5401308bb3b7552047ae699aa
      - conditions:
          - condition: and
            conditions:
              - condition: trigger
                id:
                  - garage door closed
                  - back door closed
                  - "no Occupancy "
        sequence:
          - service: light.turn_off
            target:
              device_id: e239dea5401308bb3b7552047ae699aa
            data: {}
mode: single

Your second option does not work.
You need to add them as devices/entities just as your triggers.

Trigger events are not the same as entities

I’ll give that a try. Thank you