Hi.
I would like to have my door unlock after I reach my home area and my ring doorbell dects movement (my lock only stays unlocked for 30 seconds so I don’t want it to unlock the moment I get close enough to my house it detects I’m home.) But I also only want the ring motion sensor to unlock my door when my presence changes from away to home. (I don’t want my door unlocking everytime some walks up to my door just because I’m home.)
In my head, I would need a loop function for this that is triggered when my presence is detected at being home. It looks like I would use the wait function for this but the documentation seems to indicate that is only for scripts (I guess I could call a script when my I am detected home…)
right now I have
- alias: Unlock Because I’m home
trigger:- platform: state
entity_id: device_tracker.david_4de13167e3f04b2fab4d03170adce97a
from: ‘not_home’
to: ‘home’
action: - service: lock.unlock
entity_id: lock.door_lock
- platform: state