ToddGreenfield/homebridge-directv

Exposing other buttons

apexad opened this issue · 3 comments

It would be interesting to expose othe buttons, like Guide, List, Channel Up, Channel Down, and the Arrow keys. These switches would need to turn on, do the action, then shut off again in about 500 milliseconds in my testing.
It would allow a room to be created that could look something like this:
img_0991

I am thinking this might be best done dynamically using the v2.0 api of homebridge. The buttons all leverage the same directv-remote function processKey, so rather than program all of the buttons you want, you could just do one function and let the user dynamically add whatever remote functions. The pllugin would need to be modified to use the v2 api though... I have been looking at it recently as I work on another plugin (homebridge-nut)...

I would love this!

Feel free to do a PR.