Hey all! I’m trying to trigger an automation when The state of a binary sensor changes. Its all a big mess atm. I’ve found that this works The best for one of my sensors:
alias: Motion driveway
description: ''
trigger:
- platform: state
entity_id: binary_sensor.cam_driveway_global_motion_sensor
condition:
- condition: state
entity_id: input_boolean.motion_driveway
state: 'off'
action:
- service: input_boolean.turn_on
target:
entity_id: input_boolean.motion_driveway
- service: input_boolean.turn_on
target:
entity_id: input_boolean.camera_driveway_trigger
- service: timer.start
data:
duration: '60'
target:
entity_id: timer.driveway_1_min_0
- service: timer.start
data:
duration: '300'
target:
entity_id: timer.driveway_5_min_0
mode: single
It works fine with The driveway but I have The exact same setup for my doorbell and it doesnt recognize it.
I’ve tried with The state changing from off to on but that doesn’t work. If I move outside The door, The doorbell Will recognize it but it doesn’t trigger The automation. Its nothing wrong with The action since I can see when The trigger was last triggered.
How can i fix this?
Thank you