Rexing: Rexing Smart Home Devices