Contributions

Contributions are appreciated and used to host this site. Thank You for your support.

Feature Products
  • Raspberry Pi with Java: Programming the Internet of Things (IoT)
    Raspberry Pi with Java: Programming the Internet of Things (IoT)
  • Raspberry Pi 2 Model B Project Board - 1GB RAM - 900 MHz Quad-Core CPU
    Raspberry Pi 2 Model B Project Board - 1GB RAM - 900 MHz Quad-Core CPU
  • Premium Clear Case for Raspberry Pi 2 Model B Quad Core and Raspberry Pi Model B+ (B PLUS)
    Premium Clear Case for Raspberry Pi 2 Model B Quad Core and Raspberry Pi Model B+ (B PLUS)
  • 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
  • Getting Started with Raspberry Pi
    Getting Started with Raspberry Pi
  • Raspberry Pi User Guide
    Raspberry Pi User Guide
  • PiBrella LED Add On Board
    PiBrella LED Add On Board
  • Diversitech® WS-1 - Wet Switch Flood Detector
    Diversitech® WS-1 - Wet Switch Flood Detector
  • 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
  • Floodstop Individual Water Appliance Additional Water Sensor XS-01
    Floodstop Individual Water Appliance Additional Water Sensor XS-01
  • 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
  • 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
  • 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

Entries in water (4)

Wednesday
Nov212012

Twine + Floodstop = Alert me when a water leak is detected

Overview

In a previous article we used the output expansion port of the  Floodstop Washing Machine Valve Shutoff Kit  to interface with a Furman MP-20/MP-15 to not only shutdown the water supply, but also disconnect  power to the washing machine when a leak is detected.   Wouldn't it be additionally beneficial if we could be notified in real time when such a water leak condition occurs.  In this article we will use that same IO capability on the Floodstop water leak detector and connect it to a Twine device to provide email alerts, SMS text messages, and/or twitter notifications (tweets).

Shopping List

Wiring

Connecting the Floodstop to Twine is an extremely simple task.  The Floodstop unit comes with a short connector lead that plugs directly into the NO (normally-open) or NC (normally-closed) output ports.

Attach the two wires from this connector lead to the IN and GND (Ground) pins on the Twine Breakout board.  (It does not matter which lead wire is connected to which pin, either direction will work.)  Then plug the connector into the NO (normally-open) output port of the Floodstop unit.

NOTE:

If you are already using the NO (normally-open) port for use with the Furman power controller or for any other purpose, then alternatively use the NC (normally-closed) output port for the Twine connection and simply reverse the trigger condition logic of the rule in the Twine configuration section.

Below is a photograph of my Twine connected to my Floodstop unit.  

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.

Also, your Breakout Board should already be connected to the Twine at this time.

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

Next, select the specific Twine device that you have connected to the Floodstop 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 Floodstop detects a water leak.  If you have any existing rules defined, you may want to delete them first.  Use the Add Rule button to create a new rule.  Since we used the NO (normally-open) output port on the Floodstop we will define a Twine rule to take action when the circuit becomes closed.  The Floodstop will close the circuit when water is detected on its sensor pad.

The new rule should be applied as follows:

WHEN
> breakout  = "is closed"

THEN
> send email and/or text messages and/or twitter post1

( 1 Twitter posts will be available in the next version of the Twine web application software

An example of the rule I am using is displayed below.

After creating the rule, make sure to click the Save to Twine button at the bottom of the screen.  It will prompt you to flip the twine on its back to immediately save the new rule to the Twine unit.  Now just wait until the save is complete.  It takes around 20-30 seconds to complete.

You are done, that's all that is needed to setup notifications from the Twine. We will now move on to testing.

Testing

Now that we have everything wired and configured, let's test the system.  Just drip a few water drops on the Floodstop sensor pad and the Floodstop should sound its audible alarm and close the water valves.  Within a few minutes (or less) you should receive the email, text message, and/or twitter post from Twine.  

 

Verify that you received the SMS text message.


Verify that you received the email notitification.

Final Thoughts

This project turned out to be an extremely simple task due to the simplicity of the Twine hardware and software.  For permanent installations, you may want to consider powering the Twine via its micro USB connection with a permanently plugged in power supply so that the system does not fail to notify you becuase of dead batteries in the Twine.  I just don't like to rely on batteries for anything that is mission critical.   (Same goes for the Floodstop, power it locally in addition to the batteries.)