Simply playing these back out of the Raspberry Pi’s audio out and into the switch’s IR input through a tiny transistor circuit does the trick. Now they have a networked five-way HDMI switch ...