Twine + Floodstop = Alert me when a water leak is detected
Wednesday, November 21, 2012 at 6:48PM
Robert Savage in Floodstop, Home Automation, Home Systems, Twine, Twine, alert, email, floodstop, leak, notification, sms, text message, water

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.)  

 

Article originally appeared on SHA (http://www.savagehomeautomation.com/).
See website for complete article licensing information.