grrravity
(thomas baker)
October 29, 2023, 3:02pm
1
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
Sir_Goodenough
((SG) WhatAreWeFixing.Today)
October 29, 2023, 6:52pm
2
This isn’t blueprint related. To get a wider audience looking at this please remove the blueprints designation in the top topic.
Sir_Goodenough
((SG) WhatAreWeFixing.Today)
October 29, 2023, 6:53pm
3
To help with your question there is only 1 trigger there. changing either entity will trigger it.
grrravity
(thomas baker)
October 29, 2023, 6:55pm
4
Thanks for the reply and information. Second time posting and wasn’t sure which category. Couldn’t find automations only category.
Sir_Goodenough
((SG) WhatAreWeFixing.Today)
October 29, 2023, 7:05pm
5
That’s ok. You can add automations as a tag if you want to do that.
tom_l
October 30, 2023, 1:59am
6
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
grrravity
(thomas baker)
October 30, 2023, 2:40am
7
Thanks. I’ll give it a shot