Project in progress
SmartThings RC-Switch 315/433mhz Outlet Bridge

SmartThings RC-Switch 315/433mhz Outlet Bridge © GPL3+

Add cheap 315/433 Mhz Outlets typically found around Christmas. Etekcity has been reported to work well. Uses RC-Switch Library.

  • 6,205 views
  • 2 comments
  • 4 respects

Components and supplies

Necessary tools and machines

09507 01
Soldering iron (generic)

About this project

Knowledge required:

  • Arduino programming
  • Working with Arduino Libraries
  • Using SmartThings developer features
  • SmartThings Custom DeviceTypes and SmartApps
  • Undestanding of Virtual Switches in SmartThings
  • Soldering
  • Simple understanding of how RF devices work.

First I'd like to thank Dan, @ogiwon over at the SmartThings community, I wouldn't have been able to complete this without him. I’m posting my version separately because I feel it’s a bit easier for newcomers as it has less libraries required. Download the SmartThings ThingShield demo library as that will be required and put the arduino code provided in the sketches folder.

After purchasing the required equipment I would recommend getting the Arduino code to work by itself with simple serial commands acting as the ThingShield. Read up on importing libraries as the RC-Switch library is required, sorry I have not packaged it as nicely as @ogiwan. Once you can control the switches through the serial interface you can then begin testing with Smart Things. Attach the ThingShield to the Arduino and pair the shield with your hub, it should start out in pairing mode, but if not directions should be easy to find, I had no troubles. (EDIT - I forgot to add that I soldered a 433mhz antenna to the solder pad labeled ANT on the transmitter, this boosts range significantly, I included the link to the ones I bought, length and helical turns are important so make sure it's pre-cut and twisted for your application.)

Now you need to set your newly paired device with the ST_Anything_RCSwitch device type. Now create however many virtual switches as you have physical switches. Use the Multiplexer SmartApp to link the virtual switches to the arduino device and things should be turning on and off on the cheap!

Finally I'd like to get a 3D printed case, I'll update if I ever do.

Code

Untitled filePlain text
No preview (download only).
Arduino Code
This is the code required for the Arduino. This requires the RC-Switch library linked. https://github.com/sui77/rc-switch
SmartThings Device Type
You will make one instance of this DeviceType under Devices in the IDE. This will be linked to 3 or however many physical switches you program for. Copy Paste for more switches.
Multiplexer SmartApp
This SmartApp listens to the virtual switches and writes commands to the Arduino.

Comments

Author

Grass blades by  kol d17tfuv
Keith Croshaw
  • 1 project
  • 5 followers

Additional contributors

  • Device type, smart app to communicate with virtual swithces and arduino code inspiration by @ogiewon On ST Community Site.
  • Arduino library to decode rf codes and re-transmit by RC-Switch Library creators

Published on

August 13, 2015

Members who respect this project

12422 1PhotoAdambenzDefault
See similar projects
you might like

Similar projects you might like

Building an IR Bridge with the SmartThings ThingShield

Project tutorial by Juan Pablo Risso

  • 9,293 views
  • 10 comments
  • 28 respects

Build a smart "Clapper" with SmartThings and Arduino

Project tutorial by Andrew Mager

  • 3,127 views
  • 3 comments
  • 11 respects

Aquarium Automation

Project showcase by Team GUT

  • 17,675 views
  • 9 comments
  • 33 respects

Probability | Autonomous Rover

Project in progress by UniverseRobotics

  • 14,335 views
  • 19 comments
  • 70 respects

Android App-Based Home Automation System Using IOT

Project tutorial by Team Autoshack

  • 43,262 views
  • 21 comments
  • 122 respects

Smart Garden

Project showcase by patel Dipen

  • 36,574 views
  • 17 comments
  • 82 respects
Add projectSign up / Login