Software apps and online services
And no, not drinking water. I am talking about the water that rushes throughout your entire house. The water that fills your washing machines, flushes your toilets, connects to your fridge and runs through your taps.
The statistics of water damage in America is very alarming.
- 98% of basements occur water damage at some point - your home is not the exception, it is the norm
- 14, 000 people in the US experience a water damage emergency every day!
- Also the average costs of a water damage insurance claim is $6, 995
This amounts to over $2.5 billion dollars worth of water damage annually for insurance companies. This doesn't even include all the priceless family heirlooms and sentimental treasures destroyed by water.
The crazy thing is, there is actually a low cost solution to this problem.
With the Particle Photon, there is now a low cost way to build a mesh network around all the water consuming devices in your home. This network communicates to each other and notifies you immediately as soon as a water problem arises so you can be quick to stop the problem. No longer will you wake up to see your house ankle deep in water, or experience horror as you view water gushing through your ceiling. You can be onto of these problems, and save yourself a lot of time and money in the mean time.
The end goal of this project is to get notification alerts on your phone whenever one of the Particle Photons detects water. To achieve this we will connect a water sensor to the particle device, and set up a pushbullet account to send a notification to your phone.
- Particle will trigger a signal when water is detected and send it to the cloud
- This signal from the particle cloud will trigger a webhook
- The triggered webhook will cause Pushbullet to send a notification message to your phone
For this step we will be connecting the Water Sensor to the Particle Photon and uploading the code to the Photon. Whenever the water sensor detects water, it will trigger the Photon to send a message to the cloud which will trigger a webhook.
First, set up your Particle Photon to work with the particle cloud. Head to https://setup.particle.io/, and configure your device to your account using the on screen instructions.
Next, connect the Water Sensor like this diagram
Also you need to flash your Photon with the code. Head to particle.io IDE console, copy and paste the Firmware code and flash it to your device.
For this step we will be connecting the webhook to Pushbullet to receive a notification on your phone.
Head to the pushbullet site and create an account if you haven't already. Next you will have to copy down your Access Token from the settings page.
Now you will have to save the webhooks file, named webhooks.json, to your computer and open it for editing. Replace the Access Token in the Bear field with the Access Token you just copied down, and save and close the file.
After editing the file, the last thing to do is upload the file to the Particle cloud.
Since Webhooks are configured in the particle CLI, please follow these instructions if you haven't already installed it.
In the console type:
particle webhook create webhook.json
And you should get an output that verifies your successfully created webhook
Now you should be able to test your device!
After connecting your Particle to power, I used a battery to allow it to be remote, submerge the sensor into some water. The Particle's on-board led should light up.
15 seconds later, you should receive a notification message from Pushbullet, make sure to have pushbullet installed on your phone.
Congratulations, you now have a low cost working water detection device. Repeat these tests with multiple Particle Photons and keep your home safe from water damage.
For more cool home innovations, visit my page.