Library to control a virtual "smart house"