Have you had a look at our API Examples plugin yet? You might be able to integrate a lot already.
It lists many essential commands like reboot, play, pause, etc. for your device to just copy and paste to any home automation server you want to use. It comes preinstalled on new images and is free 😉
Your project sounds great! We’d love to share with the rest of the community in our blog if you’re interested.