10-09-2025 09:32 AM
When using the script editor to create a home automation, is it possible to set a specific code/user unlocking the door as a starter?
I know something along the lines of:
- starters:
- type: device.state.LockUnlock
device: Front Door - Dining room
state: isLocked
is: falsewill start a routine any time the door is unlocked, but I only want the routine to run when a specific user unlocks the door (i.e. turning on all the lights when my cleaners come).
Answered! Go to the Recommended Answer.
10-13-2025 02:04 PM
Hello,
Unfortunately, Google Home automations don't currently support triggering based on specific lock users or access codes. The device.state.LockUnlock starter only detects whether the lock is locked or unlocked, not which user or code was used. The automation system can't differentiate between different users unlocking the door - it only knows the lock state changed.
Possible workarounds:
This would be a valuable addition to the automation system. Please file a feature request in Google's Issue Tracker and post the bug/issue ID back here. I can then escalate it to the appropriate team for consideration in future updates.
10-13-2025 02:04 PM
Hello,
Unfortunately, Google Home automations don't currently support triggering based on specific lock users or access codes. The device.state.LockUnlock starter only detects whether the lock is locked or unlocked, not which user or code was used. The automation system can't differentiate between different users unlocking the door - it only knows the lock state changed.
Possible workarounds:
This would be a valuable addition to the automation system. Please file a feature request in Google's Issue Tracker and post the bug/issue ID back here. I can then escalate it to the appropriate team for consideration in future updates.
10-17-2025 07:53 AM
The issue ID is 452843330.