Execute script from Remote Control button?

I'm trying to figure out the RasPlex remote control stuff -- is there any way to have a button on the remote control run a shell script?

 

I've figured out how to configure the remote control, but I'm not sure how to configure an action that executes a shell script (I want to send a custom cec-client command when the power button on the remote is pressed).

 

Can anyone point me in the right direction? Thanks!

Edit /storage/.plexht/userdata/keymaps/remote.xml

"yellow" is the name of CEC button

You can watch /storage/.plexht/temp/plexhometheater.log to see the pressed button names

You might need to enable logging via rasplex GUI.

You need to create python script for each action.

 
   
      RunScript(/storage/.plexht/tv_lights_off.py)