Recent Projects / Posts

Amazon Product List

If you are planning on purchasing any of the items listed here from Amazon, please use the links below. Using these links will provide a small contribution to maintain this site at no additional cost to you. Thank You for your support.

  • Diversitech® WS-1 - Wet Switch Flood Detector
    Diversitech® WS-1 - Wet Switch Flood Detector
  • Twine Portable Wi-Fi Sensor + Full Sensor Package
    Twine Portable Wi-Fi Sensor + Full Sensor Package
  • Getting Started with Raspberry Pi
    Getting Started with Raspberry Pi
  • Edimax EW-7811Un 150 Mbps Wireless 11n Nano Size USB Adapter with EZmax Setup Wizard
    Edimax EW-7811Un 150 Mbps Wireless 11n Nano Size USB Adapter with EZmax Setup Wizard
  • Airlink Fully compatible Wireless N 150 Ultra Mini-USB Adapter (AWLL5099)
    Airlink Fully compatible Wireless N 150 Ultra Mini-USB Adapter (AWLL5099)
  • SB Clear Raspberry Pi Enclosure
    SB Clear Raspberry Pi Enclosure
  • Raspberry Pi User Guide
    Raspberry Pi User Guide
  • Onsite Pro FS1NPTW Whole Home Wireless FloodStop with 1 Inch Valve
    Onsite Pro FS1NPTW Whole Home Wireless FloodStop with 1 Inch Valve
  • Floodstop Washing Machine Valve Shutoff Kit
    Floodstop Washing Machine Valve Shutoff Kit
  • Onsite Pro FS3/4H Washing Machine FloodStop with Straight Valves
    Onsite Pro FS3/4H Washing Machine FloodStop with Straight Valves
  • Aqua Managers - FS 1 1/4-NPT - Floodstop for Water Heaters Water Leak Detection System - White - 1.25 in. pipe
    Aqua Managers - FS 1 1/4-NPT - Floodstop for Water Heaters Water Leak Detection System - White - 1.25 in. pipe
  • Floodstop Individual Water Appliance Additional Water Sensor XS-01
    Floodstop Individual Water Appliance Additional Water Sensor XS-01
  • Furman MP-20 Power Relay Accessory, 20 Amp, Two Outlets, Remote Turn-on from Momentary or Maintained Contact Switches
    Furman MP-20 Power Relay Accessory, 20 Amp, Two Outlets, Remote Turn-on from Momentary or Maintained Contact Switches
  • Furman MP-15 Power Relay Accessory, 15 Amp, Two Outlets, Remote Turn-on from Momentary or Maintained Contact Switches
    Furman MP-15 Power Relay Accessory, 15 Amp, Two Outlets, Remote Turn-on from Momentary or Maintained Contact Switches
  • Watts 500800 Premier Hot Water Recirculation Pump, Blue
    Watts 500800 Premier Hot Water Recirculation Pump, Blue
  • Watt'S Sensor Valve Kit for Hot Water Recirculating Pump (0955801)
    Watt'S Sensor Valve Kit for Hot Water Recirculating Pump (0955801)
  • Kicker 10cvt8-2 Shallow 8
    Kicker 10cvt8-2 Shallow 8" Subwoofer 2-ohm 400 Watts
  • Kenwood Kfc-P709Ps 6.5-Inch Performance Series Component Speaker System
    Kenwood Kfc-P709Ps 6.5-Inch Performance Series Component Speaker System
  • Metra 70-2002 Radio Wiring Harness for Saturn 00-05
    Metra 70-2002 Radio Wiring Harness for Saturn 00-05
  • Metra Reverse Wiring Harness 71-2002 for Select 2000-2005 Saturn Vehicles OEM Radio
    Metra Reverse Wiring Harness 71-2002 for Select 2000-2005 Saturn Vehicles OEM Radio

Contributions

Contributions are very much appreciated and are used to host this website and continue to fund new DIY home automation projects. Thank You for your support.

Sunday
Dec092012

Twine - Garage Door Monitor (Revisit)

Overview

In a previous article we discussed how to use the Twine to monitor the state of a garage door and send alert notifications via text (SMS) or email if the door had been left open for a certain period of time.  In that article/project we used the built-in orientation sensor in the Twine and the Twine mounted directly to the garage door to determine garage door state.  While this was a simple and elegant solution there a certain practical issues for a long term garage monitoring solution that this project did not really address.  

The number one issue is battery life.  Mounting the Twine directly to the garage door forces the Twine to run solely on batteries and the battery life on the Twine may be too short to be practical for a permanent installation.  Personally, I prefer a physically connected powered solution so that I don't have to concern myself with battery replacements.  The second practical need for my installation was the need to monitor more than one garage door.  Using the previous project concept, it would require 2 Twines to pull this off.  Finally, it may not be practical to mount the Twine directly to the garage door for all installations.  

