Have a look here, Pairing the Original Black OSMC RF Remote Control with a Pi/Vero2/4k/4k+
Replace vero with pi in the article.
Have a look here, Pairing the Original Black OSMC RF Remote Control with a Pi/Vero2/4k/4k+
Replace vero with pi in the article.