Hi all,
I’m struggling with the automation where I would like to:
Turn lights on in front-yard when there is motion and lux_low is true + turn lights off after 3 mintues
Turn lights on in front-yard when front-door is open and lux_low is true + turn lights off after 3 minutes
I have two automations configured:
- alias: Voortuin lights when dark and motion
description: ''
trigger:
- type: state
entity_id: binary_sensor.hue_outdoor_motion_sensor_1_motion
state: 'on'
condition:
- type: state
entity_id: sensor.lowlux_outside
state: 'True'
action:
- service: light.turn_on
data:
entity_id: group.voortuin_lights
- delay: 00:03:00
- service: light.turn_off
data:
entity_id: group.voortuin_lights
and second automation:
- alias: Voordeur lights
description: ''
trigger:
- platform: state
entity_id: binary_sensor.openclose_34
from: 'off'
to: 'on'
condition:
- type: state
entity_id: sensor.lowlux_outside
state: 'True'
action:
- service: light.turn_on
data:
entity_id: group.voortuin_lights
- delay: 00:02:00
- service: light.turn_off
data:
entity_id: group.voortuin_lights
Does anyone see the mistake ? Automations are not working
Thanks very much in advance !
Kind regards,
Bart