Thought I’d plug my IR code for anyone who was interested in integrating TV remote control to their smartthings. I wrote this because when watching TV it can be a significant effort to figure out where my phone is. This requires a SmartThings shield, and an ir reciever (you can get them online or at radio shack for a few bucks). Requires basically no electronics experience: the IR reciever has three pins, one goes to 5v, one goes to ground, and one goes to pin 5. That’s it.
Currently, it’s hard-coded to use the four colored buttons on a TiVo primere remote (because that’s what I have lying around, and I wanted to use something that didn’t do anything). Someone could easily modify the code to allow you to save arbitrary commands, but that’s not really needed for my setup so I haven’t bothered at this point.
I have it set up so that red and green turn a group of switches on and off. Blue and Yellow are left as the test switches I was using for virtual devices in testing: this is because in my actual version these control a beer vending fridge that uses http commands via iobridge, and I’d rather not expose the url that allows anyone to start throwing cans around my apartment. The code’s pretty simple, but feel free to ask any questions.