![]() |
[How to do instruction] how to power off/on onkyo/integra receivers automatically - Printable Version +- Moode Forum (https://moodeaudio.org/forum) +-- Forum: moOde audio player (https://moodeaudio.org/forum/forumdisplay.php?fid=3) +--- Forum: FAQ and Guides (https://moodeaudio.org/forum/forumdisplay.php?fid=9) +--- Thread: [How to do instruction] how to power off/on onkyo/integra receivers automatically (/showthread.php?tid=4679) |
how to power off/on onkyo/integra receivers automatically - swinokur - 01-20-2022 Hi, I've just started using Moode and in the process of setting it up and getting it going I've done a few things that I thought I'd share. In my place I've got a Rpi4 connected to my Integra AVR over HDMI. I wanted the AVR to turn on, change to the proper input and set the volume when Moode started playing audio. I also wanted it to turn off after nothing had been playing for a bit. Here's how I did it: - installed onkyo-eiscp (github for that project is here: https://github.com/miracle2k/onkyo-eiscp) Code: $ sudo pip3 install onkyo-eiscp - then I made sure it was working. My Integra AVR is an older unit so it isn't auto-discoverable by eiscp Code: $ onkyo --discover - But I know the IP address I've given the AVR so these work Code: $ onkyo --host 192.168.0.125 power=on I found here on the forum that someone had written a bit of python to control relays when moode started / stopped playing - so I adapted that script. Thanks to the person who wrote that one! (original script was here: https://gist.github.com/michaelfdeberry/d3e7c9b4c4e1305be863d81a7e09f3de) Code: #!/usr/bin/env python3 (this is also in the attached zip file) This worked fine from the command line, so I then added it as a system service, as the relay controller did: - Save the contents of onkyotoggle.service script to /lib/systemd/system/onkyotoggle.service Code: [Unit] (this is also in the attached zip file) - set it going in systemd Code: $ sudo systemctl enable onkyotoggle |