# Update July 15, 2017
## This project has been renamed and superseded by [Konnected Security 2.0](https://github.com/konnected-io/konnected-security)
The original author (**@heythisisnate**) teamed up with SmartThings community member **@copyninja** and we created a
complete re-write of this alarm system integration project that's much easier to set up and more stable. We recommend
**all users** upgrade to the new version: [https://github.com/konnected-io/konnected-security](https://github.com/konnected-io/konnected-security)
See the [SmartThings Community release announcement thread here](https://community.smartthings.com/t/release-konnected-security-2-0-connect-wired-alarm-system-sensors-and-siren-to-smartthings-big-update-and-new-name/92828/7)
Also check out the [Konnected Security Install Guide](https://docs.konnected.io/security-alarm-system) for more detailed
setup and wiring instructions.
Unfortunately, since this is a re-write, there's no direct upgrade path for users of the original project to Konnected
Security 2.0. You'll have to remove your devices from SmartThings and set them up again using the app.
## SmartThings Connected Wired Security System using a NodeMCU ESP8266
This project will help you connect wired contact sensors and motion sensors from an old wired home alarm system (such as
Honeywell, ADT, Interlogix, etc) to Samsung SmartThings. Convert your old wired alarm system into an internet connected
Smart Alarm!
We use an inexpensive NodeMCU ESP82660 wifi enabled development board to connect our wired alarm system sensors to the
SmartThings.
There are three components to the project:
1. a SmartThings Device Handler for contact sensors and motion sensors
2. a SmartThings SmartApp that interfaces with the Wifi-connected device in your home
3. Lua code for the NodeMCU device that connects your wired system to the cloud
## Update June 17 2017
#### Release 1.6: Easy OAuth and Pre-Loaded Kits Available for Pre-order!
**Easy OAuth:** Many people who contacted me for help were having trouble with the OAuth flow. In the latest [1.6 release](https://github.com/heythisisnate/nodemcu-smartthings/releases/tag/1.6)
this is now much simpler! You no longer have to manually do the OAuth step. Just open your browser, copy and paste your OAuth
Client ID and Secret when prompted, and the application handles the rest.
**Pre-loaded Kits for Sale!** I'm working hard to make it as easy as possible for anyone to connect their wired alarm system
to SmartThings, so I've decided to begin selling all-inclusive DIY kits with this software pre-loaded! With one of my DIY kits,
there's no flashing or code to modify. Simply wire your sensors and alarm following the online instructions and open up
your web browser to configure.
### [Now Accepting Pre-orders](https://nodemcu-smartthings.com/collections/wired-alarm-system-smartthings-connection-kits-and-accessories) for first shipment in August 2017
<img src="screenshots/complete-kit.jpg" width="252" height="189" align="right"/>
#### [Wired Alarm System Complete DIY Kit](https://nodemcu-smartthings.com/collections/wired-alarm-system-smartthings-connection-kits-and-accessories/products/wired-alarm-system-complete-kit)
* For connecting up to 5 sensors and one siren or alarm
* Software is pre-loaded! Just wire it up and configure with your web browser.
* Includes NodeMCU board, NodeMCU base, relay for siren, and jumper wires
* Includes email support to help you get up and running
* **Pre-order now** for first shipment in August 2017
<img src="screenshots/add-on-kit.jpg" width="252" height="189" align="right"/>
#### [Wired Alarm System Add-on DIY Kit](https://nodemcu-smartthings.com/collections/wired-alarm-system-smartthings-connection-kits-and-accessories/products/wired-alarm-system-add-on-kit)
* For connecting up to 6 sensors (no siren)
* Software is pre-loaded! Just wire it up and configure with your web browser.
* Includes NodeMCU board, NodeMCU base and jumper wires
* Includes email support to help you get up and running
* **Pre-order now** for first shipment in August 2017
#### [Donate to this Project!](https://nodemcu-smartthings.com/products/donate-to-this-project)
* If you've loved this open-source project, donate any amount to support it!
### Background
The house I live in was built in the early 90s and came with a built-in home security system. I'm not interested in using the outdated alarm system panel, but I wanted to connect the contact sensors in my doors and the motion sensor in my house to SmartThings. I learned about the NodeMCU ESP8266, a small, cheap, programmable development board that has WiFi built in. I set out to connect my door and motion sensors to the NodeMCU and program it to update SmartThings every time a change is detected.
### Materials
1. A NodeMCU development board. [This is the one I bought on Amazon](https://www.amazon.com/gp/product/B010O1G1ES/ref=as_li_tl?ie=UTF8&camp=1789&creative=9325&creativeASIN=B010O1G1ES&linkCode=as2&tag=heythisisnate-20&linkId=2234c680df64af67b74eb313b8ca82df) for about $8 with Prime shipping.
1. A [basic breadboard](https://www.amazon.com/gp/product/B00WZSSDCW/ref=as_li_qf_sp_asin_il_tl?ie=UTF8&tag=heythisisnate-20&camp=1789&creative=9325&linkCode=as2&creativeASIN=B00WZSSDCW&linkId=9d7c5cb3d9c1dde81a0789567f296c78) or [3-pack](https://www.amazon.com/gp/search/ref=as_li_qf_sp_sr_il_tl?ie=UTF8&tag=heythisisnate-20&keywords=B01N12ZULY&index=aps&camp=1789&creative=9325&linkCode=xm2&linkId=ea15eee83d4897e13cfab03e3ffea1b3).
1. Some [extra wires of various male/female combinations](https://www.amazon.com/gp/product/B01FSGGJLY/ref=as_li_tl?ie=UTF8&tag=heythisisnate-20&camp=1789&creative=9325&linkCode=as2&creativeASIN=B01FSGGJLY&linkId=c23cd9573b73d437a52781fee10722e6).
1. A [microUSB power supply](https://www.amazon.com/gp/product/B00GF9T3I0/ref=as_li_qf_sp_asin_il_tl?ie=UTF8&tag=heythisisnate-20&camp=1789&creative=9325&linkCode=as2&creativeASIN=B00GF9T3I0&linkId=72fc777b3abc63d2c2b86d1ff1343e18) or try one of these [other ways to power the device](http://henrysbench.capnfatz.com/henrys-bench/arduino-projects-tips-and-more/powering-the-esp-12e-nodemcu-development-board/)
1. To connect your alarm siren or strobe light, you'll need a relay that the board can switch with a 3.3V signal. [These work well](http://amzn.to/2olmuNb) and are
only a few dollars [each](http://amzn.to/2obFako) (ship from China).
_Update:_ Later on I saw [this NodeMCU board with a base](https://www.amazon.com/gp/product/B01MDTKAR2/ref=as_li_qf_sp_asin_il_tl?ie=UTF8&tag=heythisisnate-20&camp=1789&creative=9325&linkCode=as2&creativeASIN=B01MDTKAR2&linkId=f5b8649950c46c0644e88dfbace7567d) that looks like it eliminates the need for a breadboard. And [this kit](https://www.amazon.com/gp/product/B01N3KO7QV/ref=as_li_qf_sp_asin_il_tl?ie=UTF8&tag=heythisisnate-20&camp=1789&creative=9325&linkCode=as2&creativeASIN=B01N3KO7QV&linkId=d4335e6ef6331d73be4fa83bf3cfc338) also includes 40 jumper cables making it an attractive all-in-one starter set.
_Update 2:_ One user reported that he had success with [this board](https://www.amazon.com/gp/product/B01N3P763C/ref=as_li_qf_sp_asin_il_tl?ie=UTF8&tag=heythisisnate-20&camp=1789&creative=9325&linkCode=as2&creativeASIN=B01N3P763C&linkId=f546e4e49606dfb8ec7bd89b0cadfeb4) which has 7 GPIO pins available for connecting sensors. With the board I bought and linked above, I could only get 4 or 5 pins working reliably. This may be a good option if you have more sensors and don't want to set up multiple devices.
### Annotated Photo
![](pics/20170405_094441.jpg)
## Updates
### v1.6 / 2017-06-17
_Feature:_ Easy OAuth. The application handles the OAuth flow automatically now. Just point your browser
to `http://<your-device-ip>:8100/oauth`. See the updated README for details.
_Feature:_ Authorize multiple alarms with the SmartApp.
_Bug Fix:_ Strobe output did not work due to copy/paste bug.
_Bug Fix:_ Fix
没有合适的资源?快使用搜索试试~ 我知道了~
使用 NodeMCU ESP8266将有线接触传感器和/或运动传感器连接到 SmartThings_Lua代码
共36个文件
png:10个
lua:7个
jpg:5个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 157 浏览量
2022-07-13
22:25:08
上传
评论
收藏 11.48MB ZIP 举报
温馨提示
用 NodeMCU ESP8266 的 SmartThings 连接有线安全系统 该项目将帮助您将有线接触传感器和运动传感器从旧的有线家庭报警系统(如 Honeywell、ADT、Interlogix 等)连接到三星 SmartThings。将您的旧有线报警系统转换为连接互联网的智能报警器! 我们使用廉价的 NodeMCU ESP82660 wifi 开发板将我们的有线报警系统传感器连接到 SmartThings。 该项目包含三个组件: 用于接触传感器和运动传感器的 SmartThings 设备处理程序 一个 SmartThings SmartApp,可与您家中的 Wifi 连接设备连接 用于将有线系统连接到云的 NodeMCU 设备的 Lua 代码 更多详情、使用方法,请下载后细读README.md文件
资源推荐
资源详情
资源评论
收起资源包目录
nodemcu-smartthings-master.zip (36个子文件)
nodemcu-smartthings-master
pics
20170129_102807_sm.jpg 41KB
20170405_094441.jpg 7.89MB
Screenshot_20170129-233727.png 38KB
20170129_104032_sm.jpg 40KB
screenshots
complete-kit.jpg 1.13MB
add-on-kit.jpg 347KB
ARC2017-02-0522-53-21.png 329KB
localhost2017-02-05-22-24-28.png 114KB
ESPlorer2017-02-06-23-02-30.png 551KB
Authorization2017-02-05-21-59-54.png 177KB
ARC2017-02-05-22-09-03.png 292KB
ARC2017-02-05-22-11-09.png 158KB
ARC2017-02-05-22-52-45.png 220KB
ESPlorer2017-02-06-22-58-30.png 419KB
ESP2017-06-17-14-37-45.png 165KB
firmware
nodemcu-master-9-modules-2017-01-15-08-48-34-integer.bin 441KB
nodemcu-1.5.4.1-final-10-modules-2017-03-23-20-42-52-integer.bin 448KB
LICENSE 1KB
lua
oauth.lua 2KB
common.lua 530B
credentials.lua.example 50B
oauth.html 1KB
variables.lua.example 2KB
alarm.lua 2KB
application.lua 3KB
oauth-complete.html 287B
server.lua 3KB
boot.lua 137B
init.lua 847B
.gitignore 39B
SmartThings
cloud-sensor.groovy 3KB
DeviceHandlers
nodemcu-connected-motion-sensor.groovy 1KB
nodemcu-connected-contact-sensor.groovy 1KB
nodemcu-connected-alarm.groovy 3KB
nodemcu-connected-smoke-detector.groovy 1KB
README.md 19KB
共 36 条
- 1
资源评论
快撑死的鱼
- 粉丝: 1w+
- 资源: 9156
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功