I started this plugin ages ago when Spotify support was dropped from my Onkyo amp.
I wanted to keep using my amp and spotify, so I got a Raspberry Pi Zero W and IQaudio DAC, and installed volumio and volspotconnect2. This worked perfectly, but I now had to use a variety of apps to turn on the amp and control the music. The idea behind this was to automate the control of the amp, based on the change of state within volumio.
I recently went back to working on it and got it stable with all the base features I wanted from it. So I figured Iād share it here for anyone else with an Onkyo Amp to use. There are some other features I may look to add in the future, such as automatically switching to the correct input channel, but at the moment itās not something I need personally.
Iāve created a pull request for the main plugin repo, so hopefully anyone else that might find it useful can use it.
Thanks! I missed that the zip has been removed now.
Iāve removed the link as itās installable through the UI since being merged in. Iāll update my readme for anyone that wants to install from source to allow that.
Am I correct in saying that youāre not installing any packages? If so, you might want to comment out the apt-get update/install part in install.sh, since itās not doing anything. This will speed up installation.
Thatās a great point. Thanks very much for the advice.
Iāve noticed a few things I want to clean up since my pull request was accepted (mostly in documentation). So Iām going to tidy all of that up before submitting it again.
Setting the input source is definitely next on my list of things to do. Unfortunately my development time is a bit sparse at the moment. I will be looking into it when I get a chance though.
I found a bit of time this evening to take a look at this, and itās come together reasonably easily. You can now pick from a list of sources in settings and itāll set the receiver to it at the same time it sets the volume.
Unfortunately, the list of available channels isnāt specific to the receiver itās connected to annoyingly, itās a list of all the channels that the eISCP library that Iām using is aware of, which Iām not sure is up to date. Iāve had to fork the library to add in the channels on my receiver manually. Hopefully most of the ones that people would use are listed though, but at least it is possible to add new ones.
If you wanted to try it out, thereās instructions for installing manually on the github page linked in the first post of this thread.
Or, Iāve created a pull request for the main plugins repository, and hopefully itāll be accepted soon.
My Integra/Onkyo receiver is several years old. It is controllable via eiscp, but clearly is a bit different than perhaps some of the other models out there.
it doesnāt support auto-discovery
it needs the āmodelā string in connectionOptions:
Without the āmodelā string, eiscp tries to discover the receiver type, and since this receiver doesnāt support auto-discovery eiscp never finishes connecting and so no commands are successful.
This allows the plugin to work:
/data/plugins/miscellanea/onkyo_control/index.js:
socket.on('pushState', function (state) {
if (self.running) {
var connectionOptions = {
reconnect: false,
send_delay: 5000,
verify_commands: false,
model: "DTC-9.8"
};
Could āmodelā be added to the GUI? If a user is manually specifying the IP address (i.e. no auto-discovery) they probably need to manually specify the model as well.
Iāve raised a pull request on github, so hopefully it will be available to update within the UI shortly. Otherwise you can install manually from my fork:
Iāve checked that it doesnāt break for me, but as I donāt have the same receiver as you, I canāt be sure it fixes the problem for certain. Let me know if you get a chance to test it please.
Iām not sure of the age of the TX-8050 though if you can turn it on with Onkyo app, Iād expect it to work okay. Unfortunately Iāve only been able to test on my CR-N755, but Iām happy to look into any problems youāve got.