A home automation system in ruby