So I bought several presence sensors and they are working just fine I just want to change the PIR timeout.
I created this automation that turns on a light when it detects PIR movement and when PIR movement is not dectected anymore it turns off the light (only when it's dark).
The PIR by default sends the OFF signal after around 15 seconds so it turns the light off after 15 seconds.
I would like to increase the 15 seconds to something like 30 seconds, so I tried to change the "Fading Time" but it doesn't do anything, any help?
alias: Office Light
description: ""
trigger:
- type: motion
platform: device
device_id: 1111111111
entity_id: 2222222222
domain: binary_sensor
id: motion_detected_on
- type: no_motion
platform: device
device_id: 1111111111
entity_id: 2222222222
domain: binary_sensor
id: motion_detected_off
action:
- choose:
- conditions:
- condition: and
conditions:
- condition: trigger
id:
- motion_detected_on
- type: is_illuminance
condition: device
device_id: 1111111111
entity_id: 3333333333
domain: sensor
below: 0.1
alias: It's dark
sequence:
- service: light.turn_on
metadata: {}
data:
brightness_pct: 5
rgb_color:
- 255
- 101
- 0
target:
device_id: 4444444444
- type: turn_off
device_id: 4444444444
entity_id: 5555555555
domain: light
- conditions:
- condition: or
conditions:
- condition: trigger
id:
- motion_detected_off
- type: is_no_motion
condition: device
device_id: 1111111111
entity_id: 5555555555
domain: binary_sensor
sequence:
- service: light.turn_off
target:
device_id:
- 4444444444
data: {}
mode: single
I'm trying to do that but apparently I can't just add one yml section that already exists on the original on git hub, it says the id already exists and the gpio as well, what's the proper way to override any yaml configuration?
btw, after the last update the led is always rapidly blinking which is not ideal for a. bedroom.
I think you'd be better off modifying the sensor's configuration directly
https://github.com/athom-tech/athom-configs/blob/3f7cbc8c4bc74ea9cb953de7cb0dc3a22b4a0905/athom-presence-sensor.yaml#L98