I am using Armbian, but it should work in LibreElec too.
I use irexec with lircd to start kodi, you can test lircd with "irw" command.
Inside kodi (v19) lircd is not working for me (could be a bad configuration). So I stop lircd and use rc6 linux kernel module with ir-keytable.