Hi all,
My motion and turn_on services work in my automation. But when the motion sensor detects NO motion, the lights should turn off after 1 minute… somehow my automation won’t work…
Can someone please have a look and help me out ???
Kindly appreciated !
- id: '1641772686099'
alias: Keuken lichten aan bij zonsondergang
description: ''
trigger:
- type: motion
platform: device
device_id: 316e40db262e880e3f4197c5515f33c9
entity_id: binary_sensor.hue_motion_sensor_2_motion
domain: binary_sensor
- type: illuminance
platform: device
device_id: 74bb95876114f6a3a38f492cb9d97d63
entity_id: sensor.hue_motion_achtertuin_illuminance
domain: sensor
below: 10
condition:
condition: state
entity_id: light.dimmable_light_6
state: 'off'
action:
- service: input_boolean.turn_on
entity_id: input_boolean.motion_detected
- type: turn_on
device_id: 0fea5c2c902a92aa76287e38bda8f4f0
entity_id: light.dimmable_light_6
domain: light
- type: turn_on
device_id: d40cf8a83d19333b9190cb78bf459f4f
entity_id: light.dimmable_light_7
domain: light
mode: single
- id: '1641772686100'
alias: Keuken lichten uit na geen beweging
description: ''
trigger:
- type: motion
platform: device
device_id: 316e40db262e880e3f4197c5515f33c9
entity_id: binary_sensor.hue_motion_sensor_2_motion
domain: binary_sensor
to: 'off'
for: '00:01:00'
condition:
condition: state
entity_id: input_boolean.motion_detected
state: 'on'
action:
- service: input_boolean.turn_off
entity_id: input_boolean.motion_detected
- type: turn_off
device_id: 0fea5c2c902a92aa76287e38bda8f4f0
entity_id: light.dimmable_light_6
domain: light
- type: turn_off
device_id: d40cf8a83d19333b9190cb78bf459f4f
entity_id: light.dimmable_light_7
domain: light
mode: single