Room security system--gateway controller