Automation lights based on motion or door sensor will not not work

The automation works with just the motion sensor included. When I add the “or” for open door it will not turn on light
`

Preformatted text`alias: Laundry room light motion
description: Motion activated lights
triggers:
  - type: motion
    device_id: 56369ce7fc234c300db02d4423a87c18
    entity_id: 9bc8398c4c381f4a52de2c44a4315511
    domain: binary_sensor
    trigger: device
    id: "Motion detected "
  - type: opened
    device_id: a2eec04ce5d96aa7393d2efec70a08c2
    entity_id: 70ced346c3c02cc9361a8112d12caa42
    domain: binary_sensor
    trigger: device
  - type: no_motion
    device_id: 56369ce7fc234c300db02d4423a87c18
    entity_id: 9bc8398c4c381f4a52de2c44a4315511
    domain: binary_sensor
    trigger: device
    for:
      hours: 0
      minutes: 5
      seconds: 0
conditions: []
actions:
  - if:
      - type: is_motion
        condition: device
        device_id: 56369ce7fc234c300db02d4423a87c18
        entity_id: 9bc8398c4c381f4a52de2c44a4315511
        domain: binary_sensor
      - condition: or
        conditions:
          - type: is_open
            condition: device
            device_id: a2eec04ce5d96aa7393d2efec70a08c2
            entity_id: 70ced346c3c02cc9361a8112d12caa42
            domain: binary_sensor
    then:
      - type: turn_on
        device_id: 10160689c1304e1477573827fdff9d64
        entity_id: 97a54ab293f754ae540aab26f341425f
        domain: switch
    else:
      - type: turn_off
        device_id: 10160689c1304e1477573827fdff9d64
        entity_id: 97a54ab293f754ae540aab26f341425f
        domain: switch
mode: single

I know. I have read your post before. For the original motion on motion off it was written by device. I followed a “smart home junkie” video. When it would not work after changing from device and adding the door sensor I went back to the original automation based on device and added door sensor to see if it would work this way.

See: Motion activated lights automation

With my PIR motion sensors I have found it much more convenient to have the motion only (re)start a timer. Then two other automations - when the timer (re)starts the light goes on - and when the timer is canceled or finished the light goes off. There are of hosts other automations enhancements I inluded such as an numeric slider which updates the duration of the timer, drop downs for enabling and disabling the automation, automations to stop the timer when the light switch is turned off, etc.

Thanks this might be easiest