Thanks for reporting back, glad it's working now! The bugfix will be in future LE releases, we already added it to our repository.
KEY_SLEEP and KEY_WAKEUP are remapped via eventlircd, changing that is a bit tricky.
Since you got lircd working it might be best to just disable all input from the device and let lircd handle everything - then you can also easily change button mapping.
Add the following lines to your 99-zotac udev rule file, that will prevent eventlircd from picking up the input from the remote:
ACTION=="add", SUBSYSTEM=="input", KERNEL=="event*", \
ATTRS{idVendor}=="0471", ATTRS{idProduct}=="20cc", \
ENV{eventlircd_enable}="false", ENV{LIBINPUT_IGNORE_DEVICE}="1"
You'll then also need to prevent xorg from picking up the input, you can do that by creating a /storage/.config/xorg.conf file, that will then be used instead of the default xorg.conf files in /etc/X11. Pick the one matching your graphics card and add the inputclass block from the linked kodi thread there.
so long,
Hias