A Swedish colleague of mine once told me that Clas Ohslon is termed a “husband kindergarten” by Swedish woman and I have to admit that if I’m ever nearby I do pop in because you never know when you might need a spare chainsaw chain, an extra flash drive or a spare part of your boat.
Anyhow during my latest jaunt I found that they’d started stocking home automation kit and were offering £10 off for every £50 spent. £100 (well £80) later I left with a variety of gadgets and not a clue what I was going to do with them.
For command and control I bought a Tellstick USB which was plugged into the NAS storage server (auto media archiving + uPNP / SMB for RaspBMC), for the ceiling lights I’d bought a bunch of NEXA LWNR 210′s which allow you to control the lights using the 300Mhz wireless comms or overriding with the existing switch, for sockets I used a combination of NEXA LMCR 1000′s and NEXA EYCR 2300′s (UK socket versions obviously).
After wiring up a good 50% of them I realised that I’d left the power on which I have to admit is a legacy of working on DataCenter power where uptime was more important than health and safety (ahh those were the days). Cue a quick trip to the Fuse box to prevent getting told off by the wife should I end up getting electrocuted.
Once everything was wired up and no fuses blown it was time to start automating!
As I was being lazy I opted to use the centralised “Telldus Live” product ( http://live.telldus.com/ ) rather than working out how to talk natively to the USB (although Telldus do support that) and quickly hacked together an Android widget (we use a Motorola Xoom with a dock as our XBMC / lighting / everything controller) and a PHP proxy to do the OAUTH comms with Telldus live;
The Android widget is very simple;
The switchsomething function is also equally simple;
Which in turn calls;
Within 20 minutes I was turning ceiling lights, floor lamps and all manner of other gadgets on and off from my tablet!
The code is hacky and the OAUTH stuff really ought to be done natively in Android to save a step but I’m happy enough with it, with a single Android device I can search for and download some media to the NAS, queue it up on the RaspBMC to play over whichever TV in the house I want and then adjust the lighting in that room (or any room) to suit the mood and all using open source software.