The Onkyo plugin can now be found on GitHub, the command line tool is still attached to this post.
https://github.com/jorgh6/domoticz-onkyo-plugin
Hi All,
I've created a command line Python script to control Onkyo receivers (power, input and volume, also for zone2). Although it's not a Domoticz plugin, it can be used to control the receiver through the On Action / Off Action script interface.
To use the script from Domoticz, put it in /home/pi/domoticz/scripts/
The script can be called from the command line with the --help argument, to get usage information.
Example: To power on the receiver and put in on input 5 with a volume of 20 the command is:
onkyocmd.py --power on --input 5 --volume 20
To control zone 2, add --zone2 to the command line.
To do this from a Domoticz switch, put 'script:///home/pi/domoticz/scripts/onkyocmd.py --power on --input 5 --volume 20' in the On Action field of a (dummy) switch.
To figure out the input numbers of your receiver, set the receiver to the desired input and call onkyocmd.py with the --state parameter. It will then list the current Power, Input and Volume.
Feel free to use/change the script, or if you have some spare time, create a proper Domoticz plugin
