You will need to configure a Lircmap.xml file and place it in /home/osmc/.kodi/userdata folder.
If there is none avaialable there, take the default one from here
and modify it.
Keep only one entry and make sure that the LIRC button names are correct (keep onet hat has KEY_LEFT, KEY_RIGHT, etc. in it).
Make sure you use the same name for the remote device name with the one configured in /etc/lirc/lircd.conf (if it’s generated, the name is the path where it was created. Feel free to rename it to something more handy, like ‘myremote’)
More info here: http://kodi.wiki/view/Userdata/lircmap.xml27
Place the edited Lircmap.xml file in the /home/osmc/.kodi/userdata/Lircmap.xml and then restart kodi (or the RPi).
My second Raspberry Pi is connected to my TV running Raspbmc to play video files. I liked the idea of a custom ambilight installation described by _nadnerb so I bought some WS2801 LEDs and installed Boblight. The LEDs are connected by SPI to the raspberry. Boblight is then able to control the LEDs based on the output.
You can see the mounted LEDs and the Boblight config in the following images: