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