# Display a relay as a lock?

**URL:** <https://community.smartthings.com/t/display-a-relay-as-a-lock/198512>\
**Category:** Projects & Stories\
**Tags:** zwave, lock\
**Created:** [June 30, 2020, 9:24pm UTC](https://community.smartthings.com/t/display-a-relay-as-a-lock/198512 "2020-06-30T21:24:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![binaryhellstorm](https://avatars.discourse-cdn.com/v4/letter/b/f0a364/32.png) [@binaryhellstorm](https://community.smartthings.com/u/binaryhellstorm)\
**Post date:** [June 30, 2020, 9:24pm UTC](https://community.smartthings.com/t/display-a-relay-as-a-lock/198512/1 "2020-06-30T21:24:01Z")

</div>

I’m trying to find a way around a problem I have here. I have a fence into my backyard and I’d like to be able to secure it, but since I’m this far down the rabbit hole of home automation naturally I want it to have some sort of smart lock. But… there don’t seem to be any Z-Wave smart locks that are rated for the outdoors on both sides. So failing that I’m thinking I’ll just use a solenoid latch rated for outdoor use and a Zwave relay to run it. But I’d like to set the relay to show as a lock in smart things. Is there any way to do something like this? This closest I’ve come is the Rboys app that allows you to use a relay and a switch and simulated a garage door, which I love and use on my actual garage door.

---

<div class="post-metadata">

**Author:** ![saosinx88](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/saosinx88/32/182630_2.png) [@saosinx88](https://community.smartthings.com/u/saosinx88)\
**Post date:** [June 30, 2020, 10:42pm UTC](https://community.smartthings.com/t/display-a-relay-as-a-lock/198512/2 "2020-06-30T22:42:58Z")

</div>

You can use a Simulated Lock and a simple automation that when the relay is on, lock the simulated lock. Relay off, and it unlocks. Or vice versa.

---

<div class="post-metadata">

**Author:** ![RBoy](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/rboy/32/62677_2.png) [@RBoy](https://community.smartthings.com/u/RBoy)\
**Post date:** [July 2, 2020, 6:04pm UTC](https://community.smartthings.com/t/display-a-relay-as-a-lock/198512/3 "2020-07-02T18:04:32Z")

</div>

You would need a custom device handler for what you’re looking to do.

The other option is to use a Keypad Lock [like one of these](https://community.smartthings.com/t/release-enhanced-zigbee-keypad-device-handler-centralite-uei-iris-xfinity-scout/124776) and use it to control your Relay. Keep the keypad and relay in sync using in this app: [[RELEASE] Lock and Door Synchronizer, synchronize your locks with other locks, deadbolts, doors, switches/relays](https://community.smartthings.com/t/release-lock-and-door-synchronizer-synchronize-your-locks-with-other-locks-deadbolts-doors-switches-relays/126467)
