Git Product home page Git Product logo

konnected-security's Introduction

konnected.io

GitHub release

Konnected Security

Konnected Security integrates wired alarm system sensors and sirens to SmartThings, Home Assistant, OpenHAB, or Hubitat using a NodeMCU based ESP8266 development board and (optional) relay. This project consists of a few components:

  1. NodeMCU based firmware for an ESP8266 development board in firmware
  2. Lua and HTML source code for the NodeMCU in src. All these files are built into a SPIFFS file system which runs on NodeMCU
  3. SmartThings platform code in smartapps and devicetypes

Skip this Installation!

Buy a Konnected Security NodeMCU kit from us and you can skip the installation! We pre-load the Konnected Security software on every NodeMCU device before sending it to you. When you get it, just plug it in connect to WiFi, and it's ready to set up. Buying from us is great way to support the developers who have worked hard on this project.

Getting Started

  1. Flash the device with the latest firmware and filesystem firmware/releases using the instructions in the Konnected Security Support Documentation
  2. Connect to the WiFi network konnected-security_XXXXXX to set up WiFi
  3. Follow wiring instructions and application setup instructions in the Konnected Security Documentation

Note on Device Drivers

Windows and Mac users will need to download drivers so your computer can talk to the ESP8266 chip over USB. Depending on which board you have, there are different drivers:

WeMos CH340 drivers for boards that:

  • have the name LoLin on the back or front
  • the small rectangular component on the board near the USB port is engraved with CH340G
  • Mac OS X Sierra users: use this driver

Silicon LabsUSB to UART drivers for boards that:

  • have the name Amica on the back
  • the small component on the board near the USB port is engraved with SiLABS CP2102

Building the Firmware

Konnected leverages the NodeMCU codebase and Docker builder to create a base nodeMCU firmware image and a filesystem containing the Konnected application. Building only requires a few steps.

  1. Download and install Docker

  2. Clone the Konnected and nodeMCU repos to the same level in your working directory

     git clone https://github.com/konnected-io/konnected-security.git
     git clone https://github.com/nodemcu/nodemcu-firmware.git
    
  3. Check out the 2.2.1 release of nodemcu

     pushd nodemcu-firmware && git checkout 2.2.1-master_20190405 && popd
    
  4. Use the build-firmware script to kick off the build - providing a semantic version command line argument as shown below. The build script will automatically pull down the nodeMCU docker builder, build the base firmware, create an LFS image, and build a SPIFFS file system containing the entire Konnected application.

     cd konnected-security
     ./scripts/build-firmware 2-2-99
    
  5. Once the build completes a folder will be created in firmware/builds named after the version specified in the previous step. This folder will contain two files also reflecting the version.

    1. konnected-filesystem-0x100000-2-2-99.img
    2. konnected-firmware-2-2-99.bin

Note: Each time you build it will remove any prior build outputs corresponding to the same version. Note: Versions in this project should always be formatted <major>-<minor>-<patch>.

Flashing a Build

Flashing a build is simple with the Konnected Flashing Tool.

Mac and Linux users can also easily flash from the command line using scripts/flash.

  1. You must have Python installed with pip or pip3.

    • Mac users: I recommend using Homebrew and brew install python
  2. Open up a terminal and install esptool packages:

    pip3 install esptool
    
  3. Run the script in scripts/flash to flash the firmware and software to the device. You must pass in version and serial port args. The flash script will always attempt to flash a matching version in firmware/builds before falling back to firmware/releases

     ./scripts/flash 2-2-99 /dev/ttyS3
    

Note: You may also need to make the script executable by running chmod 755 scripts/flash.

Donations

We work hard on this project because we're passionate about making home automation accessible to everybody. Millions of homes in North America and worldwide are already wired with sensors and have the potential to become smart homes. We want to make this a reality.

If you've used Konnected Security and it's improved your life and your home security, please consider donating to help us achieve that goal.

Thank you for your support,

Nate Clark @heythisisnate

konnected-security's People

Contributors

heythisisnate avatar copy-ninja avatar dpaquette avatar kit-klein avatar naugler avatar emosenkis avatar greghaynes avatar bazza2000 avatar rdmorin avatar volfan6415 avatar

Stargazers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.