Yes, I would go Dave's route - you can easily set the input and volume via a Python script in order to utilize the variable value that you stored. Any defined action in Indigo plugins can be executed via Python (or should be, perhaps I shouldn't be so absolute!) For the Onkyo input and volume is should be something like (stealing Dave's example and making it w/ the plugin values here):
- Code: Select all
target_inputNum = indigo.variables[12345678].value
target_volume = indigo.variables[23456789].value
pluginId = "com.duncanware.onkyoNetworkRemote"
onkyoPlugin = indigo.server.getPlugin(pluginId)
if onkyoPlugin.isEnabled():
onkyoPlugin.executeAction("setCurrentInput", deviceId=123456789, props={'zone':'main','inputNumber':target_inputNum})
onkyoPlugin.executeAction("setVolumeLevel", deviceId=123456789, props={'zone':'main','volumeLevel':target_volume})
I didn't test this but was just changing the values in Dave's example, so I think it should work. If you give it a try and it doesn't, post the error and we can work through it.
Adam