In this article we will address these limitations by installing the Twine to the garage wall and not directly to the door.  We will use external magnetic sensors designed for garage doors and we will connect two door sensors to a single Twine unit to monitor the state of both garage doors.  

Shopping List

Installation

The installation time took about 30 minutes for this project.  We start with opening the garage door sensors from their packaging.  These sensors support both a normally-open (NO) and normally-closed (NC) mode of operation.  In this project we will use the normally-closed (NC) behavior and contacts.  (Normally-closed in this application means that when the magnet is not near the sensor, the circuit is closed.  When the magnet is brought in range to the sensor, the circuit becomes open.)

The advantage of using a sensor that is designed for use with a garage/overhead door is that its sensor range is much greater and thus more tolerant than a traditional security system door magnetic sensor.  The sensor range is 3 to 4 inches.   These garage door sensors are designed to be installed on a concrete floor, but in my installation, I decided to install them on the wall above the door and not go through the effort of drilling into the concrete. 

Install the sensor directly to the wall or floor and route the wires such that they will not interfere with the garage door as it travels up/down.  Install the magnet and adjustable plate directly to the garage door so that the magnet is within a couple of inches of the sensor when the garage door is fully shut.  I have two garage doors that I want to monitor so I installed a duplicate sensor on the adjacent garage door. (see photo)

Route the wires to the location where you want to install the Twine.  You may need to use nylon cable ties to hold the wires in position to prevent getting in the way of the garage door travel.  I installed mine in a location where I could easily access the Twine for battery replacement or maintenance.  You may also want to consider a location that can easily access a power outlet so the Twine can be powered locally and not rely on battery power. 

I used a 4D finish nail to hang the Twine on and a 6D common nail on the right-hand side of the Twine to hold it in place.  The Twine breakout sensor board is also required and should be installed along with the Twine using the provided 1/8" stereo wire.  The magnetic sensors can be wired directly to the Twine breakout board or you can extend them with additional wire if you need to install the Twine in a location that is a further distance than the existing sensor wires can reach.  The black wires (common) from the sensors should be attached to the GND pin on the Twine breakout board.  The red wires (NC) from the sensors should be attached to the IN pin on the Twine breakout board.  The green wires (NO) from the sensors are not used in this project.  Both garage doors are attached to the single Twine so that both doors can be monitored.  Note, they are not monitored individually or discretely, but rather as one.

The last step is to use a micro-USB power supply to power the Twine locally.  This will then use the mains power to power the Twine and the batteries will only be used for backup in the event of a power failure.  

Configuring Twine 

If you have not previously performed the initial setup configuration on your Twine, then please visit this article and perform the configuration steps before continuing.

Open a web browser and login to the Twine management web application:
https://twine.supermechanical.com/ 

Next, select the specific Twine device that you are working with from the drop-down menu at the top of the screen.

Next, we are going to create a new RULE to issue notifications when the Twine's breakout sensor is in the closed position for at least 15 minutes indicating that one of the the garage doors is open.  (If you have any existing rules defined, you may want to delete them first.)  Use the Add Rule button to create a new rule.  

The new rule should be applied as follows:

WHEN
> "breakout" changes to "is closed" after "900" seconds

THEN
> send SMS text message (and/or email)

Also make sure to define the number of seconds for the trigger time and reset time under the "Options" section of the "When" trigger.  I am using 900 seconds which is 15 minutes.  So the garage door must be open for 15 minutes before triggering the notification.

Below is rule I am using:

 

Testing

Now that we have installed the Twine and garage soor sensors to the garage doors and configured the logic rule, let's test the system.  Simply open one of the garage doors and wait the configured delay time, fifteen minutes in my case, and you should receive the text notification (and/or email).

Final Thoughts

While this project was a little more complex and involved than the first Twine garage door project, I believe that this is truly a better approach for a permanent installation.  Using this approach, the Twine can be powered locally and you can monitor multiple doors with a single Twine.  Have fun automating your home with the Twine. 

 

PrintView Printer Friendly Version

EmailEmail Article to Friend

Reader Comments (2)

Thanks for sharing this. very useful for me i will bookmark this for my future needed.

September 23, 2013 | Unregistered Commentergarage door repair Calgary

It becomes necessary to take some serious steps to ensure the security of the precious assets at home, and installation of the high security gates helps fulfilling this motive in a perfect manner.
Thanks!
Ben Meyers

June 5, 2014 | Unregistered CommenterBen Meyers

PostPost a New Comment

Enter your information below to add a new comment.

My response is on my own website »
Author Email (optional):
Author URL (optional):
Post:
 
Some HTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>
« Pi4J - Version 0.0.4 Released! | Main | Raspberry Pi - John Jay's 8 LED & Button Breakout Board »