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?