# DIY Smart lock with electro magnet

**URL:** <https://community.homey.app/t/diy-smart-lock-with-electro-magnet/12426>\
**Category:** Devices\
**Created:** [April 29, 2019, 8:23am UTC](https://community.homey.app/t/diy-smart-lock-with-electro-magnet/12426 "2019-04-29T08:23:37Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![victoroos](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/victoroos/32/8344_2.png) [@victoroos](https://community.homey.app/u/victoroos)\
**Post date:** [April 29, 2019, 8:23am UTC](https://community.homey.app/t/diy-smart-lock-with-electro-magnet/12426/1 "2019-04-29T08:23:37Z")

</div>

Hi All

I have been thinking with a friend of mine about making a smart lock using electro magnet.

Then I want to add a sigbee / zwave switchy and I guess an adapter in a socket?

Does anyone have some experience with these kind of projects?

What do I have to pay attention to? What switch is good (and volt / ampere wise )

vkr  
victor

---

<div class="post-metadata">

**Author:** ![Stefan\_Wempe](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/stefan_wempe/32/9572_2.png) [@Stefan\_Wempe](https://community.homey.app/u/Stefan_Wempe)\
**Post date:** [April 29, 2019, 9:38am UTC](https://community.homey.app/t/diy-smart-lock-with-electro-magnet/12426/2 "2019-04-29T09:38:47Z")

</div>

take in mind your door will be unlocked with any power outages.  
also concider an emergy open procedure for when homey is offline for whatever reason.

i use this particular locks because it also provides feedback (locks when the door is closed, alarms when its open for too long)  
and i provided a keyswitch for emergency opening it.

> **[US $13.63 6% OFF|Electric Drop Bolt Mortise Door Lock Fail Safe fail Secure...](https://www.aliexpress.com/item/Electric-Drop-Bolt-Mortise-Door-Lock-Fail-Safe-fail-Secure-with-Feedback-For-wooden-glass-Security/32891633993.html)**
>
> Smarter Shopping, Better Living! Aliexpress.com

---

<div class="post-metadata">

**Author:** ![victoroos](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/victoroos/32/8344_2.png) [@victoroos](https://community.homey.app/u/victoroos)\
**Post date:** [April 30, 2019, 5:23pm UTC](https://community.homey.app/t/diy-smart-lock-with-electro-magnet/12426/3 "2019-04-30T17:23:59Z")

</div>

How do you connect homey to it? What adapter to do you use?..and what do you mean with a key switch? As in a button?

---

<div class="post-metadata">

**Author:** ![Pino](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/pino/32/22822_2.png) [@Pino](https://community.homey.app/u/Pino)\
**Post date:** [April 30, 2019, 9:54pm UTC](https://community.homey.app/t/diy-smart-lock-with-electro-magnet/12426/4 "2019-04-30T21:54:56Z")

</div>

My 2 cents are: integrate the lock with HomeyDuino using a NodeMCU ESP8266 as demonstrated with a doorbell here: [HomeyDuino @V2.0 NodeMCU ESP8266 Smart doorbell succesfully working](https://community.homey.app/t/homeyduino-v2-0-nodemcu-esp8266-smart-doorbell-succesfully-working/10325)

---

<div class="post-metadata">

**Author:** ![victoroos](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/victoroos/32/8344_2.png) [@victoroos](https://community.homey.app/u/victoroos)\
**Post date:** [May 4, 2019, 4:13pm UTC](https://community.homey.app/t/diy-smart-lock-with-electro-magnet/12426/5 "2019-05-04T16:13:40Z")

</div>

Hmm. How would you? As in. What does the duino add? 🙂

---

<div class="post-metadata">

**Author:** ![Pino](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/pino/32/22822_2.png) [@Pino](https://community.homey.app/u/Pino)\
**Post date:** [May 4, 2019, 5:14pm UTC](https://community.homey.app/t/diy-smart-lock-with-electro-magnet/12426/6 "2019-05-04T17:14:15Z")

</div>

Hi Victor,

By adding the esp8266 or nodemcu you get Homey integration via wifi enabling you to be notified when the lock is used, locked or unlocked. And even to lock or unlock remotely.

---

<div class="post-metadata">

**Author:** ![Emile86](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/emile86/32/606_2.png) [@Emile86](https://community.homey.app/u/Emile86)\
**Post date:** [May 8, 2019, 9:29am UTC](https://community.homey.app/t/diy-smart-lock-with-electro-magnet/12426/7 "2019-05-08T09:29:12Z")

</div>

I have ordered this lock and my idea is to add it as second lock when somebody is at home and going to sleep homey will close it and when somebody want to leave home pir at the front door will trigger homey to unlock it.

I think to add esp8266 to it.

Nice part of this lock is that it not accessible from outside

> **[US $91.81 45% OFF|RAYKUBE Wireless Electronic Lock With Remote Control Keys...](https://www.aliexpress.com/item/32857241832.html?spm=a2g0o.cart.0.0.7e1c3c00OWxpTD)**
>
> Smarter Shopping, Better Living! Aliexpress.com

It has also backup battery

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/2X/e/e90a81ce9a614230d564e56fcb4b0d9515af8c94.jpeg)

And in case of emergency is possible to unlock it manually

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/2X/d/dfe7564d4486db485f36051e566e12286df39117.jpeg)
