RetroFlag/retroflag-picase Safe shutdown script intergration

I have my RPI 3 installed in a Retroflag MegaPi case which not only looks quite funky also has the hardware to operate a safe shutdown script when the case is turned off https://github.com/RetroFlag/retroflag-picase. Is this possible to integrate this functionality into Home Assistant?

Hi Mark I have the same question have you try it?