SmartThings Community

Expose network A/V receiver functionality as a series of switches - HOWTO?

I have an Onkyo A/V receiver that is controllable using commands sent over the network. I’m writing a node.js proxy that converts the proprietary Onkyo command set into http commands which are more consumable by ST.

What I would like to do is expose various basic functions of the device (on/off, volume, input select) as a series of switches. On/Off is obviously a regular on/off switch, volume would be a “dimmer” that toggles mute when it is off, and input select would be a series of momentary switches. I then want to use these switches to allow control of the receiver via Google Home voice commands.

My question is how do I go about exposing multiple “switches” for a single device? Will a single DTH be able to expose all these switches so that they all show up as separate Things in ST when the device is added? Or is it not so straightforward?

Not sure if this will help, but here is an example of an Onkyo DTH somebody else put together:

Did you ever make any progress on this?

I have the Onkyo TX-NR585 and have not had any luck making the OnkyoIP.groovy work. Any suggestions would be awesome.
Edit: I had the wrong IP address. it does work for the TX-NR585