Ever wanted been away from home and wanted to check that the heating was off, or the lights switched on? Or wished you could switch on the kettle from the warmth of your bed when the morning alarm goes? All these things have been possible for a while now – but at a price. Now, with the software to automate home products becoming open source, the field has opened up for all kinds of innovative – and low cost – applications to make life easier, safer or just plain cosier.
Here at Dev8D, after attending just one iPhone development workshop, David Tarrant has created an iPhone app, based on open source software, to control a light using your phone, wherever you are in the world. He explains how.
“The Z-Wave protocol for home automation products has only just become open source after being closed for a number of years. It has sparked an online community outside of academia with quite a few UK and US developers developing an open source library to talk to Z-Wave products.
We have created a Windows, Linux and OSX version of the library where before there had only been a Windows one. That library was finished on Sunday night, and I built a simple REST api for this library so that I can switch a device on and off, such as a light. Yesterday I could do it through a web browser and, thanks to the iPhone workshop, I’ve now created an iPhone app to control it.
This is a simple example of home automation, just like the products that are already available to do things such as control heating, turn on and off appliances and monitor your house. It is even possible to set up profiles for rooms so that you can put a room into different modes and use a combination of devices within it, all controlled by just one switch.
The difference now is that you can do all this without having to buy expensive, locked-down proprietory software or hardware controllers. The library is available under an LGPL licence. The kind of automation I’ve done here would previously have cost £400-£600 to buy – I’ve done this for about £120 and we expect the cost to come down as more open source developers get on board and have a go and want to buy more of the products.”