Showing results for 
Search instead for 
Did you mean: 

Camera Activation when door is locked.

Community Member

I would very much like the ability to set an automation that turns a camera to On when a smart lock is set to Locked. This would be very useful as you do not want your rear patio camera on all the time recording your own movements in and out of the back door. If the camera came on automatically when the back door was locked, the patio would then be constantly monitored when no one was using the back yard. Currently a camera can only be used as an automation starter by using a range of times.



Hey @MSN - This automation should be possible. You'd need a device state starter for your lock and a device OnOff action.  Full list of supported starters, conditions, and actions can be found here -

OnOff snippet below:

    - type: device.command.OnOff # Turn the device on or off.
      on: true
      devices: Entryway camera - Entryway


That worked! Thank you so much! I wasn't familiar with writing scripts ... I was trying to do it through the app and it wouldn't let me. In the end I used type: device.state.LockUnlock as the starter. This has opened up a whole new world to me 🙂

Awesome! I'm glad to hear it worked! You can check out more details about what's possible with our help center documentation and corresponding reference documentation .