Assuming ir means infrared, you could get one of these (or any ir transceiver) and decode the signals and use it or whatever to send them out if your $thing dies.

https://www.athom.tech/blank-1/tasmota-ir-controller