Just had a look on github nespi 4 pins and they look the same to me..so script Da Flex posted should still work..
Did you try to run all 3 scripts manually from ssh and see if they are at least working mainly SafeShutdown.py
the other 2 scripts should work on any rpi as they are just kodi-send commands..
Don t forget to first install rpi-tools addon and make all your 3 scripts executable..
Anyone who knows how to create the Script for the Nespi 4 Case buttons?
would be appreciated.