Motion activated light

Do both triggers have to activate to make this work or can 1 trigger activate the automation?

thanks

description: ""
trigger:
  - platform: state
    entity_id:
      - binary_sensor.flood_light_sensor_motion
      - binary_sensor.back_yard_flood_light_sensor_motion
    to: "on"
condition:
  - condition: time
    weekday:
      - sun
      - mon
      - tue
      - wed
      - thu
      - fri
      - sat
    after: "17:00:00"
    before: "07:00:00"
action:
  - service: switch.turn_on
    data: {}
    target:
      entity_id: switch.right_side_flood_light
  - delay:
      hours: 0
      minutes: 3
      seconds: 0
      milliseconds: 0
  - service: switch.turn_off
    data: {}
    target:
      entity_id: switch.right_side_flood_light
mode: single

This isn’t blueprint related. To get a wider audience looking at this please remove the blueprints designation in the top topic.

To help with your question there is only 1 trigger there. changing either entity will trigger it.

Thanks for the reply and information. Second time posting and wasn’t sure which category. Couldn’t find automations only category.

That’s ok. You can add automations as a tag if you want to do that.

It helps if you think about making your automations state driven. What turns off the light?

A lack of movement for a certain time. Not just a time. So don’t use a delay in your automation to turn off the light. Use another trigger. See: Motion activated lights automation

You can add your extra trigger entities and conditions.

1 Like

Thanks. I’ll give it a shot