Announcement

Collapse
No announcement yet.

Yamaha RX-V Series AV Receivers Control

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Yamaha RX-V Series AV Receivers Control

    Although I can quite happily control this via IR, I would really like to have a bit more control over the features.

    There is an iOS / Android App, and I also found an open source windows software here: http://yavc.codeplex.com/

    I've had a play with the open source code, and also tried some of the TCP plugins but I'm afraid this is beyond my coding understanding/capability.

    The closest I've come so far, is getting hold of some code used in 'Openremote' and I wondered if this could be used directly in Homeseer?

    For example:
    POST /YamahaRemoteControl/ctrl(CR/LF)Content-Type: text/plain(CR/LF)Content-length: 142(CR/LF)Host: 10.0.0.1(CR/LF)(CR/LF)<?xml version="1.0" encoding="utf-8"?><YAMAHA_AV cmd="PUT"><Main_Zone><Power_Control><Power>On</Power></Power_Control></Main_Zone></YAMAHA_AV>

    I also have a few examples for receiving status from the system (again used in openremote):
    POST /YamahaRemoteControl/ctrl(CR/LF)Content-Type: text/plain(CR/LF)Content-length: 131(CR/LF)Host: 10.0.0.1(CR/LF)(CR/LF)<?xml version="1.0" encoding="utf-8"?><YAMAHA_AV cmd="GET"><Main_Zone><Basic_Status>GetParam</Basic_Status></Main_Zone></YAMAHA_AV>
    ----------------------------------------

    </Main_Zone></YAMAHA_AV>
    <?xml version="1.0" encoding="utf-8"?><YAMAHA_AV cmd="PUT">
    <a><b><c>[xml from properties]</c></b></a>
    </YAMAHA_AV>

    Is anyone else using any form of control on the Yamaha V Series AV receivers? Or any advice would be very welcome!

    #2
    Chris, I have an RX-A3000 and am also interested in a HS control of it. Yamaha does offer a PC based application (I pulled it from another forum) that allows pretty detailed control. There's a bunch of good info on http://www.avsforum.com. Someone probably posted a version for your unit. You can usually find the command dictionary for the RS-232 control too.

    Forrest

    Comment


      #3
      Well I am half way there by using a vb script. Much cleaning up to do, but ultimately running the following will put the unit into standby.

      Code:
      Imports System.Net
      Imports System.Text
      Imports System.IO
      
      Sub Main(ByVal Parms As Object)
          Dim logincookie As CookieContainer
          Dim postData As String = "<YAMAHA_AV cmd=""PUT""><Main_Zone><Power_Control><Power>Standby</Power></Power_Control></Main_Zone></YAMAHA_AV>"
          Dim tempCookies As New CookieContainer
          Dim encoding As New UTF8Encoding
          Dim byteData As Byte() = encoding.GetBytes(postData)
      
          Dim postReq As HttpWebRequest = DirectCast(WebRequest.Create("http://192.168.1.109/YamahaRemoteControl/ctrl"), HttpWebRequest)
          postReq.Method = "POST"
          postReq.KeepAlive = True
          postReq.CookieContainer = tempCookies
          postReq.ContentType = "application/x-www-form-urlencoded"
          postReq.Referer = "http://192.168.1.109/"
          postReq.UserAgent = "Mozilla/5.0 (Windows; U; Windows NT 6.1; ru; rv:1.9.2.3) Gecko/20100401 Firefox/4.0 (.NET CLR 3.5.30729)"
          postReq.ContentLength = byteData.Length
      
          Dim postreqstream As Stream = postReq.GetRequestStream()
          postreqstream.Write(byteData, 0, byteData.Length)
          postreqstream.Close()
          Dim postresponse As HttpWebResponse
      
          postresponse = DirectCast(postReq.GetResponse(), HttpWebResponse)
          tempCookies.Add(postresponse.Cookies)
          logincookie = tempCookies
          Dim postreqreader As New StreamReader(postresponse.GetResponseStream())
      
          Dim thepage As String = postreqreader.ReadToEnd
      
          'RichTextBox1.Text = thepage
      
      End Sub
      I have managed to get a status response too, but I'm working through what everything means at the moment so I can pass it back to Homeseer.

      Feel free to chip in and point out areas of improvement. This very much a cut n' paste learning curve and I doubt it's the best way of doing it.

      Comment


        #4
        I have an RX-V2092 and I LOVE IT. One of the best receivers I have ever had.

        I appreciate you doing this. Being able to control this using Rs-232 would be Awesome!!!
        Transitioning to HS3Pro .298 - WinXPEmbedded

        Hometroller S3 Pro - WinXPEmbedded - HSP 2.5.0.81 - BLStat - HSPhone - HSTouch Srvr 1.0.0.73 - Touchpad - BLLan - BLOccupied - DSC Plug 2.0.0.14 - BLStat .38

        Comment


          #5
          Well if the iPhone app works on your receiver, and it goes through a network connection, then the above code should work for you too...

          Comment


            #6

            Comment


              #7
              Very interested to find out if this makes progress

              I also have an aventage series Yamaha and trying to see if I can control it with a HomeSeer plugin. Trying to put the pieces together before I pull the trigger but I am almost there. Could do IR but XML seems so much more elegant.

              Comment


                #8
                I wrote my own vb script to control my RX-V673 receiver. Since the receiver is controlled by TCP, I run an app called VSPE (Virtual Serial Port Emulator)
                This takes the receiver's TCP commands and converts them into serial commands that I process in HomeSeer. I can attach the script if anyone's interested.

                Comment


                  #9
                  i control my rx-a720 receiver with script but anybody can help me for get receiver status on homeseer???

                  Comment


                    #10
                    +1

                    Also interested in the Yamaha plug-in.
                    Global Cache works OK but messy in the wiring and setup and should not be needed.

                    Comment


                      #11
                      I can write a Yamaha plugin that uses the RS232 port, but not the IP connection. I'm afraid my amp only has an RS232 connection and right now, I have the protocol for the RX-V1900. If you give me your model number or the RS232 docs for your model I'd be happy to incorporate it.

                      I'm just trying to gauge interest for RS232 control over IP to see if it's worth writing a plugin that's a little more robust than what I might need for myself.


                      Sent from my iPad using Tapatalk
                      Author of Highpeak Plugins | SMS-Gateway Plugin | Blue Iris Plugin | Paradox (Beta) Plugin | Modbus Plugin | Yamaha Plugin

                      Comment


                        #12
                        I have a RX-V2500 and would love to control it through my computer. I had Homeseer installed some time ago, and plan to reinstall it. Would this be a good way to control my receiver?

                        Thanks for any advice.

                        Comment


                          #13
                          Script Version

                          I borrowed and wrapped bibowaka's script to be a bit more generic and do any features. Need to pass the IP or Receiver name and then a selection from the .INI file to choose the command.
                          Attached Files

                          Comment


                            #14
                            I wonder if Blade could modify one of his AV receiver plugins to work with Yamaha receivers?
                            iCore5 Win 10 Pro x64 SSD

                            HS3 Pro Edition 3.0.0.435 Windows

                            BLOccupied:,Device History:,Yamaha:,UltraMon3:,mcsXap:,Restart:,UltraNetatmo3:, UltraM1G3:,Ultra1Wire3:,BLBackup:,Harmony Hub:,DoorBird:,UltraECM3:,Nanoleaf 3P:,UltraRachio3:,Z-Wave:,SDJ-Health:,BLGarbage:,Blue-Iris:,Chromecast:,Pushover 3P:,EasyTrigger:

                            Comment


                              #15
                              I second that! (My receiver = RX-V775)


                              Sent from my iPhone using Tapatalk
                              Mike

                              Comment

                              Working...
                              X