Automatically start/stop your Yamaha AVR with Mediaportal

Discussion in 'Soundcards and Soundsystems' started by Terra, December 25, 2012.

  1. Terra

    Terra Portal Pro

    Joined:
    August 25, 2009
    Messages:
    230
    Likes Received:
    36
    Ratings:
    +55 / 1
    Home Country:
    Austria Austria
    Show System Specs
    Hi guys,

    I recently bought a Yamaha RX-V473 A/V-Receiver and was looking for a way to start and stop the Yamaha together with my HTPC.

    So I wrote a script that runs on my HTPC each time I enter the home screen to start my Yamaha. When I have time I also want to shut down the Yamaha if I send my HTPC in standby or shut it off.
    Therefore I don't need to turn the AV On or Off manually :)

    At first I though the feature called "Network Standby" was a WOL functionality but was disappointed after I found out that it wasn't. However after some research I found much better options to handle the Yamaha involving the "Network Standby" functionality.
    The Yamaha offers a SOAP API which whom you can control the device, like turning it on, off, adjust volume etc. I assume the smartphone application uses the same API.

    As almost all Yamaha's have the same web interface I assume that this works for almost all network enabled Yamaha Receivers at least of 2012 or even all Receivers which also support the AV CONTROLLER app:
    - RX-A3020, RX-A2020, RX-A1020, RX-A820, RX-A720
    - RX-A3010, RX-A2010, RX-A1010, RX-A810, RX-A710
    - RX-A3000, RX-A2000, RX-A1000
    - RX-V3073, RX-V2073, RX-V1073, RX-V773, RX-V673, RX-V573, RX-V473
    - RX-V3071, RX-V2071, RX-V1071, RX-V871, RX-V771, RX-V671
    - RX-V3067, RX-V2067, RX-V1067, RX-V867
    - RX-V2065, RX-V3900, DSP-AX3900, RX-Z7, DSP-Z7
    - HTR-7065, HTR-6065, HTR-5065, HTR-4065
    - HTR-6064
    - HTR-9063, HTR-8063, HTR-6295

    I have attached the scripts that I use for starting and stopping the Yamaha. I wrote it in Powershell and call it with a Batch file out of the WOL-PowerManager Plugin.



    I though you might like it and wanted to share it here.
    The attachement contains:
    • README.txt
    • yamaha_start.bat
    • yamaha_stop.bat
    • yamaha_start_stop.ps1
    You must edit the two Batch files for it to work (set IP and path)
     

    Attached Files:

    Last edited: December 25, 2012
    • Like Like x 4
    • Thank You! Thank You! x 1
  2. Google AdSense Guest Advertisement



    to hide all adverts.
  3. Spragleknas
    • Team MediaPortal
    • Administrator

    Spragleknas Administrator

    Joined:
    December 21, 2005
    Messages:
    9,472
    Likes Received:
    1,385
    Gender:
    Male
    Occupation:
    Occupied
    Location:
    Located
    Ratings:
    +1,892 / 12
    Home Country:
    Norway Norway
    Show System Specs
    Oh.... Got a Yama myself.... Really looking forward to what this can lead to!
     
  4. Terra

    Terra Portal Pro

    Joined:
    August 25, 2009
    Messages:
    230
    Likes Received:
    36
    Ratings:
    +55 / 1
    Home Country:
    Austria Austria
    Show System Specs
    Would be nice to hear if it also works for you and what model you have!
     
  5. Spragleknas
    • Team MediaPortal
    • Administrator

    Spragleknas Administrator

    Joined:
    December 21, 2005
    Messages:
    9,472
    Likes Received:
    1,385
    Gender:
    Male
    Occupation:
    Occupied
    Location:
    Located
    Ratings:
    +1,892 / 12
    Home Country:
    Norway Norway
    Show System Specs
    Got a Yamaha RX-V673... sadly little fiddlingtime atm (and lots of things on hold - like a SSD that I purchaced almost a month ago!), butI hope to find time to give this a swing in not to long.

    Would be nice to start collecting API documentation found - as I guess it is not open...?

    Found this: http://www.ip-symcon.de/forum/threads/18509-HowTo-Yamaha-Verstärker-per-LAN-Netzwerk-steuern (via other site). Check the Excel-file.... (Had to use google translate myself)
     
  6. Spragleknas
    • Team MediaPortal
    • Administrator

    Spragleknas Administrator

    Joined:
    December 21, 2005
    Messages:
    9,472
    Likes Received:
    1,385
    Gender:
    Male
    Occupation:
    Occupied
    Location:
    Located
    Ratings:
    +1,892 / 12
    Home Country:
    Norway Norway
    Show System Specs
    Hm.... Thinking possibilities here... @chefkoch (considering asking @and-81 or @chemelli is way optimistic), could IRSS be used for stuff like this? Wold be a nice enhancement.... (I'd like MP2 to control my AVR! :D).
     
  7. Terra

    Terra Portal Pro

    Joined:
    August 25, 2009
    Messages:
    230
    Likes Received:
    36
    Ratings:
    +55 / 1
    Home Country:
    Austria Austria
    Show System Specs
    I haven't found a complete API documentation yet. I found some bits and pieces on the internet and was watching the communication between the webinterface and the AVR.
    I found a similar Excel Sheet for the RX-V3900 which I have. I think I got it from here: http://forum.micasaverde.com/index.php/topic,10986.0.html

    Right now I have mapped the Vol+ and Vol- codes to my MCE Remote and with the script MePo starts and turns off the Receiver. Enough functionality for me so far as other things like "Mute" are handled at the HTPC and I don't need the AVR do to that :)

    Maybe the script could be extented to do following actions on startup:
    1. Turn on AVR
    2. Switch to the right HDMI Output
    3. Set Volume to a default Value
     
  8. Illuminator

    Illuminator Portal Pro

    Joined:
    December 6, 2010
    Messages:
    125
    Likes Received:
    21
    Ratings:
    +32 / 1
    Home Country:
    Germany Germany
    Show System Specs
    Hi,
    you should try Eventghost and the great EvenGhostPlus Plugin in Mediaportal.
    For controlling a Yamaha via Network/ API there seems to be a script already for eventghost: https://github.com/BirdAPI/RX-V867-EventGhost-Plugin

    I control my RX-V1600 via serial using EventGhost. It's a pleasure; turn the Yamaha on when MePo starts, change automatically to THX when viewing a movie or TV, change automatically to PLII Music when listening radio or mp3. I can change to another soundprogramm by using MyMenu... :))
     
    • Like Like x 2
  9. jamesst

    jamesst Portal Member

    Joined:
    May 4, 2007
    Messages:
    17
    Likes Received:
    1
    Occupation:
    manager
    Location:
    Split
    Ratings:
    +1 / 0
    Home Country:
    Croatia Croatia
    Show System Specs
    Have you manged to get this EG Plugin work with Yamaha RX-V473 A/V-Receiver?
    I can't - I get Application not running message in EG log.
    Thanks
     
  10. Jay_UK
    • Team MediaPortal

    Jay_UK Test Group

    Joined:
    October 6, 2009
    Messages:
    1,781
    Likes Received:
    250
    Occupation:
    Enterprise Architect
    Location:
    Derby
    Ratings:
    +271 / 0
    Home Country:
    United Kingdom United Kingdom
    Show System Specs
    Hi there,

    I have a RX-V671 Amp and it doesnt play nicely with my Samsumg TV when using CEC. :(

    I'm not after full CEC integration (where you can use a single remote to control both), all I wanted to be able to do is turn on/off my TV/Amp when the HTPC wakes up/returns from sleep or enters standby/awaymode. The problem I had was the Amp would not utilise HDMI audio when turning it on (even if I specify a port via CEC).

    So what I have done now is to use CEC to turn on/off my TV, and then write a script that turns on/off my amp via the network - Works a treat now :D

    I have a Harmony remote to control my HTPC and Amp volume.

    The script is written in VBS.

    J.
     
  11. twicebishop

    twicebishop New Member

    Joined:
    April 15, 2013
    Messages:
    1
    Likes Received:
    2
    Gender:
    Male
    Location:
    Livonia, Michigan
    Ratings:
    +2 / 0
    Home Country:
    US Minor Outlying Islands US Minor Outlying Islands
    I'm not a MediaPortal user... I just found this thread through google searching.

    I just bought a Yamaha RX-V673 and I have zone-2 hooked up to ceiling speakers throughout my house. I was trying to figure out how to have the radio play automatically every morning while I get ready for work... and then turn off automatically as well.

    Big thanks to Terra for posting his scripts... I wasn't familiar with the PowerShell or SOAP, but it all works perfectly for me when I have the scripts executed through the Windows Task Scheduler on my Windows 8 PC

    Through previous searches, I found Yamaha specs (see attached) which may be useful to others (HTR-7065, RX-A1020, RX-A2020, RX-A3020, RX-A720, RX-A820, RXV673, RX-V773 owners)
    (Check the following directory: "Spec_USA/YNC/Doc/YNC_Cmd_Samples/")
    These are the xml strings which can be called through Terra's scripts.

    One note on Terra's files:
    The last line in the *.bat files looks to have a typo:
    "powershell Set-ExecutionPolicy Restricteds"
    I believe this should be:
    "powershell Set-ExecutionPolicy Restricted"

    Thanks again Terra, I was stumbling on this for a while until I found your scripts!
     

    Attached Files:

    • Like Like x 2
Loading...

Users Viewing Thread (Users: 0, Guests: 0)

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice
  • About The Project

    The vision of the MediaPortal project is to create a free open source media centre application, which supports all advanced media centre functions, and is accessible to all Windows users.

    In reaching this goal we are working every day to make sure our software is one of the best.

             

  • Support MediaPortal!

    The team works very hard to make sure the community is running the best HTPC-software. We give away MediaPortal for free but hosting and software is not for us.

    Care to support our work with a few bucks? We'd really appreciate it!