LightwaveRF is a Ruby gem which interfaces with LightwaveRF home automation devices. It includes a commandline interface.