Brute Force IR codes

Hi, I have a Broadlink RM Pro+3. No problems sending commands. I also have an old HDMI switch with IR control. If I ever had a remote I’ve lost it. I could manually send codes until I find ones that work, but is there a way to automate sending codes? Thanks!

In theory you could have a input_text that you update with a new value and then send it.
But there is millions of codes. And you have to sit there and watch it and pause the script if it manages to get the correct code.

Not to mention all the wrong codes could create all kinds of problems with all your other devices.

Have you tried to google after the code?

Yes and I emailed the company asking for the codes, as well as tried my other remotes that still have batteries in them. Unfortunately the make, TESmart, is small & the person I spoke to by e-mail wasn’t helpful. In-fact I’m not convinced they knew it was possible to not use their remote.

I have a spare Broadlink Mini that I can move & put it out of line of sight of other devices. Most other devices in that room are Bluetooth or internet anyway.

I’m setting up Hyperion NG on a 2nd Pi ( just awaiting the bits) using a USB video grabber (only 1 grabber: hence digging out the switch). Documentation is a bit sparse but I was thinking I could interrupt the brute forcing if a feed became live. Don’t know how long the delay between IR codes would need to be though. It could take forever.

For anyone who might find this searching. This is an eventual reply:

“ Dear guest
This is the infrared code sent to me by our engineer.
This key code is that each key has a corresponding value, I hope it can help you.
Head 0x6B86
1 0x1B
2 0x04
3 0x1A
4 0x06
LOOP 0x05
TESmart Customer Service Team”

The device is a Tesmart 4 in and 1 out HDMI switch. I can’t see any model name on it. It has optical out and stereo out.