I’m new to using the automation editor in the UI but I love the simplicity; just can’t figure out what I’m doing wrong. Here’s what I’m trying to do: When the door goes from locked to unlocked wait 30 seconds and then lock the door.
I can successfully manually trigger the automation through the UI by clicking the info button and selecting “TRIGGER”. I can call the lock.lock service successfully in developer tools. But the automation won’t ever trigger by itself. What am I missing?
Trigger Type: State
Entity: lock.frontdoor_lock
From: locked
To: unlocked
For: 00:30
no conditions are set
Actions
Action Type: Call Service
Service: lock.lock
Service data: entity_id: lock.frontdoor_lock
Back in the version .7 to .8 range I had coded the same automation manually and I think this was my code. Note* the entity_id is correct in both examples. I have since changed it from lock.lock_front_door_lock to lock.frontdoor_lock
- id: '1550159043759'
alias: Auto Lock Front Door
trigger:
- entity_id: lock.lock_front_door_lock
for: 00:02:00
from: locked
platform: state
to: unlocked
condition: []
action:
- data:
entity_id: lock.lock_front_door_lock
service: lock.lock