I tried that but the IR LEDs were too directional. In the end I got a little $7 device off Ali that connects to the Tuya API. The API works passably well (I'd rather connect directly, but eh), but the hardware is great, it works from any position in the room, even without line of sight.