Bug-light-control is a project mainly written in Java, it's free.
Small BUG program to play with the platform
Written: May 2010
This code is designed to use a BUG (www.buglabs.net) to control lights for a house plant. I wrote this to experiment with the BUG platform in their labs and never used it in a real setting.