control device through ir