I'm using the RPi with XBMC. It is playing to a display and some powered speakers that use power when idle.
I know how to build a simple relay that is pulled by a MOSFET that in turn is driven by a GPIO pin of the RPi.
I can put this is a nice project box to make sure the 120V mains isn't touched by pets/family members (I've done similar projects before.)
What needs to happen is:
- I need to find or write a plug-in that can toggle a GPIO pin on/off from within XBMC
- I need some way to map the MCE remote control I'm using to toggle that GPIO pin.
When Googling, the only GPIO/XBMC examples I find are from people trying to use GPIO as input -- either for hard buttons, or for IR detection. This is not what I'm trying to do.
Does this ring any bells? Does something similar already exist? Is there any simpler path than "first read everything on XBMC plugins and then write the plugin and then read everything about keyboard.xml and then build XBMC from scratch and then try to debug the key commands sent by your MCE control" that I could take to make this happen?
Especially the "build from scratch and debug the MCE remote" seems quite the chore...