Only send IR commands when valid