Automatically start/stop your Yamaha AVR with Mediaportal (1 Viewer)

Terra

Portal Pro
August 25, 2009
230
56
Austria Austria
Country flag
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)
 

Attachments

Last edited:

Terra

Portal Pro
August 25, 2009
230
56
Austria Austria
Country flag
Would be nice to hear if it also works for you and what model you have!
 

Spragleknas

Administrator
  • Team MediaPortal
  • December 21, 2005
    9,473
    1,822
    Located
    Norway Norway
    Country flag
    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)
     

    Spragleknas

    Administrator
  • Team MediaPortal
  • December 21, 2005
    9,473
    1,822
    Located
    Norway Norway
    Country flag
    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).
     

    Terra

    Portal Pro
    August 25, 2009
    230
    56
    Austria Austria
    Country flag
    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)
    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
     

    Illuminator

    Portal Pro
    December 6, 2010
    125
    32
    Germany Germany
    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... :))
     

    Jay_UK

    Test Group
  • Team MediaPortal
  • October 6, 2009
    1,781
    283
    Derby
    United Kingdom United Kingdom
    Country flag
    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.
     

    twicebishop

    New Member
    April 15, 2013
    1
    2
    42
    Livonia, Michigan
    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!
     

    Attachments

    Users Who Are Viewing This Thread (Users: 0, Guests: 1)

    OP Similar threads Forum Replies Date
    S TV-Server MP1 - Automatic search doesn't work Installation, configuration support 2
    vapourEyes Automatically Re-Tune Periodically Improvement Suggestions 1
    vapourEyes Automatically Tune to Strongest Duplicate Channel Improvement Suggestions 105
    W [solved] [FIXED] Survivor season 40 not automatically matching My TVSeries 1
    G Switch to new channel at begining of program automatically Feature Requests 0
    C How do I get MediaPortal to separate recording files by channel and month? General 2
    H MP1.21F video database scan, can it be scheduled to automatically run in background General Support 5
    Steve.Rayner61 Online Videos - Automatic Updates fails 'Automatic update disabled. Check your internet connection' OnlineVideos 10
    greybox 1.20 final does not update video duration automatically 1.20 10
    greybox 1.20 final does not update video duration automatically 1.20 Pre Release 1
    D Getting Started General Support 30
    horned_reaper [Music] 5012: Start current music track from the beginning Improvement Suggestions 21
    T [solved] Green Button start MP not working....but box ticked in config. General Support 1
    W [solved] MP suddenly Crashes when starting live TV on most channels and on recordings from the same channels General Support 20
    W [solved] MP suddenly Crashes when starting live TV on some channels and on some recordings Television (MyTV frontend and TV-Server) 1
    vvulture UNKNOWN ERROR when starting live TV General Support 6
    ajs Trakt error when start with MP crash Trakt 1
    F Recording starts at second time only MediaPortal 1 Talk 6
    tano_grasa Movie cover not showing when starting a movie aMPed 0
    ajs [solved] 4982: Why this error hard stop when Mediaportal start? MediaPortal 1 3
    joecrow AMD Radeon Settings app. won't start after hibernation. General Support 0
    Icaro Close MP when the external player is started General Support 13
    M MP1 stops responding after Starting Plugins General Support 14
    joecool70 Fehlermeldung Error invoking action "Start Timeshift" Allgemeines Support- und Diskussionsforum 1
    P MP2 TV Server crashes when starting - throws error remoting exception General 2
    Similar threads

























    Top Bottom