cancel
Showing results for 
Search instead for 
Did you mean: 

Setting a specific lock user as an event starter

sbailey1
Community Member

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: false

 will 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).

1 Recommended Answer

Suc_dpe
Solutions Expert
Solutions Expert

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:

  1.  Some smart locks (Nest x Yale, August, etc.) have their own automation features that can trigger actions based on specific user codes
  2. Services like IFTTT, Home Assistant, or SmartThings may have access to more detailed lock events including user identification
  3. If your lock supports it, you could set up a separate "cleaner code" that they use on a specific lock, then trigger based on that lock's unlock event

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.

View Recommended Answer in original post

2 REPLIES 2

Suc_dpe
Solutions Expert
Solutions Expert

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:

  1.  Some smart locks (Nest x Yale, August, etc.) have their own automation features that can trigger actions based on specific user codes
  2. Services like IFTTT, Home Assistant, or SmartThings may have access to more detailed lock events including user identification
  3. If your lock supports it, you could set up a separate "cleaner code" that they use on a specific lock, then trigger based on that lock's unlock event

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.

sbailey1
Community Member

The issue ID is 452843330.